Skip to content

Commit

Permalink
Update rootfs/promstack-housekeeping-agent.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Dec 5, 2024
1 parent b9a5e2f commit 173dadc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/promstack-housekeeping-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ while true; do

count=0

docker_config_prune "com.docker.stack.namespace=${DOCKER_STACK_NAMESPACE}"
docker_config_prune "io.prometheus.scrape_config=true"
docker_config_prune "io.grafana.dashboard=true"
docker_config_prune "io.grafana.provisioning.alerting=true"
docker_config_prune "io.grafana.provisioning.dashboard=true"
docker_config_prune "io.grafana.provisioning.datasource=true"
docker_config_prune "io.prometheus.scrape_config=true"
docker_config_prune "com.docker.stack.namespace=${DOCKER_STACK_NAMESPACE}"

if [ $count -gt 0 ]; then
logfmt 'msg="Housekeeping done, removed '${count}' Docker config objects."'
Expand Down

0 comments on commit 173dadc

Please sign in to comment.