Export logs from ringserver as influxdb timeseries
Project description
ringserverstats
Installation
ringserverstats is distributed on PyPI <https://pypi.org>
_ as a universal
wheel.
$ 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 ringserstats txlogs.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
- hosthash : a hash of the client ip (usefull to correlate the clients requests)
License
ringserverstats is distributed under the terms of the GPL v3 or later. See LICENSE file.
Build
python3 setup.py sdist bdist_wheel
Test
tox
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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f967b13504beb1942b35ae64c3d9c87fb516f799c5d67e3c2fd3995b39a5806a |
|
MD5 | 87e4e451740c9fa19998e74f8e0fb89f |
|
BLAKE2b-256 | 1026eb0b26fbf45ac8e0184b946db42e58612cbc6e15c10d47c663f67a676b13 |