prometheus/client/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Mon, 05 Sep 2022 11:13:38 -0500
changeset 184 11466a894f3c
parent 15 6d7db9bae6c2
permissions -rw-r--r--
Cleaned up versioning config for minecraft role.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
fd351734f007 Prometheus and WriteFreely roles are work in progress.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
fd351734f007 Prometheus and WriteFreely roles are work in progress.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
fd351734f007 Prometheus and WriteFreely roles are work in progress.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
- name: install prometheus node exporter
5
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents: 2
diff changeset
     4
  become: yes
6
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
     5
  apt: name="prometheus-node-exporter"
5
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents: 2
diff changeset
     6
15
6d7db9bae6c2 Fixed some bugs with prometheus node exporter not starting.
Luke Hoersten <luke@hoersten.org>
parents: 6
diff changeset
     7
- name: ensure prometheus node exporter is started
6d7db9bae6c2 Fixed some bugs with prometheus node exporter not starting.
Luke Hoersten <luke@hoersten.org>
parents: 6
diff changeset
     8
  become: yes
6d7db9bae6c2 Fixed some bugs with prometheus node exporter not starting.
Luke Hoersten <luke@hoersten.org>
parents: 6
diff changeset
     9
  systemd: name="prometheus-node-exporter.service" enabled="yes" state="started"
6d7db9bae6c2 Fixed some bugs with prometheus node exporter not starting.
Luke Hoersten <luke@hoersten.org>
parents: 6
diff changeset
    10
6
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    11
#   # Nginx
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    12
# - name: check if running nginx
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    13
#   stat: path="/etc/nginx/"
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    14
#   register: stat_nginx_conf
5
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents: 2
diff changeset
    15
6
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    16
# - name: install prometheus-nginx-exporter
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    17
#   become: yes
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    18
#   apt: name="prometheus-nginx-exporter"
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    19
#   when: stat_nginx_conf.stat.exists
5
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents: 2
diff changeset
    20
6
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    21
#   # PostgreSQL
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    22
# - name: check if running postgresql
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    23
#   stat: path="/etc/postgresql/"
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    24
#   register: stat_postgresql_conf
5
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents: 2
diff changeset
    25
6
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    26
# - name: install prometheus-postgresql-exporter
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    27
#   become: yes
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    28
#   apt: name="prometheus-postgres-exporter"
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    29
#   when: stat_postgresql_conf.stat.exists