我一直在尝试安装和运行Nginx newrelic nginx插件:http://newrelic.com/plugins/nginx-inc/13
虽然它似乎已正确安装和运行,但新的控制台中没有数据显示。
我知道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会支持它,但是没有支持论坛甚至是关于这个插件的链接。
有没有人对如何调试或修复它有任何想法?
答案 0 :(得分:0)
也许我太不耐烦了。重新加载后,我现在在控制台中看到数据。