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

Commit

Permalink
Refactor scrape config job names
Browse files Browse the repository at this point in the history
  • Loading branch information
socheatsok78 committed Jun 23, 2024
1 parent fe0bb0c commit 93da01e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
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: 'dockerswarm/nodes/alertmanager'
- job_name: 'promstack/nodes/alertmanager'

dockerswarm_sd_configs:
- host: unix:///var/run/docker.sock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
scrape_configs:

- job_name: 'dockerswarm/nodes/cadvisor'
- job_name: 'promstack/nodes/cadvisor'

dockerswarm_sd_configs:
- host: unix:///var/run/docker.sock
Expand Down
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: 'dockerswarm/nodes/node-exporter'
- job_name: 'promstack/nodes/node-exporter'

dockerswarm_sd_configs:
- host: unix:///var/run/docker.sock
Expand Down
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: 'dockerswarm/nodes'
- job_name: 'promstack/nodes'

dockerswarm_sd_configs:
- host: unix:///var/run/docker.sock
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: 'dockerswarm/services-endpoints/host'
- job_name: 'promstack/services-endpoints/host'

metrics_path: /probe
params:
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: 'dockerswarm/services-endpoints/ingress'
- job_name: 'promstack/services-endpoints/ingress'

metrics_path: /probe
params:
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: 'dockerswarm/tasks'
- job_name: 'promstack/tasks'

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

0 comments on commit 93da01e

Please sign in to comment.