about summary refs log tree commit diff
path: root/bundles/prometheus/files/prometheus.yml
blob: 38841e5179812a8a24a2f9f9540b76875eeeeb51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
global:
  scrape_interval: 60s
  scrape_timeout: 30s
  # evaluation_interval: 30s
  # body_size_limit: 15MB
  # sample_limit: 1500
  # target_limit: 30
  # label_limit: 30
  # label_name_length_limit: 200
  # label_value_length_limit: 200

# TODO: pending release
# storage:
#   tsdb:
#     retention:
#       time: 30d
#       size: 6GB

rule_files:
  - /etc/prometheus/rules/*.json
  - /etc/prometheus/rules/*.yaml
  - /etc/prometheus/rules/*.yml

scrape_configs:
  - job_name: prometheus
    static_configs:
      - targets: [localhost:9090]
        labels:
          instance: inazuma

  - job_name: service-discovery
    file_sd_configs:
      - files:
          - /etc/prometheus/services/*.json
          - /etc/prometheus/services/*.yaml
          - /etc/prometheus/services/*.yml

alerting:
  alertmanagers:
    - scheme: http
      static_configs:
        - targets: [localhost:9093]