sarnold / ganglia_cli

A gangla client module written in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ganglia_cli

License Version Build Status Code Climate Issues Pull Requests

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/

About

A gangla client module written in Python

License:MIT License


Languages

Language:Python 100.0%