mirror of
https://github.com/thannaske/rspamd-influxdb.git
synced 2023-10-10 13:36:59 +02:00
Merge pull request #4 from genofire/master
fix readme + add security tip
This commit is contained in:
commit
6a89e68c67
11
README.md
11
README.md
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user