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
This commit is contained in:
32
roles/prometheus/defaults/main.yml
Normal file
32
roles/prometheus/defaults/main.yml
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
# Версия 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: []
|
||||
Reference in New Issue
Block a user