code-examples/2024/12/grafana_demo1
Tomasz Półgrabia 8ad94180fe Added prometheus datasource preconfiguration. 2024-12-11 22:11:04 +01:00
..
README.md Added prometheus datasource preconfiguration. 2024-12-11 22:11:04 +01:00
app.yaml Added prometheus datasource preconfiguration. 2024-12-11 22:11:04 +01:00
datasources.yaml Added prometheus datasource preconfiguration. 2024-12-11 22:11:04 +01:00
setup.yaml Added prometheus datasource preconfiguration. 2024-12-11 22:11:04 +01:00

README.md

Setup

docker compose -f ./setup.yaml up -d
docker container exec grafana_demo1-grafana-1 "/bin/bash" "-c" "mkdir -p /etc/grafana/provisioning/datasources"
docker container cp datasources.yaml grafana_demo1-grafana-1:/etc/grafana/provisioning/datasources/prometheus.yaml
docker compose -f ./setup.yaml down

Actual running

docker compose -f ./app.yaml -d