adopt kitty
[distro-setup] / filesystem / etc / prometheus / prometheus.yml
1 # Sample config for Prometheus.
2
3 global:
4 # Attach these labels to any time series or alerts when communicating with
5 # external systems (federation, remote storage, Alertmanager).
6 external_labels:
7 monitor: kd.b8.nz
8
9 # Alertmanager configuration
10 alerting:
11 alertmanagers:
12 - static_configs:
13 - targets: ['localhost:9093']
14
15 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
16 rule_files:
17 - /etc/prometheus/rules/*.yml
18 # - "first_rules.yml"
19 # - "second_rules.yml"
20
21 # A scrape configuration containing exactly one endpoint to scrape:
22 # Here it's Prometheus itself.
23 scrape_configs:
24 # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
25 - job_name: 'prometheus'
26
27 # metrics_path defaults to '/metrics'
28 # scheme defaults to 'http'.
29
30 static_configs:
31 - targets: ['localhost:9090']
32 - job_name: 'alertmanager'
33 static_configs:
34 - targets: ['localhost:9093']
35
36 - job_name: node
37 basic_auth:
38 username: prom
39 password_file: /etc/prometheus-pass
40 file_sd_configs:
41 - files:
42 - /etc/prometheus/file_sd/node.yml
43 - job_name: tlsnode
44 scheme: https
45 basic_auth:
46 username: prom
47 password_file: /etc/prometheus-pass
48 file_sd_configs:
49 - files:
50 - /etc/prometheus/file_sd/tlsnode.yml