dnsservice/ansible/files/prometheus.yml
2024-08-03 14:05:31 -05:00

40 lines
987 B
YAML

remote_write:
- url: https://vm.put.gay/api/v1/write
write_relabel_configs:
- target_label: "host"
replacement: "{{hostvars[inventory_hostname].public_dns}}"
basic_auth:
username: ingest
password: '{{hostvars[inventory_hostname].metrics_password}}'
global:
scrape_interval: 5s
evaluation_interval: 5s
scrape_configs:
- job_name: "prometheus"
static_configs:
- targets: ["localhost:9090"]
labels:
target: 'prometheus'
- job_name: "node_exporter"
static_configs:
- targets: ["localhost:9100"]
labels:
target: 'node_exporter'
- job_name: "sdns"
static_configs:
- targets: ["localhost:8053"]
labels:
target: 'sdns'
- job_name: "caddy"
static_configs:
- targets: ["localhost:2019"]
labels:
target: 'caddy'
- job_name: "dnsdist"
static_configs:
- targets: ["localhost:6060"]
labels:
target: 'dnsdist'