prometheus/client/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 07 Oct 2024 23:31:51 -0500
changeset 239 c3e3169399a8
parent 15 6d7db9bae6c2
permissions -rw-r--r--
Updated java version and disabled geyser due to too old jde.

---

- name: install prometheus node exporter
  become: yes
  apt: name="prometheus-node-exporter"

- name: ensure prometheus node exporter is started
  become: yes
  systemd: name="prometheus-node-exporter.service" enabled="yes" state="started"

#   # Nginx
# - name: check if running nginx
#   stat: path="/etc/nginx/"
#   register: stat_nginx_conf

# - name: install prometheus-nginx-exporter
#   become: yes
#   apt: name="prometheus-nginx-exporter"
#   when: stat_nginx_conf.stat.exists

#   # PostgreSQL
# - name: check if running postgresql
#   stat: path="/etc/postgresql/"
#   register: stat_postgresql_conf

# - name: install prometheus-postgresql-exporter
#   become: yes
#   apt: name="prometheus-postgres-exporter"
#   when: stat_postgresql_conf.stat.exists