This is a collection of Grafana dashboards to display James metrics.
The following command allow you to run a fresh grafana server :
docker run -i -p 3000:3000 grafana/grafana
Once running, you need to set up an ElasticSearch data-source. You can do this either from UI or from a configuration file.
[james-metrics-]YYYY-MM
Look up file grafana-datasource.yaml from Grafana and add following data source into it:
apiVersion: 1 datasources: - name: DS_JAMES_ES type: elasticsearch access: proxy database: "[james-metrics-]YYYY-MM" url: http://elasticsearch:9200 version: 6 editable: true jsonData: interval: Daily timeField: "@timestamp"
Import the different dashboard JSON files in this directory to Grafana via UI or paste the files into Grafana dashboards folder (/var/lib/grafana/dashboards by default)
You then need to enable James to report its stats into ElasticSearch. Modify your James ElasticSearch configuration file accordingly. To help you doing this, you can take a look to GitHub. Note that you need to run a guice version of James.