r/vmagent: Deploy vmagent
The *vmagent* role installs and configures the scraping and routing agent used in the Victoria Metrics ecosystem.
This commit is contained in:
13
roles/vmagent/handlers/main.yml
Normal file
13
roles/vmagent/handlers/main.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
- name: reload systemd
|
||||
systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: restart vmagent
|
||||
service:
|
||||
name: vmagent
|
||||
state: restarted
|
||||
|
||||
- name: reload vmagent
|
||||
uri:
|
||||
url: http://[::1]:8429/-/reload
|
||||
changed_when: true
|
||||
Reference in New Issue
Block a user