Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Rework rootfs/dockerswarm.d/dockerswarm-tasks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Jun 22, 2024
1 parent 932b24f commit d48e7c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/dockerswarm.d/dockerswarm-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ scrape_configs:
regex: 'false'
action: drop

# Keep only tasks connected to the "dockerswarm_metrics" network
# Keep only tasks connected to the "prometheus" network
- source_labels:
- __meta_dockerswarm_network_name
regex: (^dockerswarm_metrics$)
regex: (^prometheus$)
action: keep

# Only keep containers that should be running.
Expand Down

0 comments on commit d48e7c6

Please sign in to comment.