-1

我一直在尝试安装并运行 Nginx newrelic nginx 插件:http: //newrelic.com/plugins/nginx-inc/13

尽管它似乎已正确安装并运行,但 newrelic 控制台中没有出现任何数据。

我知道 nginx 模块已配置并且工作正常,并且代理似乎按预期工作,并且 newrelic 已经识别出插件正在运行并在控制台中创建了一个插件部分。

当我运行 ./newrelic_nginx_agent 以确保插件没有问题时,我得到如下输出:

[root@nginx1:newrelic_nginx_agent]$ ./newrelic_nginx_agent
Faraday: you may want to install system_timer for reliable timeouts
[Fri Aug 02 21:01:27 UTC 2013] Agent Nginx is at version 1.0.1
active=39 accepts=4098 handled=4098 requests=12502 reading=20 writing=3 waiting=16
[Fri Aug 02 21:01:27 UTC 2013] Metrics for nginx1[com.nginx.newrelic-agent] for last 60 seconds:
[Fri Aug 02 21:01:28 UTC 2013]   Sent 4 metrics to New Relic [https://platform-api.newrelic.com]:
[Fri Aug 02 21:01:28 UTC 2013]     Component/Connections/Active[Connections]: count: 1, total: 39.0, min: 39.0, max: 39.0, sum_of_squares: 1521.0
[Fri Aug 02 21:01:28 UTC 2013]     Component/Connections/Reading[Connections]: count: 1, total: 20.0, min: 20.0, max: 20.0, sum_of_squares: 400.0
[Fri Aug 02 21:01:28 UTC 2013]     Component/Connections/Writing[Connections]: count: 1, total: 3.0, min: 3.0, max: 3.0, sum_of_squares: 9.0
[Fri Aug 02 21:01:28 UTC 2013]     Component/Connections/Waiting[Connections]: count: 1, total: 16.0, min: 16.0, max: 16.0, sum_of_squares: 256.0
[Fri Aug 02 21:01:28 UTC 2013] Gathered 4 statistics

几秒钟后,我会得到额外的输出:

active=42 accepts=4176 handled=4176 requests=12735 reading=18 writing=1 waiting=23
[Fri Aug 02 21:03:27 UTC 2013] Metrics for nginx1[com.nginx.newrelic-agent] for last 60 seconds:
[Fri Aug 02 21:03:28 UTC 2013]   Sent 6 metrics to New Relic [https://platform-api.newrelic.com]:
[Fri Aug 02 21:03:28 UTC 2013]     Component/Connections/Active[Connections]: count: 1, total: 42.0, min: 42.0, max: 42.0, sum_of_squares: 1764.0
[Fri Aug 02 21:03:28 UTC 2013]     Component/Connections/Reading[Connections]: count: 1, total: 18.0, min: 18.0, max: 18.0, sum_of_squares: 324.0
[Fri Aug 02 21:03:28 UTC 2013]     Component/Connections/Writing[Connections]: count: 1, total: 1.0, min: 1.0, max: 1.0, sum_of_squares: 1.0
[Fri Aug 02 21:03:28 UTC 2013]     Component/Connections/Waiting[Connections]: count: 1, total: 23.0, min: 23.0, max: 23.0, sum_of_squares: 529.0
[Fri Aug 02 21:03:28 UTC 2013]     Component/Requests[Requests/Seconds]: count: 1, total: 1.8657934131562, min: 1.8657934131562, max: 1.8657934131562, sum_of_squares: 3.48118506057705
[Fri Aug 02 21:03:28 UTC 2013]     Component/Accepts[Connections/Seconds]: count: 1, total: 0.699672564900836, min: 0.699672564900836, max: 0.699672564900836, sum_of_squares: 0.489541698074914
[Fri Aug 02 21:03:28 UTC 2013] Gathered 6 statistics

等等...

我还没有找到任何论坛或 git repo 或任何我可以获得支持的地方。Newrelic 声明 nginx 会支持它,但没有支持论坛,甚至没有关于这个插件的链接。

有没有人对如何调试或修复有任何想法?

4

1 回答 1

0

也许我只是太不耐烦了。重新加载后,我现在可以在控制台中看到数据。

于 2013-08-02T21:09:37.163 回答