prometheus/server/templates/prometheus.yml.j2
changeset 5 4f014cdac0b1
equal deleted inserted replaced
4:46fe3aa0080c 5:4f014cdac0b1
       
     1 global:
       
     2   scrape_interval:     15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
       
     3   evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
       
     4   # scrape_timeout is set to the global default (10s).
       
     5 
       
     6   # Attach these labels to any time series or alerts when communicating with
       
     7   # external systems (federation, remote storage, Alertmanager).
       
     8   external_labels:
       
     9       monitor: 'example'
       
    10 
       
    11 # Alertmanager configuration
       
    12 # alerting:
       
    13 #   alertmanagers:
       
    14 #   - static_configs:
       
    15 #     - targets: ['localhost:9093']
       
    16 
       
    17 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
       
    18 # rule_files:
       
    19   # - "first_rules.yml"
       
    20   # - "second_rules.yml"
       
    21 
       
    22 # A scrape configuration containing exactly one endpoint to scrape:
       
    23 # Here it's Prometheus itself.
       
    24 scrape_configs:
       
    25   # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
       
    26   - job_name: 'prometheus'
       
    27     # server stats
       
    28     static_configs:
       
    29       - targets:
       
    30           - 'localhost:9090'
       
    31 
       
    32   - job_name: node
       
    33     # If prometheus-node-exporter is installed, grab stats about the local machine by default.
       
    34     static_configs:
       
    35       - targets:
       
    36           - 'localhost:9100'
       
    37 
       
    38   - job_name: rpi
       
    39     # rpi_exporter
       
    40     static_configs:
       
    41       - targets:
       
    42           - 'localhost:9243'