prometheus/client/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Fri, 01 May 2020 16:21:21 -0500
changeset 12 80a6e9af6aa9
parent 6 3b1f18f6a5a4
child 15 6d7db9bae6c2
permissions -rw-r--r--
Updated node and homebridge roles. Homebridge 1.0.0 released and breaks copy codec.
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
6
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
     7
#   # Nginx
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
     8
# - name: check if running nginx
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
     9
#   stat: path="/etc/nginx/"
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    10
#   register: stat_nginx_conf
5
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents: 2
diff changeset
    11
6
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    12
# - name: install prometheus-nginx-exporter
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    13
#   become: yes
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    14
#   apt: name="prometheus-nginx-exporter"
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    15
#   when: stat_nginx_conf.stat.exists
5
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents: 2
diff changeset
    16
6
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    17
#   # PostgreSQL
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    18
# - name: check if running postgresql
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    19
#   stat: path="/etc/postgresql/"
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    20
#   register: stat_postgresql_conf
5
4f014cdac0b1 Completed prometheus basic roles.
Luke Hoersten <luke@hoersten.org>
parents: 2
diff changeset
    21
6
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    22
# - name: install prometheus-postgresql-exporter
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    23
#   become: yes
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    24
#   apt: name="prometheus-postgres-exporter"
3b1f18f6a5a4 Updated prometheus roles. WIP psql, nginx exporters.
Luke Hoersten <luke@hoersten.org>
parents: 5
diff changeset
    25
#   when: stat_postgresql_conf.stat.exists