- 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
14 lines
245 B
YAML
14 lines
245 B
YAML
---
|
|
- 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
|