Skip to content

Instantly share code, notes, and snippets.

@akosveres
Created September 26, 2016 12:10
Show Gist options
  • Save akosveres/de4604749962aefbc19d57a399f75f12 to your computer and use it in GitHub Desktop.
Save akosveres/de4604749962aefbc19d57a399f75f12 to your computer and use it in GitHub Desktop.
global:
scrape_interval: 60s
evaluation_interval: 60s
external_labels:
monitor: '{{ ansible_fqdn }}'
rule_files:
- /etc/prometheus/rules/general.rules
scrape_configs:
- job_name: prometheus
scrape_interval: 60s
file_sd_configs:
- files:
- /etc/prometheus/targets/{{ env }}.yml
relabel_configs:
- source_labels: [__address__]
regex: '([^:]+).*'
target_label: 'instance'
replacement: '${1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment