Merge pull request #4 from genofire/master

fix readme + add security tip
This commit is contained in:
Tobias 2018-11-09 12:34:16 +01:00 committed by GitHub
commit 6a89e68c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)