Skip to content

Instantly share code, notes, and snippets.

@sebbrandt87
Last active June 18, 2019 14:28
Show Gist options
  • Save sebbrandt87/289f102695525cab125e0980007c06ba to your computer and use it in GitHub Desktop.
Save sebbrandt87/289f102695525cab125e0980007c06ba to your computer and use it in GitHub Desktop.
prometheus config
global:
scrape_interval: 15s
evaluation_interval: 15s
scrape_timeout: 10s
# Attach these labels to any time series or alerts when communicating with
# external systems (federation, remote storage, Alertmanager).
external_labels:
monitor: 'cloudkeeper-prometheus'
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
rule_files:
- "alert.rules"
# A scrape configuration containing exactly one endpoint to scrape.
scrape_configs:
- job_name: 'cloudkeeper'
scrape_interval: 30m
scrape_timeout: 50s
static_configs:
- targets:
- cloudkeeperaws.marathon.l4lb.thisdcos.directory:8000
- job_name: 'grafana'
scrape_interval: 30s
scrape_timeout: 10s
static_configs:
- targets:
- cloudkeepergrafana.marathon.l4lb.thisdcos.directory:3000
- job_name: 'prometheus'
scrape_interval: 10s
static_configs:
- targets: ['localhost:9090']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment