prometheus.yml 1.17 KB
Newer Older
Thierry Bressure's avatar
Thierry Bressure committed
1 2 3 4
global:
  scrape_interval: 15s
  scrape_timeout: 10s
  evaluation_interval: 15s
5 6 7 8

rule_files:
  - '/etc/prometheus/rules/*'

Thierry Bressure's avatar
Thierry Bressure committed
9 10 11
alerting:
  alertmanagers:
  - static_configs:
12
    - targets: ['alertmanager:9093']
Thierry Bressure's avatar
Thierry Bressure committed
13 14 15 16 17 18 19 20 21 22 23 24 25
    scheme: http
    timeout: 10s
    api_version: v1
scrape_configs:
- job_name: prometheus
  honor_timestamps: true
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /metrics
  scheme: http
  static_configs:
  - targets:
    - localhost:9090
Thierry Bressure's avatar
Thierry Bressure committed
26

Thierry Bressure's avatar
Thierry Bressure committed
27 28 29 30 31

- job_name: gitlab
  honor_timestamps: true
  params:
    token:
32
    - letokensecret
Thierry Bressure's avatar
Thierry Bressure committed
33 34 35 36
  scrape_interval: 15s
  scrape_timeout: 10s
  metrics_path: /-/metrics
  scheme: https
Thierry Bressure's avatar
Thierry Bressure committed
37
  static_configs:
Thierry Bressure's avatar
Thierry Bressure committed
38 39 40
  - targets:
    - gitlab.bressure.net

Thierry Bressure's avatar
Thierry Bressure committed
41

Thierry Bressure's avatar
Thierry Bressure committed
42
- job_name: 'system'
Thierry Bressure's avatar
Thierry Bressure committed
43
  static_configs:
Thierry Bressure's avatar
Thierry Bressure committed
44 45 46 47 48
  - targets:
     - '192.168.0.12:9100'
     - '192.168.122.69:9100'
     - '192.168.122.30:9100'
  
Thierry Bressure's avatar
Thierry Bressure committed
49

Thierry Bressure's avatar
Thierry Bressure committed
50
- job_name: 'docker'
Thierry Bressure's avatar
Thierry Bressure committed
51 52 53
         # metrics_path defaults to '/metrics'
         # scheme defaults to 'http'.
  static_configs:
Thierry Bressure's avatar
Thierry Bressure committed
54
  - targets:
55
     - '192.168.0.12:9323'
Thierry Bressure's avatar
Thierry Bressure committed
56 57
     - '192.168.122.69:9323'
     - '192.168.122.30:9323'
Thierry Bressure's avatar
Thierry Bressure committed
58 59


60
- job_name: cadvisor
Thierry Bressure's avatar
Thierry Bressure committed
61
  static_configs:
Thierry Bressure's avatar
Thierry Bressure committed
62 63 64
  - targets:
     - '192.168.0.12:9200'
     - '192.168.122.69:9200'
65
     - '192.168.122.30:9200'