prometheus/server/templates/prometheus.yml.j2
author Luke Hoersten <luke@hoersten.org>
Mon, 16 Nov 2020 16:42:59 -0600
changeset 143 7d4a477be685
parent 5 4f014cdac0b1
permissions -rw-r--r--
Updated pleroma to 2.2.0 and added new dep.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
global:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
  scrape_interval:     15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
  evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
  # scrape_timeout is set to the global default (10s).
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
  # Attach these labels to any time series or alerts when communicating with
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
  # external systems (federation, remote storage, Alertmanager).
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
  external_labels:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
      monitor: 'example'
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
# Alertmanager configuration
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
# alerting:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
#   alertmanagers:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
#   - static_configs:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
#     - targets: ['localhost:9093']
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
# rule_files:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
  # - "first_rules.yml"
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
  # - "second_rules.yml"
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
# A scrape configuration containing exactly one endpoint to scrape:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
# Here it's Prometheus itself.
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
scrape_configs:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
  - job_name: 'prometheus'
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    27
    # server stats
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    28
    static_configs:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    29
      - targets:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    30
          - 'localhost:9090'
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    31
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    32
  - job_name: node
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    33
    # If prometheus-node-exporter is installed, grab stats about the local machine by default.
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    34
    static_configs:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    35
      - targets:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    36
          - 'localhost:9100'
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    37
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    38
  - job_name: rpi
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    39
    # rpi_exporter
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    40
    static_configs:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    41
      - targets:
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    42
          - 'localhost:9243'