Hi,
I've written a custom DSO module for Gmond that create dynamic metrics
(much similar to how mod_multicpu create dynamic metrics in metric_init).
I need to go further and add / remove metrics dynamically in my module.
I thought I could simply dynamically modify the metric_info Ganglia_25metric
apr_array (and moving the NULL terminator). What I found is that Gmond
parses the metric_info array only when it start. Any modifications to my
module metric_info array after Gmond started never get collected.
Is there a way to instruct Gmond that I need my metric_info array to be
reloaded? Perhaps a module configuration directive to tell Gmond at which
time interval to reload the module metric_info, or better, a special metric
threshold?
Imagine adding CPU hotplug support to the multicpu module, exporting a
cpu_count metric (number of CPU) and setting a new collection_group
module_reload_threshold parameter to "1.0" which would cause the entire
multicpu metric_init to be reloaded when the cpu_count metric changes (or a
module reload_time_threshold to "300" to reload metrics every 5 minutes)
I found this post that suggest calling gmetric (or sending UDP XDR packets
to gmond) from within my modules, but it doesn't sound like a very scalable
solution, at least not until Gmond support having multiple metrics per
packet (I have 200-300 dynamic metrics to inject):
http://sourceforge.net/mailarchive/message.php?msg_id=29994352
Thanks
Simon
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Ganglia-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ganglia-developers