Created
October 25, 2017 02:34
-
-
Save stanchan/2dc422c6f6c0e091488f46757974da32 to your computer and use it in GitHub Desktop.
Revisions
-
stanchan created this gist
Oct 25, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ scrape_configs: {% for server in prometheus_scrape %} - job_name: {{ server.split('.')[0] }} static_configs: - targets: - '{{ server }}' {% endfor %}