feat: remove old config references from Grafana and Prometheus deployment files

This commit is contained in:
2026-07-12 09:56:15 +08:00
parent ec59fc0604
commit ad5492d1e7
3 changed files with 2 additions and 18 deletions
-4
View File
@@ -229,8 +229,6 @@ deploy-grafana: pull
set -a ;\
. ./swarm/.env ;\
set +a ;\
echo "Removing old immutable configs..." ;\
docker config rm grafana_grafana_prometheus_datasource 2>/dev/null || true ;\
docker stack deploy --compose-file ./swarm/grafana.yml grafana ;\
}
deploy-prometheus: pull
@@ -239,8 +237,6 @@ deploy-prometheus: pull
set -a ;\
. ./swarm/.env ;\
set +a ;\
echo "Removing old immutable config..." ;\
docker config rm prometheus_prometheus_config 2>/dev/null || true ;\
docker stack deploy --compose-file ./swarm/prometheus.yml prometheus ;\
}
deploy-nodepad: pull
+1 -7
View File
@@ -1,10 +1,6 @@
volumes:
grafana_data: {}
configs:
grafana_prometheus_datasource:
file: ./grafana/provisioning/datasources/prometheus.yml
networks:
traefik-public:
external: true
@@ -23,9 +19,7 @@ services:
- /var/data/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- /var/data/grafana/provisioning:/etc/grafana/provisioning:ro
- /var/data/grafana/dashboards:/var/lib/grafana/dashboards:ro
configs:
- source: grafana_prometheus_datasource
target: /etc/grafana/provisioning/datasources/prometheus.yml
- ./grafana/provisioning/datasources/prometheus.yml:/etc/grafana/provisioning/datasources/prometheus.yml:ro
networks:
- traefik-public
deploy:
+1 -7
View File
@@ -1,10 +1,6 @@
volumes:
prometheus_data: {}
configs:
prometheus_config:
file: ./prometheus/prometheus.yml
networks:
traefik-public:
external: true
@@ -22,9 +18,7 @@ services:
volumes:
- prometheus_data:/prometheus
- /var/data/prometheus/rules:/etc/prometheus/rules:ro
configs:
- source: prometheus_config
target: /etc/prometheus/prometheus.yml
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
networks:
- traefik-public
deploy: