Export logs from ringserver as influxdb timeseries
Project description
ringserverstats
Installation
ringserverstats is distributed on PyPI <https://pypi.org>
_ as a universal
wheel and is available on Linux/macOS and Windows and supports
Python 2.7/3.5+ and PyPy.
$ pip install ringserverstats
Usage
To work properly, this program needs the following environment variables set :
INFLUXDB_HOST
: The host name or adress of influxdb serverINFLUXDB_PORT
: The port number of influxdb serverINFLUXDB_USER
: The influxdb user to authenticate toINFLUXDB_PASS
: The password to authenticate withINFLUXDB_DB
: The database name containing the metricINFLUXDB_VERIFY_SSL
: Set toyes
orno
to verify SSL connection
$ python ringser_stats tlogs.log
Explanations
The TX logs from ringserver are metrics suitable for a timeserie database. The idea is to parse the logs, as in the exemple below, and to generate values to insert into an influxdb timeseries database.
The file grafana_dashboard.json can be imported into grafana to visualize this timeserie.
Used tags in influxdb :
show tag keys from ringserver
The ringserver measure has several tags :
- network, station, location, channel : which data was requested
- geohash : location of the client in geohash format
- clienthash : a hash of the client ip (usefull to correlate the clients requests)
License
ringserver_stats is distributed under the terms of the GPL v3 or later
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ringserverstats-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 334ee814523b948f9f20af5c7492368a86cc600672d41f31c3222a3fde89eacd |
|
MD5 | 9111f774129bb9af959627a40bb5d4bf |
|
BLAKE2b-256 | aea80b521d5f41abbdde21547c83eee2e28661155380f55eabadef4c05f18c97 |