Created
October 25, 2017 02:34
-
-
Save stanchan/2dc422c6f6c0e091488f46757974da32 to your computer and use it in GitHub Desktop.
2_prometheus_scrapes
This file contains hidden or 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
scrape_configs: | |
{% for server in prometheus_scrape %} | |
- job_name: {{ server.split('.')[0] }} | |
static_configs: | |
- targets: | |
- '{{ server }}' | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment