1 # Sample config for Prometheus.
6 ## temporary for quickly testing during development. default is 60s
9 # evaluation_interval: 5s
11 # /etc/default/prometheus
12 # --query.lookback-delta=15s
13 # the default lookback is 5 minutes, there is a way to change
14 # it per query in the api with a QueryOpt option, but it isnt exposed in the web ui.
16 # Attach these labels to any time series or alerts when communicating with
17 # external systems (federation, remote storage, Alertmanager).
21 # Alertmanager configuration
25 - targets: ['localhost:9093']
27 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
29 - /etc/prometheus/rules/*.yml
31 # - "second_rules.yml"
33 # A scrape configuration containing exactly one endpoint to scrape:
34 # Here it's Prometheus itself.
36 # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
37 - job_name: 'prometheus'
39 # metrics_path defaults to '/metrics'
40 # scheme defaults to 'http'.
43 - targets: ['localhost:9090']
46 - job_name: 'alertmanager'
49 targets: ['localhost:9093']
54 - job_name: simple_node
57 - /etc/prometheus/file_sd/simple_node.yml
62 # Verifying remote identity
63 ca_file: /etc/prometheus/ssl/prom_node_cert.pem
64 server_name: prom_node
65 # Asserting our identity
66 cert_file: /etc/prometheus/ssl/prometheus_cert.pem
67 key_file: /etc/prometheus/ssl/prometheus_key.pem
70 - /etc/prometheus/file_sd/node.yml
72 - source_labels: [__address__]
73 regex: "localhost:9100"
75 target_label: instance
76 - source_labels: [__address__]
78 # this is the default:
80 target_label: instance
86 password_file: /etc/prometheus-pass
89 - /etc/prometheus/file_sd/tlsnode.yml