Sitespeed.io 和石墨

Sitespeed.io and graphite

我实际上正在尝试同时使用 sitespeed.io 和石墨,但我遇到了问题。

事实上,我想使用这个命令行:

 sitespeed.io -u http://google.com -b firefox --graphiteHost http://127.0.0.1:3000 --graphiteNamespace sitespeed.io.newyork

这是我得到的错误:

error: Error getting versions: { [Error: Command failed: /home/skahrz/.nvm/v0.11.16/lib/node_modules/sitespeed.io/node_modules/phantomjs/lib/phantom/bin/phantomjs --version
/home/skahrz/.nvm/v0.11.16/lib/node_modules/sitespeed.io/node_modules/phantomjs/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory
]
  killed: false,
  code: 127,
  signal: null,
  cmd: '/home/skahrz/.nvm/v0.11.16/lib/node_modules/sitespeed.io/node_modules/phantomjs/lib/phantom/bin/phantomjs --version' }
error:  Error: Command failed: /home/skahrz/.nvm/v0.11.16/lib/node_modules/sitespeed.io/node_modules/phantomjs/lib/phantom/bin/phantomjs --version
/home/skahrz/.nvm/v0.11.16/lib/node_modules/sitespeed.io/node_modules/phantomjs/lib/phantom/bin/phantomjs: error while loading shared libraries: libfontconfig.so.1: cannot open shared object file: No such file or directory

    at ChildProcess.exithandler (child_process.js:744:12)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1008:16)
    at Socket.<anonymous> (child_process.js:1176:11)
    at Socket.emit (events.js:107:17)
    at Pipe.close (net.js:476:12)

我不知道如何解决这个问题以及如何生成我的网站速度报告。

有什么想法吗?

如果 Graphite 在同一主机或不同主机上 运行 都没有关系 - 但碳将在 2003 上监听而不是 3000...3000 是 grafana 默认端口。

你不能像正常的那样传递端口 url...如果你想将石墨端口传递给 sitespeed...使用 --graphitePort 2003 或任何你的碳监听的地方。