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

Commit

Permalink
Refactor dockerswarm-services-endpoints scrape configs
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Jul 10, 2024
1 parent a6afc1a commit d3d58bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ scrape_configs:
values: [ running ]

relabel_configs:
- target_label: job
replacement: dockerswarm/services-endpoints
- target_label: module
replacement: tcp_connect

Expand Down Expand Up @@ -85,7 +83,7 @@ scrape_configs:
- source_labels: [__address__]
target_label: __param_target
- target_label: __address__
replacement: tasks.blackbox-exporter.svc.cluster.local:9115
replacement: tasks.blackbox-exporter.local:9115
- source_labels: [__param_target]
target_label: instance

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ scrape_configs:
role: services

relabel_configs:
- target_label: job
replacement: dockerswarm/services-endpoints

- target_label: module
replacement: tcp_connect

Expand Down Expand Up @@ -64,7 +61,7 @@ scrape_configs:
- source_labels: [__address__]
target_label: __param_target
- target_label: __address__
replacement: tasks.blackbox-exporter.svc.cluster.local:9115
replacement: tasks.blackbox-exporter.local:9115
- source_labels: [__param_target]
target_label: instance

Expand Down

0 comments on commit d3d58bd

Please sign in to comment.