chibenwa commented on a change in pull request #373: URL: https://github.com/apache/james-project/pull/373#discussion_r610473050
########## File path: docs/modules/servers/pages/distributed/operate/metrics.adoc ########## @@ -116,4 +159,37 @@ Import the different dashboards you want. You then need to enable reporting through ElasticSearch. Modify your James ElasticSearch configuration file accordingly. To help you doing this, you can take a look to -https://github.com/apache/james-project/blob/master/dockerfiles/run/guice/cassandra/destination/conf/elasticsearch.properties[elasticsearch.properties]. \ No newline at end of file +https://github.com/apache/james-project/blob/master/dockerfiles/run/guice/cassandra/destination/conf/elasticsearch.properties[elasticsearch.properties]. + +== Running and configuring Prometheus/Grafana + +The following docker-compose.yml file will allow you to run a fresh prometheus/grafana montoring stack: + +.... +version: '3' + +services: + grafana: + image: grafana/grafana:latest + container_name: grafana + ports: + - "3000:3000" + # volumes: + # - ./conf/grafana/grafana.ini:/etc/grafana/grafana.ini + # - ./conf/grafana/provisioning:/etc/grafana/provisioning + + prometheus: + image: prom/prometheus:latest + restart: unless-stopped + ports: + - "9090:9090" + volumes: #Map your scrape config to prometheus container. + - ./conf/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml Review comment: Where is the sample to the `prometheus.yml` file? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
