That’s an excellent point that I hadn’t noticed!
Evan Fraser | Storage Engineer T +64 4 803 2756 M +64 22 087 4032 From: cob...@gmail.com [mailto:cob...@gmail.com] On Behalf Of Rick Cobb Sent: Tuesday, 4 November 2014 12:26 p.m. To: Elias Abacioglu Cc: Evan Fraser; ganglia-general@lists.sourceforge.net Subject: Re: [Ganglia-general] help with gmond python plugin I'm sure somebody noticed that 'Queue.trackbox...' doesn't match 'Queues(.+)' . Singularly -- -- ReC On Mon, Nov 3, 2014 at 2:20 PM, Elias Abacioglu <elias.r...@gmail.com<mailto:elias.r...@gmail.com>> wrote: Hi Evan, Here is the output. # python at_metrics.py value for Endpoint.Order.rejected.requests is 0 value for Endpoint.PageView.rejected.requests is 0 value for ThreadPoolExecutor.trackbox-http-executor.throughput is 1286349118 value for Queue.trackbox-app-executor.queueLatencyMicroseconds is 9698707 value for Endpoint.PageView.accepted.requests is 17029889 value for Endpoint.Order.accepted.requests is 123560 value for Endpoint.Event.accepted.requests is 0 value for Queue.trackbox-http-executor.queueLatencyMicroseconds is 124503521 value for Endpoint.Event.rejected.requests is 0 value for ThreadPoolExecutor.trackbox-app-executor.throughput is 103255524 2014-11-03 21:29 GMT+01:00 Evan Fraser <evan.fra...@trademe.co.nz<mailto:evan.fra...@trademe.co.nz>>: It also looks like it will only ever poll for metrics once as your call back function doesn't poll. It just returns the same value from 'metrics' that you set within your metric_init function. Hit me up on #ganglia on freenode if you want. Cheers, Evan. Evan Fraser | Storage Engineer T +64 4 803 2756<tel:%2B64%204%20803%202756> M +64 22 087 4032<tel:%2B64%2022%20087%204032> From: Elias Abacioglu [mailto:elias.r...@gmail.com<mailto:elias.r...@gmail.com>] Sent: Tuesday, 4 November 2014 12:48 a.m. To: ganglia-general@lists.sourceforge.net<mailto:ganglia-general@lists.sourceforge.net> Subject: [Ganglia-general] help with gmond python plugin Hi guys, I have very little understanding of python, but I've been trying to make a python plugin for gmond. But it doesn't work. I was hoping if someone could look at my code and tell me what is wrong? I have it at https://gist.github.com/Raboo/01d4dd9bc125efd4f9c5 And my conifg looks like this # cat /etc/ganglia/conf.d/at_metrics.pyconf modules { module { name = "at_metrics" language = "python" enabled = "yes" } } collection_group { collect_every = 10 time_threshold = 50 metric { name_match = "Queues(.+)" } } Basically I want to catch every metric that at_metrics will produce. But I started with Queues(.+) to catch everything that start with Queues. But that didn't work.. When I start gmond it gives me the following messages.. # /usr/sbin/gmond --pid-file=/var/run/gmond.pid .... loaded module: python_module [PYTHON] No metric name given in module [at_metrics]. [PYTHON] No metric name given in module [at_metrics]. [PYTHON] No metric name given in module [at_metrics]. [PYTHON] No metric name given in module [at_metrics]. [PYTHON] No metric name given in module [at_metrics]. [PYTHON] No metric name given in module [at_metrics]. [PYTHON] No metric name given in module [at_metrics]. [PYTHON] No metric name given in module [at_metrics]. [PYTHON] No metric name given in module [at_metrics]. [PYTHON] No metric name given in module [at_metrics]. .... Unable to find any metric information for 'Queues(.+)'. Possible that a module has not been loaded. ------------------------------------------------------------------------------ _______________________________________________ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net<mailto:Ganglia-general@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/ganglia-general
------------------------------------------------------------------------------
_______________________________________________ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general