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