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.
17 # Alertmanager configuration
21 - targets: ['localhost:9093']
23 # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
25 - /etc/prometheus/rules/*.yml
27 # - "second_rules.yml"
29 # A scrape configuration containing exactly one endpoint to scrape:
30 # Here it's Prometheus itself.
32 # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
33 - job_name: 'prometheus'
35 # metrics_path defaults to '/metrics'
36 # scheme defaults to 'http'.
39 - targets: ['localhost:9090']
42 - job_name: 'alertmanager'
45 targets: ['localhost:9093']
50 - job_name: simple_node
53 - /etc/prometheus/file_sd/simple_node.yml
58 # Verifying remote identity
59 ca_file: /etc/prometheus/ssl/prom_node_cert.pem
60 server_name: prom_node
61 # Asserting our identity
62 cert_file: /etc/prometheus/ssl/prometheus_cert.pem
63 key_file: /etc/prometheus/ssl/prometheus_key.pem
66 - /etc/prometheus/file_sd/node.yml
68 - source_labels: [__address__]
69 regex: "localhost:9100"
71 target_label: instance
72 - source_labels: [__address__]
74 # this is the default:
76 target_label: instance
82 password_file: /etc/prometheus-pass
85 - /etc/prometheus/file_sd/tlsnode.yml