1
0
mirror of https://github.com/thannaske/rspamd-influxdb.git synced 2023-10-10 13:36:59 +02:00

Merge pull request #3 from genofire/master

Add example for telegraf
This commit is contained in:
Tobias 2018-11-08 16:00:41 +01:00 committed by GitHub
commit 57c69cf072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,5 +7,13 @@ Quick and dirty approach to get stats of rspamd out of the webinterface's API in
## Utilization ## Utilization
Use this script call within InfluxData's Telegraf Use this script call within InfluxData's Telegraf
e.g.:
```
[[inputs.exec]]
commands = ["python3 /opt/rspamd-influxdb/rspamd-influxdb.py http://localhost:11334/ superSecretPassword"]
timeout = "5s"
data_format = "influx"
```
## Grafana example ## Grafana example
![Grafana Example](https://raw.githubusercontent.com/thannaske/rspamd-influxdb/master/grafana-example.png) ![Grafana Example](https://raw.githubusercontent.com/thannaske/rspamd-influxdb/master/grafana-example.png)