Ganglia_cli
A small Python library to send metrics to Ganglia from your Python code. Supports UDP, multicast, group and spoofing.
Installing
To install this update, clone this repository and:
$ git clone https://github.com/sarnold/ganglia_cli $ cd ganglia_cli $ python setup.py install
To install the (original) upstream package:
$ pip install ganglia
Note the upstream package may collide with other python modules named ganglia
.
Usage
Sending metric over UDP:
ganglia_cli = GMetric("udp://127.0.0.1") ganglia_cli.send( name='hits', units='req/sec', type='uint8', value=200, tmax=60, dmax=300, group='web' )
Note
This is an update of the last version on pypi: https://pypi.org/project/ganglia/