I had to drop this for a while, but now I'm revisiting.

Changed from Quest to (.+) and now it gets empty graphs of all metrics into
ganglia
I updated the code so that it polls every time ganglia uses the callback
function.
But the graphs are empty
I can't understand why..

https://gist.github.com/Raboo/01d4dd9bc125efd4f9c5



2014-11-04 2:56 GMT+01:00 Evan Fraser <evan.fra...@trademe.co.nz>:

>  That’s an excellent point that I hadn’t noticed!
>
>
>
>
>
> *Evan Fraser **| Storage Engineer*
>
> *T*
>
> *+64 4 803 2756 <%2B64%204%20803%202756>*
>
> *M*
>
> *+64 22 087 4032 <%2B64%2022%20087%204032>*
>
>
>
>
>
> *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>
> 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>:
>
> 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
> M
> +64 22 087 4032
>
>
> From: Elias Abacioglu [mailto:elias.r...@gmail.com]
> Sent: Tuesday, 4 November 2014 12:48 a.m.
> To: 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
> https://lists.sourceforge.net/lists/listinfo/ganglia-general
>
>
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to