Skip to content

Commit

Permalink
Added initial metrics dashboard and dev containers to the dev docker-…
Browse files Browse the repository at this point in the history
…compose stack, so it includes a preconfigured Grafana + Prometheus services, with provisioned dashboard on source.

Added documentation for metrics as well.

Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Aug 12, 2024
1 parent 0ca1c5e commit 13f1d50
Show file tree
Hide file tree
Showing 9 changed files with 659 additions and 32 deletions.
28 changes: 27 additions & 1 deletion server/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,32 @@ services:
env_file:
- .env
ports:
- "9999:9999"
- "8080:8080"
- "5005:5005"
- "9999:9999"

prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./metrics/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- "9090:9090"

grafana:
image: grafana/grafana
container_name: grafana
depends_on:
- prometheus
environment:
- GF_SECURITY_ADMIN_USER=admin
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
volumes:
- ./metrics/dashboards:/etc/grafana/provisioning/dashboards
- ./metrics/datasources/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml
ports:
- "3000:3000"

Loading

0 comments on commit 13f1d50

Please sign in to comment.