You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
configs | 2 years ago | |
deps | 2 years ago | |
docs | 2 years ago | |
gmondflux | 1 year ago | |
tests | 1 year ago | |
.envrc | 3 years ago | |
.gitignore | 2 years ago | |
README.md | 1 year ago | |
pyenv.nix | 1 year ago | |
pytest.ini | 1 year ago | |
shell.nix | 1 year ago |
README.md
gmondflux
Gmondflux gmond UDP packet receiver.
Compability
Target Platform is Python 3.4 (SLES 12).
Configuration
Define tags to extract from the gmond metric name inside config/gmondflux.json
and pass it to gmondflux.py.
The key-value-pairs will be passed to Pythons re.sub()-function.
The first matching expression will be used.
example:
r"^(?P<hdisk>hdisk\d+)(.*)$" : r"hdisk\2"
hdisk0_max_wserv -> disk_max_wserv
{'disk': 'hdisk0'}
Manual testing
- Start Telegraf Socket Listener using
telegraf --config configs/telegraf.conf
. - Start gmondflux using
./gmondflux/gmondflux.py -t telegraf.sock
. - Send metrics using
gmetric -c configs/gmetric.conf -n my_metric -t string -v abc
. - The metric should be displayed on STDOUT of the Telegraf process.
Run automated tests
Execute pytest --show-capture=no
to run the automated tests. To run this tests, make sure gmetric is in your PATH, e.g. by using the provided nix-shell environment.