From 8e9274e1327799b82c242cf502c502b586155fde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C3=B3=C5=82grabia?= Date: Wed, 11 Dec 2024 20:43:02 +0100 Subject: [PATCH] Setup of prometheus + grafana (once set up manually), configuration is preserved. --- 2024/12/graphana_demo1/app.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 2024/12/graphana_demo1/app.yaml diff --git a/2024/12/graphana_demo1/app.yaml b/2024/12/graphana_demo1/app.yaml new file mode 100644 index 0000000..87a8ad9 --- /dev/null +++ b/2024/12/graphana_demo1/app.yaml @@ -0,0 +1,28 @@ +version: '3.7' +services: + prometheus: + image: 'prom/prometheus' + ports: + - '9090:9090' + volumes: + - 'prometheus-data:/prometheus' + networks: + - net + + grafana: + image: 'grafana/grafana' + ports: + - '3000:3000' + volumes: + - 'grafana-storage:/var/lib/grafana' + networks: + - net + +networks: + net: + driver: bridge + +volumes: + grafana-storage: + prometheus-data: +