Skip to content

Instantly share code, notes, and snippets.

@stanchan
Created October 25, 2017 02:34
Show Gist options
  • Save stanchan/2dc422c6f6c0e091488f46757974da32 to your computer and use it in GitHub Desktop.
Save stanchan/2dc422c6f6c0e091488f46757974da32 to your computer and use it in GitHub Desktop.

Revisions

  1. stanchan created this gist Oct 25, 2017.
    7 changes: 7 additions & 0 deletions 2_prometheus_scrapes
    Original 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 %}