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
1 changed files with 9 additions and 2 deletions

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
e.g.:
```
```toml
[[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"
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](https://raw.githubusercontent.com/thannaske/rspamd-influxdb/master/grafana-example.png)