Skip to content

Instantly share code, notes, and snippets.

@s-chb
Created May 31, 2020 23:26
Show Gist options
  • Select an option

  • Save s-chb/aececf32728c9aabdd39d2b5d0e8a482 to your computer and use it in GitHub Desktop.

Select an option

Save s-chb/aececf32728c9aabdd39d2b5d0e8a482 to your computer and use it in GitHub Desktop.
global:
scrape_interval: 10s
rule_files:
- alert.rules.yml
alerting:
alertmanagers:
- static_configs:
- targets:
- 'localhost:9093'
scrape_configs:
- job_name: 'prometheus_metrics'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']
- job_name: 'node_exporter_metrics'
scrape_interval: 5s
static_configs:
- targets: ['localhost:9100','prometheus-target-1:9100','prometheus-target-2:9100']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment