9932335b0dca4ef0d2728047879a5400fd8eab93
[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
33 - job_name: node
34 basic_auth:
35 username: prom
36 password_file: /etc/prometheus-pass
37 file_sd_configs:
38 - files:
39 - /etc/prometheus/file_sd/node.yml
40 - job_name: tlsnode
41 scheme: https
42 basic_auth:
43 username: prom
44 password_file: /etc/prometheus-pass
45 file_sd_configs:
46 - files:
47 - /etc/prometheus/file_sd/tlsnode.yml