Giter Site home page Giter Site logo

Comments (7)

gmr avatar gmr commented on July 27, 2024

Can you turn on DEBUG level logging in the config and paste in a few cycles of stats (need at least 2 minutes) so I can see what is going on?

from newrelic-plugin-agent.

rcalosso avatar rcalosso commented on July 27, 2024

I am also not seeing any metrics for apache

root@dev-01:~# apache2ctl -v
Server version: Apache/2.2.14 (Ubuntu)
Server built: Mar 8 2013 16:46:38

Log output:
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread clihelper run L382 : newrelic_plugin_agent 1.0.11 started
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent thread_process L272 : Polling apache_httpd, <class 'newrelic_plugin_agent.plugins.apache_httpd.ApacheHTTPD'>, {'path': '/server-status', 'host': 'localhost', 'name': 'dev-01.dev', 'port': 80}, 60
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L98 : Polling ApacheHTTPD via http://localhost:80//server-status?auto
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L202 : Starting new HTTP connection (1): localhost
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "GET //server-status?auto HTTP/1.1" 200 76
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L105 : Polling complete in 0.02 seconds
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_data_to_newrelic L166 : Done, will send remainder of 0 metrics
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 0 metrics to NewRelic
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L176 : {'components': [{'duration': 60, 'metrics': {}, 'guid': 'com.meetme.newrelic_apache_httpd_agent', 'name': 'dev-01.dev'}], 'agent': {'host': 'dev-01', 'version': '1.0.11', 'pid': 6478}}
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L549 : Starting new HTTPS connection (1): platform-api.newrelic.com
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "POST /platform/v1/metrics HTTP/1.1" 200 16
DEBUG 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L183 : Response: 200: '{"status":"ok"}'
INFO 2013-06-19 17:12:51 6478 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 0.18 seconds, next wake in 59.82
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent thread_process L272 : Polling apache_httpd, <class 'newrelic_plugin_agent.plugins.apache_httpd.ApacheHTTPD'>, {'path': '/server-status', 'host': 'localhost', 'name': 'dev-01.dev', 'port': 80}, 60
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L98 : Polling ApacheHTTPD via http://localhost:80//server-status?auto
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L202 : Starting new HTTP connection (1): localhost
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "GET //server-status?auto HTTP/1.1" 200 74
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L105 : Polling complete in 0.00 seconds
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_data_to_newrelic L166 : Done, will send remainder of 0 metrics
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 0 metrics to NewRelic
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L176 : {'components': [{'duration': 60, 'metrics': {}, 'guid': 'com.meetme.newrelic_apache_httpd_agent', 'name': 'dev-01.dev'}], 'agent': {'host': 'dev-01', 'version': '1.0.11', 'pid': 6478}}
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L549 : Starting new HTTPS connection (1): platform-api.newrelic.com
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "POST /platform/v1/metrics HTTP/1.1" 200 16
DEBUG 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L183 : Response: 200: '{"status":"ok"}'
INFO 2013-06-19 17:13:51 6478 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 0.15 seconds, next wake in 59.85
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling
DEBUG 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.agent thread_process L272 : Polling apache_httpd, <class 'newrelic_plugin_agent.plugins.apache_httpd.ApacheHTTPD'>, {'path': '/server-status', 'host': 'localhost', 'name': 'dev-01.dev', 'port': 80}, 60
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L98 : Polling ApacheHTTPD via http://localhost:80//server-status?auto
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L202 : Starting new HTTP connection (1): localhost
DEBUG 2013-06-19 17:14:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "GET //server-status?auto HTTP/1.1" 200 76
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L105 : Polling complete in 0.00 seconds
DEBUG 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_data_to_newrelic L166 : Done, will send remainder of 0 metrics
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 0 metrics to NewRelic
DEBUG 2013-06-19 17:14:51 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L176 : {'components': [{'duration': 60, 'metrics': {}, 'guid': 'com.meetme.newrelic_apache_httpd_agent', 'name': 'dev-01.dev'}], 'agent': {'host': 'dev-01', 'version': '1.0.11', 'pid': 6478}}
INFO 2013-06-19 17:14:51 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L549 : Starting new HTTPS connection (1): platform-api.newrelic.com
DEBUG 2013-06-19 17:14:57 6478 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "POST /platform/v1/metrics HTTP/1.1" 200 16
DEBUG 2013-06-19 17:14:57 6478 MainProcess MainThread newrelic_plugin_agent.agent send_components L183 : Response: 200: '{"status":"ok"}'
INFO 2013-06-19 17:14:57 6478 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 6.29 seconds, next wake in 53.71

curling server-status provides the following:
root@dev-01:~# curl 'http://localhost:80//server-status?auto'
BusyWorkers: 1
IdleWorkers: 49
Scoreboard: W.......................................................................................................___________________.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

from newrelic-plugin-agent.

iainhubbard avatar iainhubbard commented on July 27, 2024

curling server-status provides the following:
root@dev-01:~# curl 'http://localhost:80//server-status?auto'
BusyWorkers: 1
IdleWorkers: 49

You need to set ExtendedStatus to On in your Apache config for the pattern match to work

from newrelic-plugin-agent.

rcalosso avatar rcalosso commented on July 27, 2024

Thanks that did the trick. The read me should be updated to reflect the fact you need extend status on.

Richard Calosso
Streetline
[email protected]

From: Iain <[email protected]mailto:[email protected]>
Reply-To: MeetMe/newrelic-plugin-agent <[email protected]mailto:[email protected]>
Date: Thu, 20 Jun 2013 03:30:43 -0700
To: MeetMe/newrelic-plugin-agent <[email protected]mailto:[email protected]>
Cc: Richard Calosso <[email protected]mailto:[email protected]>
Subject: Re: [newrelic-plugin-agent] Apache requests graph blank (#20)

curling server-status provides the following:
root@dev-01:~# curl 'http://localhost:80//server-status?auto'
BusyWorkers: 1
IdleWorkers: 49

You need to set ExtendedStatus to On for the pattern match to work


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-19743234.

from newrelic-plugin-agent.

coopr avatar coopr commented on July 27, 2024

@rcalosso any chance you could make that update to the README and make a pull request?

from newrelic-plugin-agent.

rcalosso avatar rcalosso commented on July 27, 2024

Created pull request.

Richard Calosso
Streetline
[email protected]

From: Cooper Marcus <[email protected]mailto:[email protected]>
Reply-To: MeetMe/newrelic-plugin-agent <[email protected]mailto:[email protected]>
Date: Thu, 20 Jun 2013 09:41:07 -0700
To: MeetMe/newrelic-plugin-agent <[email protected]mailto:[email protected]>
Cc: Richard Calosso <[email protected]mailto:[email protected]>
Subject: Re: [newrelic-plugin-agent] Apache requests graph blank (#20)

@rcalossohttps://github.com/rcalosso any chance you could make that update to the README and make a pull request?


Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-19765531.

from newrelic-plugin-agent.

gmr avatar gmr commented on July 27, 2024

Thanks all!

from newrelic-plugin-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.