Config Files · 1 file
Sample Prometheus Config File
prometheus.yml sets scrape targets, service discovery and alerting. Our sample is realistic and valid for its tool, with fake hosts and secrets.
Prometheus config · 676 B
Prometheus config
A Prometheus config with global intervals, rule files, Alertmanager, static scrape targets and Kubernetes pod discovery with relabeling. All hosts, keys and secrets are fake.
CC0 · free for any use · Verified by an independent tool · Report a problem
# Sample prometheus.yml — samplefiles.com
global:
scrape_interval: 15s
evaluation_interval: 15s
rule_files:
- alerts/*.yml
alerting:
alertmanagers:
- static_configs:
- targets: ["alertmanager:9093"]
scrape_configs:
- job_name: prometheus
static_configs:
- targets: ["localhost:9090"]
- job_name: node
static_configs:
- targets: ["10.0.1.11:9100", "10.0.1.12:9100"]
labels:
env: production
- job_name: kubernetes-podsFile details
Download from the command line
curl -L -o prometheus.yml https://files.samplefiles.com/config/prometheus/prometheus.ymlwget https://files.samplefiles.com/config/prometheus/prometheus.ymlhttps://files.samplefiles.com/config/prometheus/prometheus.ymlprintf '%s %s\n' b2942c46c375d6711180ee137dd6b44d28c1b63726f81266b884f374eab8b55c prometheus.yml | shasum -a 256 -cOr check the download in your browser with the checksum calculator.