infra/ansible/roles/prometheus/defaults/main.yml
Graham McIntire 39bedb08d1
renumber infrastructure from 10.0.15.0/24 to 10.0.16.0/22 (hosts in 10.0.19.x)
Proxmox: node1-3 → 10.0.19.101-103
Talos cp1-3 → 10.0.19.1-3, workers → 10.0.19.4-6
K8s endpoint → VIP https://10.0.19.10:6443
Ansible: prom → 10.0.19.31, db → 10.0.19.30
Talos: added VIP block to controlplane.yaml base config
Promtail: Loki URL → 10.0.19.31
Docs: all references updated, talos4 removed
2026-07-18 08:28:47 -05:00

34 lines
1.1 KiB
YAML

---
prometheus_version: "3.6.0"
prometheus_arch: amd64
prometheus_user: prometheus
prometheus_group: prometheus
prometheus_install_dir: /usr/local/bin
prometheus_config_dir: /etc/prometheus
prometheus_data_dir: /var/lib/prometheus
prometheus_listen_address: "0.0.0.0:9090"
prometheus_retention_time: "30d"
prometheus_retention_size: "0" # 0 = unlimited; let retention_time bound it
prometheus_external_url: ""
prometheus_scrape_interval: "30s"
prometheus_evaluation_interval: "30s"
# Path to the Kubernetes ServiceAccount bearer token + CA on the prom host.
# Bootstrap copies these from the cluster (see roles/prometheus/README.md).
prometheus_k8s_enabled: true
prometheus_k8s_api_server: "https://10.0.19.10:6443"
prometheus_k8s_token_file: "{{ prometheus_config_dir }}/k8s/token"
prometheus_k8s_ca_file: "{{ prometheus_config_dir }}/k8s/ca.crt"
# Alertmanager target (same host by default)
prometheus_alertmanager_targets:
- "127.0.0.1:9093"
# Extra static scrape targets, e.g. other node_exporters on home_servers
# - job_name: node_exporter
# targets: ["10.0.19.31:9100", "10.0.19.22:9100"]
prometheus_extra_scrape_configs: []