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

Commit

Permalink
Refactor renamed scrape config job names
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Jun 29, 2024
1 parent 377b8bd commit 790d015
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rootfs/dockerswarm.d/dockerswarm-nodes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# The Docker Engine metrics are required to be configured in the daemon.json file for Prometheus to scrape them.
# This configuration also includes a job to scrape the Node Exporter metrics that run on each node.
scrape_configs:
- job_name: 'promstack/nodes'
- job_name: 'dockerswarm/nodes'

dockerswarm_sd_configs:
- host: unix:///var/run/docker.sock
Expand Down
4 changes: 2 additions & 2 deletions rootfs/dockerswarm.d/dockerswarm-services-endpoints-host.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# io.prometheus.dockerswarm-services.should_be_probed=<true|false>
scrape_configs:

- job_name: 'promstack/services-endpoints/host'
- job_name: 'dockerswarm/services-endpoints/host'

metrics_path: /probe
params:
Expand All @@ -28,7 +28,7 @@ scrape_configs:

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# io.prometheus.dockerswarm-services.should_be_probed=<true|false>
scrape_configs:

- job_name: 'promstack/services-endpoints/ingress'
- job_name: 'dockerswarm/services-endpoints/ingress'

metrics_path: /probe
params:
Expand All @@ -25,7 +25,7 @@ scrape_configs:

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

- target_label: module
replacement: tcp_connect
Expand Down
2 changes: 1 addition & 1 deletion rootfs/dockerswarm.d/dockerswarm-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# - io.prometheus.dockerswarm-tasks.should_be_scraped=<true|false>
scrape_configs:
- job_name: 'promstack/tasks'
- job_name: 'dockerswarm/tasks'

dockerswarm_sd_configs:
- host: unix:///var/run/docker.sock
Expand Down

0 comments on commit 790d015

Please sign in to comment.