Configuration
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
external_labels:
monitor: prometheus02
alerting:
alertmanagers:
- follow_redirects: true
enable_http2: true
scheme: http
timeout: 10s
api_version: v2
static_configs:
- targets:
- localhost:9093
rule_files:
- /etc/prometheus/alerts/*.yml
scrape_configs:
- job_name: prometheus
honor_timestamps: true
params:
module:
- prometheus
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /proxy
scheme: https
tls_config:
ca_file: /etc/prometheus/ssl/ca_cert.pem
cert_file: /etc/prometheus/ssl/client.cert.pem
key_file: /etc/prometheus/ssl/client.key.pem
insecure_skip_verify: false
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- prometheus01.vm.freifunk-stuttgart.de:9998
labels:
instance: prometheus01
- targets:
- prometheus02.vm.freifunk-stuttgart.de:9998
labels:
instance: prometheus02
- job_name: alertmanager
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- localhost:9093
- job_name: collectd
honor_timestamps: true
params:
module:
- respondd
scrape_interval: 1m
scrape_timeout: 10s
metrics_path: /proxy
scheme: https
tls_config:
ca_file: /etc/prometheus/ssl/ca_cert.pem
cert_file: /etc/prometheus/ssl/client.cert.pem
key_file: /etc/prometheus/ssl/client.key.pem
insecure_skip_verify: false
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- yanic01.vm.freifunk-stuttgart.de:9998
labels:
instance: 10.0.3.236:9104
- job_name: bird
honor_timestamps: true
params:
module:
- bird
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /proxy
scheme: https
tls_config:
ca_file: /etc/prometheus/ssl/ca_cert.pem
cert_file: /etc/prometheus/ssl/client.cert.pem
key_file: /etc/prometheus/ssl/client.key.pem
insecure_skip_verify: false
follow_redirects: true
enable_http2: true
file_sd_configs:
- files:
- /etc/prometheus/bird_exporter_targets.yml
refresh_interval: 5m
- job_name: monitor01_blackbox
honor_timestamps: true
params:
module:
- blackbox
- icmp
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /proxy
scheme: https
tls_config:
ca_file: /etc/prometheus/ssl/ca_cert.pem
cert_file: /etc/prometheus/ssl/client.cert.pem
key_file: /etc/prometheus/ssl/client.key.pem
insecure_skip_verify: false
follow_redirects: true
enable_http2: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: __param_target
replacement: $1
action: replace
- source_labels: [__param_target]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- separator: ;
regex: (.*)
target_label: __address__
replacement: monitor01.vm.freifunk-stuttgart.de:9998
action: replace
static_configs:
- targets:
- 10.190.0.93
- 10.190.176.93
- job_name: node
honor_timestamps: true
params:
module:
- node
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /proxy
scheme: https
tls_config:
ca_file: /etc/prometheus/ssl/ca_cert.pem
cert_file: /etc/prometheus/ssl/client.cert.pem
key_file: /etc/prometheus/ssl/client.key.pem
insecure_skip_verify: false
follow_redirects: true
enable_http2: true
file_sd_configs:
- files:
- /etc/prometheus/node_exporter_targets.yml
refresh_interval: 5m
- job_name: kea
honor_timestamps: true
params:
module:
- kea
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /proxy
scheme: https
tls_config:
ca_file: /etc/prometheus/ssl/ca_cert.pem
cert_file: /etc/prometheus/ssl/client.cert.pem
key_file: /etc/prometheus/ssl/client.key.pem
insecure_skip_verify: false
follow_redirects: true
enable_http2: true
file_sd_configs:
- files:
- /etc/prometheus/kea_exporter_targets.yml
refresh_interval: 5m
- job_name: json_gwpref
honor_timestamps: true
params:
module:
- gwpref
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /probe
scheme: http
follow_redirects: true
enable_http2: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: __param_target
replacement: $1
action: replace
- separator: ;
regex: (.*)
target_label: __address__
replacement: localhost:7979
action: replace
static_configs:
- targets:
- http://gw01n03.vm.freifunk-stuttgart.de/data/gwstatus.json
labels:
instance: gw01n03
- targets:
- http://gw04n06.vm.freifunk-stuttgart.de/data/gwstatus.json
labels:
instance: gw04n06
- targets:
- http://gw05n02.vm.freifunk-stuttgart.de/data/gwstatus.json
labels:
instance: gw05n02
- targets:
- http://gw09n03.vm.freifunk-stuttgart.de/data/gwstatus.json
labels:
instance: gw09n03
- targets:
- http://gw09n04.vm.freifunk-stuttgart.de/data/gwstatus.json
labels:
instance: gw09n04