Files
ansible-config/roles/prometheus/defaults/main.yml
Freazzzing 8212b75ac9 feat: Add Prometheus installation role and playbook
- Created Prometheus role with automated installation
- Version: 2.48.1
- Configured remote_write to VictoriaMetrics (192.168.0.104:8428)
- Added scrape configs for monitoring infrastructure
- Created systemd service configuration
- Successfully tested on 192.168.0.105
2026-02-03 02:26:22 +00:00

33 lines
841 B
YAML

---
# Версия Prometheus
prometheus_version: "2.48.1"
prometheus_user: prometheus
prometheus_group: prometheus
# Директории
prometheus_config_dir: /etc/prometheus
prometheus_data_dir: /var/lib/prometheus
prometheus_binary_dir: /usr/local/bin
# Настройки сервиса
prometheus_port: 9090
prometheus_retention: "7d"
prometheus_log_level: info
# VictoriaMetrics для remote_write
victoriametrics_host: "192.168.0.104"
victoriametrics_port: 8428
victoriametrics_url: "http://{{ victoriametrics_host }}:{{ victoriametrics_port }}/api/v1/write"
# Vault для метрик
vault_host: "192.168.0.103"
vault_port: 8200
vault_token: "root"
# Git/Forgejo
git_host: "192.168.0.100"
git_port: 3000
# Список хостов для node_exporter (будем добавлять позже)
node_exporter_targets: []