1
0
Fork 0

add node_exporter

This commit is contained in:
Massaki Archambault 2024-09-19 00:14:05 -04:00
parent 52e2574efa
commit 72cf4f794a
4 changed files with 16 additions and 1 deletions

View File

@ -61,4 +61,10 @@
- hosts: cups
roles:
- cups
- cups
# we want node metrics on the satisfactory server
- hosts: satisfactory
roles:
- docker
- prometheus.prometheus.node_exporter

2
requirements.yml Normal file
View File

@ -0,0 +1,2 @@
collections:
- name: prometheus.prometheus

View File

@ -35,6 +35,9 @@
include_tasks: user.yml
with_dict: '{{ users }}'
- name: Configure monitoring
include_tasks: monitoring.yml
- name: Configure hostname
hostname:
name: '{{ inventory_hostname }}'

View File

@ -0,0 +1,4 @@
- name: Import prometheus node_exporter role
import_role:
name: prometheus.prometheus.node_exporter
when: ansible_virtualization_role == 'host'