Created
December 8, 2017 08:18
-
-
Save jotak/d99c04563903338268821b42340b3864 to your computer and use it in GitHub Desktop.
For Medium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global: | |
# set whatever you like | |
scrape_interval: 10s | |
scrape_timeout: 10s | |
scrape_configs: | |
- job_name: dc_prometheus | |
honor_labels: true | |
metrics_path: /federate | |
params: | |
match[]: | |
- '{job="my-kubernetes-job"}' | |
static_configs: | |
- targets: | |
- prometheus-slaveA:9090 | |
- prometheus-slaveB:9090 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used here: https://medium.com/@JoelTakvorian/prometheus-federation-in-kubernetes-4ce46bda834e