Skip to content

Instantly share code, notes, and snippets.

@ivanahuckova
Last active October 22, 2022 13:30
Show Gist options
  • Save ivanahuckova/a818283b0de96a93af95fdc36ec24e56 to your computer and use it in GitHub Desktop.
Save ivanahuckova/a818283b0de96a93af95fdc36ec24e56 to your computer and use it in GitHub Desktop.
global:
# How frequently to scrape targets
scrape_interval: 10s
# How frequently to evaluate rules
evaluation_interval: 10s
# Rules and alerts are read from the specified file(s)
rule_files:
- rules.yml
# Alerting specifies settings related to the Alertmanager
alerting:
alertmanagers:
- static_configs:
- targets:
# Alertmanager's default port is 9093
- localhost:9093
# A list of scrape configurations that specifies a set of
# targets and parameters describing how to scrape them.
scrape_configs:
- job_name: 'prometheus'
scrape_interval: 5s
static_configs:
- targets:
- localhost:9090
- job_name: 'node_exporter'
scrape_interval: 5s
static_configs:
- targets:
- localhost:9100
- job_name: 'prom_middleware'
scrape_interval: 5s
static_configs:
- targets:
- localhost:9091
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment