我们已经成功集成了 JMeter + Influxdb + Grafana,并且 Sitespeed.io 与 Influxdb 的集成也需要同样的集成。 我们没有使用 Docker,而是使用 Node,并在本地计算机上安装了 sitespeed。 (Influxdb 和 Grafana 也安装在同一台机器上)。
在 sitespeed 网站上观察到默认 --influx 插件 (https://www.sitespeed.io/documentation/sitespeed.io/configuration/#the-options) 但与 sitespeed 命令一起使用时,即 sitespeed.io www.google.com -n 1 -b chrome --influx.host 12x.x.x --influx.organization xxx --influx.token 2344。
我们收到以下错误:
ERROR: Error: A 401 Unauthorized error occurred: {"code":"unauthorized","message":"Unauthorized"}
at IncomingMessage.<anonymous> (xx/src/pool.js:50:38)
at IncomingMessage.emit (node:events:539:35)
at endReadableNT (node:internal/streams/readable:1345:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)
/usr/lib/node_modules/sitespeed.io/lib/core/queueHandler.js:142
this.errors.push(rejectionMessage + '\n' + JSON.stringify(err));
^
TypeError: Converting circular structure to JSON
--> starting at object with constructor 'ClientRequest'
| property 'socket' -> object with constructor 'Socket'
--- property '_httpMessage' closes the circle
at JSON.stringify (<anonymous>)
at /usr/lib/node_modules/sitespeed.io/lib/core/queueHandler.js:142:61
at eventuateConsume (/usr/lib/node_modules/sitespeed.io/node_modules/eventuate/index.js:31:13)
at Array.forEach (<anonymous>)
at Function.eventuate.produce (/usr/lib/node_modules/sitespeed.io/node_modules/eventuate/index.js:30:19)
at Object.onReject [as reject] (/usr/lib/node_modules/sitespeed.io/node_modules/concurrent-queue/index.js:45:36)
at reject (/usr/lib/node_modules/sitespeed.io/node_modules/concurrent-queue/index.js:85:22)
at f (/usr/lib/node_modules/sitespeed.io/node_modules/concurrent-queue/node_modules/once/once.js:17:25)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
请告诉我 sitespeed 是否需要任何先决条件,以便 influxdb 可以侦听默认端口 8086。
您能够使用 Node 完成设置吗?我还希望在 Windows 上通过 Node 设置使用 Sitespeed.io(不使用 Docker,因为在办公系统上不允许)。有关此设置的任何文档都会非常有帮助!