Skip to content

Commit

Permalink
Development: Update docker-based monitoring setup (#5598)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleiss authored Nov 14, 2022
1 parent 964daf6 commit 03bde7f
Show file tree
Hide file tree
Showing 5 changed files with 428 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/docker/monitoring.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# This configuration is intended for development purpose, it's **your** responsibility to harden it for production
version: '3.8'
services:
artemis-prometheus:
image: prom/prometheus:v2.31.1
volumes:
- ./prometheus/:/etc/prometheus/
command:
- '--config.file=/etc/prometheus/prometheus.yml'
prometheus:
container_name: prometheus
image: prom/prometheus:v2.34.0
# If you want to run this in production, you should persist the /etc/prometheus-directory
#volumes:
# - ./monitoring/prometheus/:/etc/prometheus/
# If you want to expose these ports outside your dev PC,
# remove the "127.0.0.1:" prefix
ports:
- 127.0.0.1:9090:9090
# On macOS, remove next line and replace localhost by host.docker.internal in prometheus/prometheus.yml and
# grafana/provisioning/datasources/datasource.yml
network_mode: 'host' # to test locally running service
artemis-grafana:
image: grafana/grafana:8.2.4
grafana:
container_name: grafana
image: grafana/grafana:9.0.2
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/
- ./monitoring/grafana/provisioning/:/etc/grafana/provisioning/
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_USERS_ALLOW_SIGN_UP=false
Expand Down
Loading

0 comments on commit 03bde7f

Please sign in to comment.