Add prometheus exporter
This commit is contained in:
parent
eb4a2974ad
commit
f1c8801774
4 changed files with 14 additions and 0 deletions
|
@ -9,3 +9,4 @@ dependencies:
|
|||
- role: sumatrapdf
|
||||
- role: vlc
|
||||
- role: wget
|
||||
- role: prometheus-exporter
|
||||
|
|
4
roles/prometheus-exporter/tasks/main.yml
Normal file
4
roles/prometheus-exporter/tasks/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
- import_tasks: main_win.yml
|
||||
when: ansible_os_family == 'Windows'
|
||||
- import_tasks: main_lin.yml
|
||||
when: ansible_os_family == 'Debian'
|
6
roles/prometheus-exporter/tasks/main_lin.yml
Normal file
6
roles/prometheus-exporter/tasks/main_lin.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
- name: Install prometheus-exporter
|
||||
apt:
|
||||
name:
|
||||
- prometheus-node-exporter
|
||||
- prometheus-pushgateway
|
||||
state: latest
|
3
roles/prometheus-exporter/tasks/main_win.yml
Normal file
3
roles/prometheus-exporter/tasks/main_win.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
- name: Install prometheus exporter
|
||||
win_chocolatey:
|
||||
name: prometheus-windows-exporter.install
|
Loading…
Add table
Add a link
Reference in a new issue