feat(podman_prometheus): initial role for running prometheus in podman
All checks were successful
Ansible Lint Check / lint (push) Successful in 57s
All checks were successful
Ansible Lint Check / lint (push) Successful in 57s
This commit is contained in:
parent
5c98a76889
commit
91390d7359
8 changed files with 272 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
=========================================================
|
||||
A Prometheus instance is hosted on this server.
|
||||
Podman user: {{ podman_prometheus_podman_rootless_user }}
|
||||
=========================================================
|
||||
# Become the podman user
|
||||
sudo -iu {{ podman_prometheus_podman_rootless_user }}
|
||||
# Check the Prometheus status
|
||||
systemctl --user status prometheus.service
|
||||
# Restart Prometheus
|
||||
systemctl --user restart prometheus.service
|
||||
# Follow the logs for Prometheus
|
||||
journalctl --user -fu prometheus.service
|
||||
=========================================================
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue