Skip to content

QuadStingray/docker-rspamd-influxdb

Repository files navigation

rspamd-influxdb:0.5.0

Introduction

Git-Repository to build Docker Container Image to import statistics from rspamd to influxdb. The Implementation is inspired by https://github.com/thannaske/rspamd-influxdb

Contributing

If you find this image helpfull, so you can see here how you can help:

  • Create an new branch and send a pull request with your features and bug fixes
  • Help users resolve their issues.

Issues

Before reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker installation guide for instructions.

If that recommendations do not help then report your issue along with the following information:

  • Output of the docker version and docker info commands
  • The docker run command or docker-compose.yml used to start the image. Mask out the sensitive bits.

Getting started

Installation

Automated builds of the image are available on Dockerhub

docker pull quadstingray/rspamd-influxdb:0.5.0

Alternatively you can build the image yourself.

docker build . --tag 'quadstingray/rspamd-influxdb:dev';

Quickstart

docker run -e "RSPAMD_URL=https://YOUR-URL" -e "RSPAMD_PASSWORD=YOUR-PASSWORD" quadstingray/rspamd-influxdb:0.5.0 

Alternatively, you can use the sample docker-compose.yml file to start the container using Docker Compose

Environment Variables

Variable Default Value Informations
INTERVAL 3600 Seconds between import of statistics
RSPAMD_URL https://RSPAMD-URL required url to the spamd instalation
RSPAMD_PASSWORD PASSWORD required password to the spamd instalation. Thats is the same like the pwd for the WebUi
INFLUXDB_URL http://influxdb:8086 Url of your InfluxDb installation
INFLUXDB_DB rspamd Database at your InfluxDb installation
INFLUXDB_USER DEFAULT optional user for insert to your InfluxDb
INFLUXDB_PWD DEFAULT optional password for insert to your InfluxDb

Grafana

There is an sample grafana dashboard at this repository. You can import that to your Grafana installation. Sample dashboard.json