meetme / newrelic-plugin-agent Goto Github PK
View Code? Open in Web Editor NEWMulti-Plugin python-based Agent for NewRelic's Platform
License: BSD 3-Clause "New" or "Revised" License
Multi-Plugin python-based Agent for NewRelic's Platform
License: BSD 3-Clause "New" or "Revised" License
I expected the agent to report using the host name for the machine the agent is running on but instead it used the name field of the config section so now I have several localhost entries. I changed the names to correctly reflect the host they are reporting. How do I now get rid of the bogus localhost entry?
equivalent to
$ redis-cli -s /tmp/redis.sock
For servers that aren't under high load, the server status returns the following for load causing the regex to not match (and no metrics to be recorded):
CPULoad: 3.79733e-5
This is under Apache/2.2.15.
Can we just have the match return a zero for cases like this?
Hi
I'm trying to install but getting the following error:
[root@lb-1 ~]# pip-python install newrelic-plugin-agent
Downloading/unpacking newrelic-plugin-agent
Downloading newrelic_plugin_agent-1.0.11.tar.gz
Running setup.py egg_info for package newrelic-plugin-agent
Traceback (most recent call last):
File "", line 14, in ?
File "/root/build/newrelic-plugin-agent/setup.py", line 15
with open('MANIFEST.in', 'w') as handle:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 14, in ?
File "/root/build/newrelic-plugin-agent/setup.py", line 15
with open('MANIFEST.in', 'w') as handle:
^
SyntaxError: invalid syntax
Command python setup.py egg_info failed with error code 1
Storing complete log in /root/.pip/pip.log
Hi, I have everything running as specified in the guide but the plugin seems to be submitting nothing, the Application hasn't showed up on the site.
My key and server info is in the config (just apache_httpd)
Extended Status is on and appears to be reporting the required data
/var/log/newrelic and /var/run/newrelic are writable
I've cleared the files in /var/run/newrelic
Not sure where to go from here?
Thanks in advance for any suggestions :)
INFO 2013-06-25 10:38:14 54117 MainProcess MainThread newrelic_plugin_agent.agent process L93 : Polling
DEBUG 2013-06-25 10:38:14 54117 MainProcess MainThread newrelic_plugin_agent.agent send_data_to_newrelic L168 : Done, will send remainder of 0 metrics
INFO 2013-06-25 10:38:14 54117 MainProcess MainThread newrelic_plugin_agent.agent send_components L176 : Sending 0 metrics to NewRelic
DEBUG 2013-06-25 10:38:14 54117 MainProcess MainThread newrelic_plugin_agent.agent send_components L178 : {'components': [], 'agent': {'host': 'web', 'version': '1.0.12', 'pid': 54117}}
INFO 2013-06-25 10:38:14 54117 MainProcess MainThread requests.packages.urllib3.connectionpool _new_conn L549 : Starting new HTTPS connection (1): platform-api.newrelic.com
DEBUG 2013-06-25 10:38:16 54117 MainProcess MainThread requests.packages.urllib3.connectionpool _make_request L296 : "POST /platform/v1/metrics HTTP/1.1" 200 16
DEBUG 2013-06-25 10:38:16 54117 MainProcess MainThread newrelic_plugin_agent.agent send_components L185 : Response: 200: '{"status":"ok"}'
INFO 2013-06-25 10:38:16 54117 MainProcess MainThread newrelic_plugin_agent.agent process L107 : All stats processed in 2.30 seconds, next wake in 57.70
In the documentation, you say the user has to be a stats user. Can you explain what you mean by this?
It seems when restarting NginX causes the agent to crash?
Output of the agent:
Exception: TypeError('expected string or buffer',)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/clihelper/__init__.py", line 742, in run
process.run()
File "/usr/local/lib/python2.7/dist-packages/clihelper/__init__.py", line 388, in run
signal.pause()
File "/usr/local/lib/python2.7/dist-packages/clihelper/__init__.py", line 576, in _wake
self.process()
File "/usr/local/src/newrelic-plugin-agent-master/newrelic_plugin_agent/agent.py", line 93, in process
self.start_plugin_polling()
File "/usr/local/src/newrelic-plugin-agent-master/newrelic_plugin_agent/agent.py", line 231, in start_plugin_polling
self.application_config.get(plugin))
File "/usr/local/src/newrelic-plugin-agent-master/newrelic_plugin_agent/agent.py", line 82, in poll_plugin
thread.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/src/newrelic-plugin-agent-master/newrelic_plugin_agent/agent.py", line 274, in thread_process
obj.poll()
File "/usr/local/src/newrelic-plugin-agent-master/newrelic_plugin_agent/plugins/nginx.py", line 92, in poll
self.add_datapoints(self.fetch_data())
File "/usr/local/src/newrelic-plugin-agent-master/newrelic_plugin_agent/plugins/nginx.py", line 48, in add_datapoints
matches = PATTERN.match(stats)
TypeError: expected string or buffer
The system is running Ubuntu 13.04..After calling the /etc/init.d/nginx restart the monitoring agent halt-ed...
It used to work like this
couchdb:
name: myname
host: admin:password@localhost
port: 5984
but latest install on new VDS throws
Error response from http://admin:password@localhost:5984/_stats (401): {"error":"unauthorized","reason":"Authentication required."}
Hi,
I have a redis instance that I am trying to monitor, but am getting the following error when running '/usr/local/bin/newrelic_plugin_agent -c /etc/newrelic_plugin_agent.yml -f'
--snip
INFO 2013-06-20 15:57:29 8355 MainProcess MainThread clihelper run L382 : newrelic_plugin_agent 1.0.11 started
INFO 2013-06-20 15:57:29 8355 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling
INFO 2013-06-20 15:57:29 8355 MainProcess MainThread newrelic_plugin_agent.plugins.redis poll L219 : Polling Redis
Exception: AttributeError("'str' object has no attribute 'get'",)
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/clihelper/init.py", line 742, in run
process.run()
File "/usr/local/lib/python2.6/dist-packages/clihelper/init.py", line 384, in run
self.process()
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/agent.py", line 93, in process
self.start_plugin_polling()
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/agent.py", line 255, in start_plugin_polling
self.application_config.get(plugin))
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/agent.py", line 82, in poll_plugin
thread.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(_self.__args, *_self.__kwargs)
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/agent.py", line 274, in thread_process
obj.poll()
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/plugins/redis.py", line 231, in poll
connection = self.connect(server)
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/plugins/redis.py", line 145, in connect
params = (config.get('host', self.DEFAULT_HOST),
AttributeError: 'str' object has no attribute 'get'
--snip
my /etc/newrelic_plugin_agent.yml looks like this:
%YAML 1.2
---
Application:
license_key: secret
poll_interval: 60
redis:
name: host1
host: localhost
port: 6379
db_count: 16
password:
Daemon:
pidfile: /var/run/newrelic_plugin_agent.pid
Logging:
formatters:
verbose:
format: '%(levelname) -10s %(asctime)s %(process)-6d %(processName) -15s %(threadName)-10s %(name) -45s %(funcName) -25s L%(lineno)-6d: %(message)s'
handlers:
file:
class : logging.handlers.RotatingFileHandler
formatter: verbose
filename: /var/log/newrelic/newrelic_plugin_agent.log
maxBytes: 10485760
backupCount: 3
loggers:
newrelic_plugin_agent:
level: INFO
propagate: True
handlers: [console, file]
requests:
level: ERROR
propagate: True
handlers: [console, file]
i can connect to redis using the cli and all that, so my daemon is responding. am i missing something obvious? thanks in advance
debian squeeze 6.0.6
newrelic-plugin-agent==1.0.11
I tried to install MeetMe newrelic-plugin-agent as described in https://github.com/MeetMe/newrelic-plugin-agent with PIP
but, I have this error message :
Downloading/unpacking newrelic-plugin-agent
Real name of requirement newrelic-plugin-agent is newrelic_plugin_agent
Could not find any downloads that satisfy the requirement newrelic-plugin-agent
No distributions at all found for newrelic-plugin-agent
The logs are :
/usr/local/bin/pip run on Sun Jun 23 12:21:48 2013
Downloading/unpacking newrelic-plugin-agent
Getting page https://pypi.python.org/simple/newrelic-plugin-agent/
Could not fetch URL https://pypi.python.org/simple/newrelic-plugin-agent/: HTTP Error 404: Not Found (newrelic_plugin_agent does not have any releases)
Will skip URL https://pypi.python.org/simple/newrelic-plugin-agent/ when looking for download links for newrelic-plugin-agent
Getting page https://pypi.python.org/simple/
Real name of requirement newrelic-plugin-agent is newrelic_plugin_agent
URLs to search for versions for newrelic-plugin-agent:
im trying to have multiple entries for a single service, such as:
Application:
license_key: XXX
poll_interval: 60
apache_httpd:
name: test1
host: 10.0.0.1
port: 80
path: /status
apache_httpd:
name: test2
host: 10.0.0.2
port: 80
path: /status
only the first entry registers with newrelic. is there a way to do this, so as to have a centralized newrelic monitoring box, (as opposed to having to run plugin on each machine, or having seperate newrelic_plugin proc for each service instance)
thanks,
.fjp
I added the plugin and it seemed to be working correctly but then soon realised it was using the hostnames in the config file, so wanted to change them. However after changing them the new hostnames haven't appeared in new relic, but the older one hasn't changed either. I was wondering if it was tying the new hostname to the old one because the IP is the same.
I am unable to remove the old one though, so can't check if removing it would allow the new ones to come in.
Getting the following error when trying to use the redis plugin.
Exception: AttributeError("'str' object has no attribute 'get'",)
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/clihelper/init.py", line 742, in run
process.run()
File "/usr/local/lib/python2.6/dist-packages/clihelper/init.py", line 384, in run
self.process()
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/agent.py", line 93, in process
self.start_plugin_polling()
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/agent.py", line 255, in start_plugin_polling
self.application_config.get(plugin))
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/agent.py", line 82, in poll_plugin
thread.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(_self.__args, *_self.__kwargs)
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/agent.py", line 274, in thread_process
obj.poll()
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/plugins/redis.py", line 218, in poll
connection = self.connect(server)
File "/usr/local/lib/python2.6/dist-packages/newrelic_plugin_agent/plugins/redis.py", line 146, in connect
connection.connect((config.get('host', self.DEFAULT_HOST),
AttributeError: 'str' object has no attribute 'get'
Order deny,allow
Deny from all
Allow from all
This are drooped as of httpd 2.4
I use : Require ip 127
and it works (the old options can be in the config file, I don't know what Require does to 2.2).
I installed all correctly, but I can see anything. I set loglevel to DEBUG in config file, and I found, in the plugin logfile, an HTTP response: '501 - Unsupported Request Method and Protocol'. I think it's because my server is behind a proxy.
But I can see my server monitored by newrelic-sysmond; is your plugin using some non-standard request? My ENV variable http_proxy is correctly configured. What can I do?
I setup memcached and nginx monitor already, and at the begging I can get the data on NewRelic.
But after 10~30mins, the background color of the records on NewRelic turned into grey ... that means NewRelic didn't receive any data anymore ....
What's going on?
Log messages says polling memcached not redis.
root@dev-03:~# newrelic_plugin_agent -c /etc/newrelic_plugin_agent.yml -f
INFO 2013-06-19 13:10:04 9563 MainProcess MainThread clihelper run L382 : newrelic_plugin_agent 1.0.10 started
INFO 2013-06-19 13:10:04 9563 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling
INFO 2013-06-19 13:10:04 9563 MainProcess MainThread newrelic_plugin_agent.plugins.redis poll L206 : Polling Memcached
INFO 2013-06-19 13:10:04 9563 MainProcess MainThread newrelic_plugin_agent.plugins.redis poll L227 : Polling complete in 0.00 seconds
INFO 2013-06-19 13:10:04 9563 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 52 metrics to NewRelic
INFO 2013-06-19 13:10:04 9563 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 0.23 seconds, next wake in 59.77
The dependency clihelper depends on python-daemon which is Unix only or am I missing something?
Is there any way to connect this to a password protected Redis server?
Hi,
First off, thanks for developing this set of great plugins. Was wondering if there were / could be plans made for monitoring the list length for specific keys in redis. For example, i have a logstash key that i use for queing syslog messages between other systems, and while it's pretty obvious that things are backing up when memory usage sky rockets, it'd be really useful to have llen trending data on a per key basis.. especially when there are multiple keys in play.
Thanks in advance
With your RabbitMQ plugin can I setup alert conditions (thresholds) in New Relic? It would be really to be notified when a queue length is critical! (PS: I know this is not the right place to ask for that, but...)
Sorry if this is a beginner issue but I am getting this error:
ubuntu@www:/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent$ sudo newrelic_plugin_agent -c /etc/newrelic/newrelic_plugin_agent.cfg -f
INFO 2013-06-26 19:49:41 20013 MainProcess MainThread clihelper run L382 : newrelic_plugin_agent 1.0.12 started
INFO 2013-06-26 19:49:41 20013 MainProcess MainThread newrelic_plugin_agent.agent process L93 : Polling
Exception: TypeError('format requires a mapping',)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/clihelper/init.py", line 742, in run
process.run()
File "/usr/local/lib/python2.7/dist-packages/clihelper/init.py", line 384, in run
self.process()
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 95, in process
self.start_plugin_polling()
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 203, in start_plugin_polling
self.application_config.get(plugin))
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 84, in poll_plugin
thread.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(_self.__args, *_self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 276, in thread_process
obj.poll()
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/plugins/apache_httpd.py", line 98, in poll
LOGGER.info('Polling ApacheHTTPD via %s', self.apache_stats_url)
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/plugins/apache_httpd.py", line 73, in apache_stats_url
return 'http://%(host)s:%(port)s/%(path)s?auto' % self.config
TypeError: format requires a mapping
Can someone clarify with you need psycopg2 to use the mongodb plugin? In order to install psycopg2, I would need to install postgre to get "pg_config".
What source directory should I run "pip install -e .[mongodb]"?
Running setup.py egg_info for package psycopg2
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
Complete output from command python setup.py egg_info:
running egg_info
Amazing tool. Can we ask for support for elasticsearch?
Agent should be able to run under windows.
Despite the docs,
[ec2-user@redis ~]$ sudo easy_install newrelic-plugin-agent
Searching for newrelic-plugin-agent
Reading http://pypi.python.org/simple/newrelic-plugin-agent/
Best match: newrelic-plugin-agent 1.0.10
Downloading http://pypi.python.org/packages/source/n/newrelic_plugin_agent/newrelic_plugin_agent-1.0.10.tar.gz#md5=596f7df9b4d39a40cfa578e3d6743296
Processing newrelic_plugin_agent-1.0.10.tar.gz
Running newrelic_plugin_agent-1.0.10/setup.py -q bdist_egg --dist-dir /tmp/easy_install-rqNPOT/newrelic_plugin_agent-1.0.10/egg-dist-tmp-aMTscV
error: Setup script exited with error: SandboxViolation: mkdir('/opt/newrelic_plugin_agent',) {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
I tried to install this plugin using
pip install newrelic-plugin-agent
Got a response that the installation file is missing.
Am I'm doing something wrong?
Thanks,
Gal
Application:
license_key: xxxxxxxxxxxxxx
poll_interval: 60
apache_httpd:
name: myservername
host: localhost
port: 80
path: /server-status
Total Accesses: 182003
Total kBytes: 827216
Uptime: 19011
ReqPerSec: 9.57356
BytesPerSec: 44556.8
BytesPerReq: 4654.15
BusyWorkers: 95
IdleWorkers: 55
Scoreboard: R_K_KR_RW__KKKK___K__W_WK............................................................W..........................................WKR__KK_KKKKKK_KKKKKW_KKK.......................................KKKKRKKKKWKKKKKK_KK_K_KKK.......................................KKKK__K_KK_KK_KKKKKRKKKKK.......................................................................................................WKKK___K_KKK__W_KKKKKK_KR.......................................K___K______________............................................K..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
INFO 2013-06-21 10:17:24 30744 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling
INFO 2013-06-21 10:17:24 30744 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L98 : Polling ApacheHTTPD via http://localhost:80//server-status?auto
INFO 2013-06-21 10:17:24 30744 MainProcess MainThread newrelic_plugin_agent.plugins.apache_httpd poll L105 : Polling complete in 0.00 seconds
INFO 2013-06-21 10:17:24 30744 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 0 metrics to NewRelic
INFO 2013-06-21 10:17:25 30744 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 0.55 seconds, next wake in 59.45
but on New Relic i CAN see the host... but metrics are not populated (Active Workers:0, Requests: 0, etc).
Why?
Thank you in advance,
Mario
All plugins should function the way the redis plugin function works, allowing multiple targets.
Followed install process, seems to be running.. here are the last 2 "reports" in the log:
INFO 2013-06-19 14:55:43 24180 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling INFO 2013-06-19 14:55:43 24180 MainProcess MainThread newrelic_plugin_agent.plugins.postgresql poll L237 : Polling PostgreSQL at localhost:5432 INFO 2013-06-19 14:55:43 24180 MainProcess MainThread newrelic_plugin_agent.plugins.postgresql poll L250 : Polling complete in 0.05 seconds INFO 2013-06-19 14:55:43 24180 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 223 metrics to NewRelic INFO 2013-06-19 14:55:43 24180 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 0.27 seconds, next wake in 59.73 INFO 2013-06-19 14:56:43 24180 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling INFO 2013-06-19 14:56:43 24180 MainProcess MainThread newrelic_plugin_agent.plugins.postgresql poll L237 : Polling PostgreSQL at localhost:5432 INFO 2013-06-19 14:56:43 24180 MainProcess MainThread newrelic_plugin_agent.plugins.postgresql poll L250 : Polling complete in 0.07 seconds INFO 2013-06-19 14:56:43 24180 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 223 metrics to NewRelic INFO 2013-06-19 14:56:44 24180 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 1.24 seconds, next wake in 58.76
In order to gather reports for my memcached, mongodb and nginx clusters I had to generate multiple configs and run multiple processes.
Is it possible to configure multiple hosts for the servers, just like on the redis config?
Thanks!
Is it possible to report multiple instances from the same agent, 2 mongodb instances or 2 apache2s?
I have tried putting the apache_httpd section twice, but the agent errors on start.....
Trying to configure to connect to mongoDB, is there a way to enter username and password for connecting to mongoDB?
Monitoring does not work on hosts that require HTTPS and do not have a valid certificate. Would be nice to have a feature for disabling the validation
requests.get(url, verify=False)
After copying my /opt/newrelic-plugin-agent/etc/newrelic_plugin_agent.initd to /etc/init.d/newrelic-plugin-agent and running it, I get the following:
/etc/init.d/newrelic-plugin-agent: line 9: /etc/init.d/functions: No such file or directory
So changing my line 8-9 to
# Source function library.
#. /etc/init.d/functions
. /lib/lsb/init-functions
and issuing the start command gets me:
Starting /usr/bin/newrelic_plugin_agent: /etc/init.d/newrelic-plugin-agent: line 69: success: command not found
/etc/init.d/newrelic-plugin-agent: line 69: failure: command not found
And it spawns a new instance of the agent running, from what I can tell from my ps ux output.
Postgresql 9.2 doesn't support current_query (http://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.2)
When we run the script, we get the following error:
Exception: ProgrammingError('column "current_query" does not exist\nLINE 2: current_query = \'<IDLE>\' ) AS backends_active, ( SELECT coun...\n ^\n',)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/clihelper/__init__.py", line 742, in run
process.run()
File "/usr/local/lib/python2.7/dist-packages/clihelper/__init__.py", line 384, in run
self.process()
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 93, in process
self.start_plugin_polling()
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 243, in start_plugin_polling
self.application_config.get(plugin))
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 82, in poll_plugin
thread.run()
File "/usr/lib/python2.7/threading.py", line 504, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 274, in thread_process
obj.poll()
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/plugins/postgresql.py", line 245, in poll
self.add_metrics(cursor)
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/plugins/postgresql.py", line 65, in add_metrics
self.add_backend_metrics(cursor)
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/plugins/postgresql.py", line 112, in add_backend_metrics
cursor.execute(BACKENDS)
File "/usr/lib/python2.7/dist-packages/psycopg2/extras.py", line 123, in execute
return _cursor.execute(self, query, vars)
ProgrammingError: column "current_query" does not exist
LINE 2: current_query = '<IDLE>' ) AS backends_active, ( SELECT coun...
Howdy,
I would LOVE a uWSGI monitoring aspect to this plug-in. uWSGI can also output JSON as well, if that helps.
http://uwsgi-docs.readthedocs.org/en/latest/StatsServer.html
Thanks!
hi
Could any one help me on this issue regarding installation. Please see error below.
/usr/bin/newrelic_plugin_agent: not running
I've got the plugin installed on two servers with Apache/2.2.22. For both servers the requests graph is blank, but the cpu load, worker status, etc. graphs all have data.
I am trying to install the New Relic Plugin Agent for MeetMe as described at https://github.com/MeetMe/newrelic-plugin-agent#installation-instructions
However, when I run newrelic_plugin_agent -c PATH-TO-CONF-FILE I receive the following errors:
newrelic_plugin_agent -c /etc/newrelic/newrelic_plugin_agent.cfg
Traceback (most recent call last):
File "/usr/bin/newrelic_plugin_agent", line 9, in
load_entry_point('newrelic-plugin-agent==1.0.11', 'console_scripts', 'newrelic_plugin_agent')()
File "/usr/lib/python2.6/site-packages/newrelic_plugin_agent/agent.py", line 292, in main
clihelper.run(NewRelicPluginAgent)
File "/usr/lib/python2.6/site-packages/clihelper/init.py", line 726, in run
kwargs = _get_daemon_context_kargs(options.foreground)
File "/usr/lib/python2.6/site-packages/clihelper/init.py", line 907, in _get_daemon_context_kargs
config = _get_daemon_config()
File "/usr/lib/python2.6/site-packages/clihelper/init.py", line 898, in _get_daemon_config
return get_configuration().get(DAEMON) or dict()
File "/usr/lib/python2.6/site-packages/clihelper/init.py", line 694, in get_configuration
configuration = _load_config()
File "/usr/lib/python2.6/site-packages/clihelper/init.py", line 968, in _load_config
return _parse_yaml(_read_config_file())
File "/usr/lib/python2.6/site-packages/clihelper/init.py", line 1049, in _parse_yaml
return yaml.load(content)
File "/usr/lib64/python2.6/site-packages/yaml/init.py", line 71, in load
return loader.get_single_data()
File "/usr/lib64/python2.6/site-packages/yaml/constructor.py", line 37, in get_single_data
node = self.get_single_node()
File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 39, in get_single_node
if not self.check_event(StreamEndEvent):
File "/usr/lib64/python2.6/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/lib64/python2.6/site-packages/yaml/parser.py", line 174, in parse_document_start
self.peek_token().start_mark)
yaml.parser.ParserError: expected '', but found ''
in "", line 12, column 1:
APP="/usr/bin/newrelic_plugin_agent"
Please advise.
Thanks
Jonny
Would be a nice feature. Perhaps you can use the delivered apc.php?
Hi,
I have waited for something to show in the dashboard, but nothing happens.
this is the beginning of the logfile:
INFO 2013-06-20 17:44:41 29642 MainProcess MainThread clihelper run L382 : newrelic_plugin_agent 1.0.11 started
INFO 2013-06-20 17:44:41 29642 MainProcess MainThread newrelic_plugin_agent.agent process L91 : Polling
INFO 2013-06-20 17:44:41 29642 MainProcess MainThread newrelic_plugin_agent.plugins.redis poll L219 : Polling Redis
INFO 2013-06-20 17:44:41 29642 MainProcess MainThread newrelic_plugin_agent.plugins.redis poll L244 : Polling complete in 0.22 seconds
INFO 2013-06-20 17:44:41 29642 MainProcess MainThread newrelic_plugin_agent.agent send_components L174 : Sending 52 metrics to NewRelic
INFO 2013-06-20 17:44:42 29642 MainProcess MainThread newrelic_plugin_agent.agent process L105 : All stats processed in 0.36 seconds, next wake in 59.64
I've also opened a ticket to newrelic, but no chance: they answered me to ask here.
now it's more than three hours from the setup, what could I do to troubleshoot the issue?
thanks,
corrado
Hi,
I'm seeing this warning message in the plugin agent log. Do you have any idea what went wrong?
I'm still able to see data in NewRelic but not sure whether this will cause any disruption in the data or not.
WARNING 2013-06-26 03:24:53 3956 MainProcess MainThread newrelic_plugin_agent.plugins.memcached process_data L189 : Populating missing element: connection_struct
I'd like to use this on a production site where all the python libs are installed under a virtualenv.
Installing this fails because it tries to create /opt/newrelic_plugin_agent
v1.0.11
We've got a fresh install of postgres, and a fresh agent install. When trying to run newrelic_plugin_agent -c /etc/newrelic_plugin_agent.yml
we get the following output:
Traceback (most recent call last):
File "/usr/local/bin/newrelic_plugin_agent", line 9, in
load_entry_point('newrelic-plugin-agent==1.0.10', 'console_scripts', 'newrelic_plugin_agent')()
File "/usr/local/lib/python2.7/dist-packages/newrelic_plugin_agent/agent.py", line 292, in main
clihelper.run(NewRelicPluginAgent)
File "/usr/local/lib/python2.7/dist-packages/clihelper/init.py", line 726, in run
kwargs = _get_daemon_context_kargs(options.foreground)
File "/usr/local/lib/python2.7/dist-packages/clihelper/init.py", line 907, in _get_daemon_context_kargs
config = _get_daemon_config()
File "/usr/local/lib/python2.7/dist-packages/clihelper/init.py", line 898, in _get_daemon_config
return get_configuration().get(DAEMON) or dict()
File "/usr/local/lib/python2.7/dist-packages/clihelper/init.py", line 694, in get_configuration
configuration = _load_config()
File "/usr/local/lib/python2.7/dist-packages/clihelper/init.py", line 968, in _load_config
return _parse_yaml(_read_config_file())
File "/usr/local/lib/python2.7/dist-packages/clihelper/init.py", line 1049, in _parse_yaml
return yaml.load(content)
File "/usr/lib/python2.7/dist-packages/yaml/init.py", line 71, in load
return loader.get_single_data()
File "/usr/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
node = self.get_single_node()
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/lib/python2.7/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/lib/python2.7/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
yaml.parser.ParserError: while parsing a block mapping
in "", line 3, column 1:
Application:
^
expected , but found ''
in "", line 47, column 2:
postgresql:
The only lines in the config file are he default stuff in the example, untouched except putting in our license key, and we uncommented the postgresql block:
postgresql:
host: localhost
port: 5432
user:
dbname:
What'd we do wrong?
this works and does indeed send data to rpm
sudo newrelic_plugin_agent -fc /opt/newrelic_plugin_agent/etc/config.yml
this doesn't generate anything, even though i can see it running in ps -ef
sudo newrelic_plugin_agent -c /opt/newrelic_plugin_agent/etc/config.yml
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.