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

Commit

Permalink
Update dockerswarm-nodes scrape config
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Jun 13, 2024
1 parent 78e2351 commit f4a4888
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rootfs/dockerswarm/dockerswarm-nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ scrape_configs:
replacement: $1:9323

# Set hostname as instance label
- source_labels:
- __meta_dockerswarm_node_address
target_label: instance
# - source_labels:
# - __meta_dockerswarm_node_address
# target_label: instance

# ================================================================================
# Label mapping
Expand All @@ -49,6 +49,7 @@ scrape_configs:
- source_labels:
- __meta_dockerswarm_node_address
target_label: instance
replacement: $1:9100

# ================================================================================
# Label mapping
Expand Down

0 comments on commit f4a4888

Please sign in to comment.