You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by GitBox <gi...@apache.org> on 2021/04/08 10:32:59 UTC

[GitHub] [james-project] chibenwa commented on a change in pull request #372: @fiery06 JAMES-3405 Update Prometheus config document

chibenwa commented on a change in pull request #372:
URL: https://github.com/apache/james-project/pull/372#discussion_r609553764



##########
File path: docs/modules/servers/pages/distributed/operate/metrics.adoc
##########
@@ -95,25 +105,35 @@ This is for instance how the JMAP dashboard looks like:
 
 image::metrics.png[metrics for the JMAP protocol request latencies]
 
-== Running and configuring Grafana
+== Running and configuring Prometheus/Grafana
 
-The following command allow you to run a fresh grafana server :
+The following docker-compose.yml file will allow you to run a fresh prometheus/grafana montoring stack:
 
 ....
-docker run -i -p 3000:3000 grafana/grafana
+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:
       Can you include sample prometheus.yml as well as an example?




-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org