add node_exporter
This commit is contained in:
parent
52e2574efa
commit
72cf4f794a
|
@ -61,4 +61,10 @@
|
||||||
|
|
||||||
- hosts: cups
|
- hosts: cups
|
||||||
roles:
|
roles:
|
||||||
- cups
|
- cups
|
||||||
|
|
||||||
|
# we want node metrics on the satisfactory server
|
||||||
|
- hosts: satisfactory
|
||||||
|
roles:
|
||||||
|
- docker
|
||||||
|
- prometheus.prometheus.node_exporter
|
|
@ -0,0 +1,2 @@
|
||||||
|
collections:
|
||||||
|
- name: prometheus.prometheus
|
|
@ -35,6 +35,9 @@
|
||||||
include_tasks: user.yml
|
include_tasks: user.yml
|
||||||
with_dict: '{{ users }}'
|
with_dict: '{{ users }}'
|
||||||
|
|
||||||
|
- name: Configure monitoring
|
||||||
|
include_tasks: monitoring.yml
|
||||||
|
|
||||||
- name: Configure hostname
|
- name: Configure hostname
|
||||||
hostname:
|
hostname:
|
||||||
name: '{{ inventory_hostname }}'
|
name: '{{ inventory_hostname }}'
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
- name: Import prometheus node_exporter role
|
||||||
|
import_role:
|
||||||
|
name: prometheus.prometheus.node_exporter
|
||||||
|
when: ansible_virtualization_role == 'host'
|
Loading…
Reference in New Issue