Skip to content

Instantly share code, notes, and snippets.

@kchandan
Created November 24, 2017 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kchandan/05d4a3884fb61f55e80f321839cde3f0 to your computer and use it in GitHub Desktop.
Save kchandan/05d4a3884fb61f55e80f321839cde3f0 to your computer and use it in GitHub Desktop.
Prometheus example config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
- localhost:9093
#rule_files:
# - "example_rules.yml"
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: 'prometheus'
static_configs:
- targets: ['localhost:9090']
- job_name: 'example_export'
static_configs:
- targets: ['localhost:8000']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment