From ab15857a89e825f5e8028bb087bead60f3706c95 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Thu, 8 Nov 2018 15:57:54 +0100 Subject: [PATCH] Add example for telegraf --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index fa03bcf..74171ce 100644 --- a/README.md +++ b/README.md @@ -7,5 +7,13 @@ Quick and dirty approach to get stats of rspamd out of the webinterface's API in ## Utilization 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](https://raw.githubusercontent.com/thannaske/rspamd-influxdb/master/grafana-example.png)