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

fix readme + add security tip

This commit is contained in:
Martin/Geno 2018-11-09 12:18:06 +01:00
parent 6ed06a53ac
commit 3bd2b2d502
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A

View File

@ -21,12 +21,19 @@ The configuration file needs to contain the fields `url` and `password` as valid
Use this script call within InfluxData's Telegraf Use this script call within InfluxData's Telegraf
e.g.: e.g.:
``` ```toml
[[inputs.exec]] [[inputs.exec]]
commands = ["python3 /opt/rspamd-influxdb/rspamd-influxdb.py http://localhost:11334/ superSecretPassword"] commands = ["python3 /opt/rspamd-influxdb/rspamd-influxdb.py --config /etc/telegraf/tools-conf/rspamd-fetch.json"]
timeout = "5s" timeout = "5s"
data_format = "influx" data_format = "influx"
``` ```
**Security Tip**
```sh
chown root:telegraf /etc/telegraf/tools-conf/rspamd-fetch.json
chmod 640 /etc/telegraf/tools-conf/rspamd-fetch.json
```
## 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)