Configuration
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
scrape_configs:
- job_name: node
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- source_labels: [server_name]
separator: ;
regex: (.*)
target_label: host
replacement: $1
action: replace
file_sd_configs:
- files:
- /etc/prometheus/hetzner_targets.json
refresh_interval: 5m
static_configs:
- targets:
- 10.79.1.3:9122
labels:
datacenter: hel1-dc5
location: hel1
server_name: db-main-04.atikayda.link
- targets:
- 10.79.1.4:9122
labels:
datacenter: hel1-dc2
location: hel1
server_name: db-main-05.atikayda.link
- targets:
- 10.79.1.5:9122
labels:
datacenter: hel1-dc3
location: hel1
server_name: db-main-06.atikayda.link
- job_name: edge_nodes
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: https
follow_redirects: true
enable_http2: true
relabel_configs:
- source_labels: [__address__]
separator: ;
regex: (.*)
target_label: instance
replacement: $1
action: replace
- source_labels: [server_name]
separator: ;
regex: (.*)
target_label: host
replacement: $1
action: replace
static_configs:
- targets:
- edge-syd.atikayda.com:443
labels:
datacenter: vultr-syd
location: syd
server_name: edge-syd.atikayda.com
- targets:
- edge-lax.atikayda.com:443
labels:
datacenter: vultr-lax
location: lax
server_name: edge-lax.atikayda.com
- targets:
- edge-ewr.atikayda.com:443
labels:
datacenter: vultr-ewr
location: ewr
server_name: edge-ewr.atikayda.com
- targets:
- edge-ams.atikayda.com:443
labels:
datacenter: vultr-ams
location: ams
server_name: edge-ams.atikayda.com
- job_name: prometheus
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- localhost:9090
- job_name: postgres
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- localhost:9187
labels:
instance: db-main-04
- targets:
- localhost:9188
labels:
instance: db-main-05
- targets:
- localhost:9189
labels:
instance: db-main-06
- job_name: fedikey
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- localhost:9125
- job_name: redis
honor_timestamps: true
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
follow_redirects: true
enable_http2: true
static_configs:
- targets:
- localhost:9121
labels:
instance: kv-02