One of the approaches is to "cache" the results. For example this module has a method get_metrics

https://github.com/ganglia/gmond_python_modules/blob/master/varnish/python_modules/varnish.py#L50

That will "cache" the info for few seconds.

Hope that helps
Vladimir

On 01/20/2015 02:51 PM, Oliver wrote:
hi all,

I am a newbie on Ganglia and have a rather basic question:

Say I want to define a handler that will collect three metrics (timestamp, read_bytes, write_bytes): all three metrics are from a single /proc entry, and it ONLY makes sense when three measures are looked together at some instant time t.

Since the call back is written in such way that it seems each metric will be polled individually, there seems no such guarantee that the trio will be treated as group. Am I on the wrong track here? what's the appropriate way to approach it?

Best,

Oliver




------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet


_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general



------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to