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

prometheus.yml — first linesYAML
# 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-pods

File details

Size
676 B (676 bytes)
MIME type
application/yaml
SHA-256
b2942c46c375d6711180ee137dd6b44d28c1b63726f81266b884f374eab8b55c
MD5
35f00b50fd6e80905979dce7715c903a

Download from the command line

curl -L -o prometheus.yml https://files.samplefiles.com/config/prometheus/prometheus.yml

Or check the download in your browser with the checksum calculator.