You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tobias 282077ff52
Merge pull request #5 from genofire/master
3 years ago
LICENSE Create LICENSE 4 years ago add example dashboard 3 years ago
grafana-example.json add example dashboard 3 years ago
grafana-example.png add example dashboard 3 years ago Adding --config parameter to provide a path to a configuration file for security reasons (issue #2) 3 years ago


Quick and dirty approach to get stats of rspamd out of the webinterface's API into InfluxDB for visualizing using Grafana.


python3 --url "" --password "superSecretPassword"

You may provide the URL and password by defining the path to a configuration file in order to prevent other users from reading the password in clear text from the process list. To do so you need to provide the --config $path argument, e.g.

python3 --config "~/config.json"

The configuration file needs to contain the fields url and password as valid JSON. An example file could look like this:

    "url": "",
    "password": "superSecretPassword"


Use this script call within InfluxData's Telegraf


	commands = ["python3 /opt/rspamd-influxdb/ --config /etc/telegraf/tools-conf/rspamd-fetch.json"]
	timeout = "5s"
	data_format = "influx"

Security Tip

chown root:telegraf /etc/telegraf/tools-conf/rspamd-fetch.json
chmod 640 /etc/telegraf/tools-conf/rspamd-fetch.json

Grafana example

Grafana Example