change grafana to dockerfile to add munin after

This commit is contained in:
tuanvu
2026-02-13 20:04:15 +01:00
parent 94c9a56a6a
commit eb4d3caa8d
3 changed files with 9 additions and 2 deletions

View File

@@ -12,11 +12,16 @@ services:
- ../prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
command:
- "--config.file=/etc/prometheus/prometheus.yml"
depends_on:
- back
- db
networks:
- app-network
grafana:
image: grafana/grafana:latest
build:
context: ..
dockerfile: dockerfiles/grafana/Dockerfile
container_name: grafana
restart: unless-stopped
volumes:

View File

@@ -0,0 +1,2 @@
FROM grafana/grafana:latest
RUN grafana-cli plugins install grafana-munin-datasource

View File

@@ -5,4 +5,4 @@ scrape_configs:
- job_name: "backend_quarkus"
metrics_path: /q/metrics
static_configs:
- targets: ["back:8080"]
- targets: ["back:8080"]