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:
Freazzzing
2026-02-03 02:26:22 +00:00
parent 30d35bc401
commit 8212b75ac9
6 changed files with 321 additions and 0 deletions

View File

@ -0,0 +1,13 @@
---
- name: restart prometheus
systemd:
name: prometheus
state: restarted
daemon_reload: yes
become: yes
- name: reload prometheus
uri:
url: "http://localhost:{{ prometheus_port }}/-/reload"
method: POST
become: yes