Publisher review:embeddedgmetric - a simple interface (c/c /python/perl/php) to inject 'gmetric' data into gmond Ganglia's gmetric is a handy command line tool to inject custom metrics into gmond. However it and libganglia are not designed for embedding into a C/C application. Nor does it provide any scripting interface. This project provide scripting modules that do not require gmond.conf or gmetric or any other dependencies (these are not wrappers around C code or call gmetric). There is also a C/C library for embedding into applications.
The main benefit of embedded gmetric into your script or application is to avoid the overhead of
- parsing gmond.conf (assuming it is available on your machine)
- starting a new process
- calling gethostbyname to resolve the socket
For the occasion metric, calling out to gmetric is not a problem. However if you wanted to inject dozens (hundreds?) of statistics the overhead can slow you down.
embeddedgmetric 1.1.0 is a PHP script for Development Tools scripts design by nickgsuperstar.
It runs on following operating system: Windows / Linux / BSD / Solaris.
Operating system:Windows / Linux / BSD / Solaris