Add a tag for each exporter
This commit is contained in:
parent
7f089cf22d
commit
901f850093
@ -1,3 +1,3 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_apache']
|
||||
tags: ['prometheus_apache_exporter']
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_blackbox']
|
||||
tags: ['prometheus_blackbox_exporter']
|
||||
|
||||
- name: 'blackbox exporter | configuration'
|
||||
template:
|
||||
@ -12,3 +12,4 @@
|
||||
register: prometheus_blackbox_exporter_configuration
|
||||
notify:
|
||||
- 'prometheus | blackbox exporter | restart service'
|
||||
tags: ['prometheus_blackbox_exporter']
|
||||
|
@ -1,3 +1,3 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_memcached']
|
||||
tags: ['prometheus_memcached_exporter']
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_mongodb']
|
||||
tags: ['prometheus_mongodb_exporter']
|
||||
|
||||
- name: 'mongodb exporter < v0.2 | move to /usr/local/bin'
|
||||
copy:
|
||||
@ -14,6 +14,7 @@
|
||||
- 'prometheus | mongodb exporter | restart service'
|
||||
when:
|
||||
- prometheus_mongodb_exporter_latest_version.stdout < '0.2'
|
||||
tags: ['prometheus_mongodb_exporter']
|
||||
|
||||
- name: 'mongodb exporter | configuration'
|
||||
template:
|
||||
@ -24,3 +25,4 @@
|
||||
mode: 0600
|
||||
notify:
|
||||
- 'prometheus | mongodb exporter | restart service'
|
||||
tags: ['prometheus_mongodb_exporter']
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_mysqld']
|
||||
tags: ['prometheus_mysqld_exporter']
|
||||
|
||||
- name: 'mysqld exporter | configuration'
|
||||
template:
|
||||
@ -14,3 +14,4 @@
|
||||
register: prometheus_mysqld_exporter_configuration
|
||||
notify:
|
||||
- 'prometheus | mysqld exporter | restart service'
|
||||
tags: ['prometheus_mysqld_exporter']
|
||||
|
@ -1,3 +1,3 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_node']
|
||||
tags: ['prometheus_node_exporter']
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_opcache']
|
||||
tags: ['prometheus_opcache_exporter']
|
||||
|
||||
- name: 'opcache exporter | configuration'
|
||||
template:
|
||||
@ -12,3 +12,4 @@
|
||||
register: prometheus_opcache_exporter_configuration
|
||||
notify:
|
||||
- 'prometheus | opcache exporter | restart service'
|
||||
tags: ['prometheus_opcache_exporter']
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_phpfpm']
|
||||
tags: ['prometheus_phpfpm_exporter']
|
||||
|
||||
- name: 'phpfpm exporter | install startup script'
|
||||
template:
|
||||
@ -11,3 +11,4 @@
|
||||
mode: 0600
|
||||
notify:
|
||||
- 'prometheus | phpfpm exporter | restart service'
|
||||
tags: ['prometheus_phpfpm_exporter']
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_postgres']
|
||||
tags: ['prometheus_postgres_exporter']
|
||||
|
||||
- name: 'postgres exporter | configuration'
|
||||
template:
|
||||
@ -12,3 +12,4 @@
|
||||
register: prometheus_postgres_exporter_configuration
|
||||
notify:
|
||||
- 'prometheus | postgres exporter | restart service'
|
||||
tags: ['prometheus_postgres_exporter']
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_redis']
|
||||
tags: ['prometheus_redis_exporter']
|
||||
|
||||
- name: 'redis exporter | configuration'
|
||||
template:
|
||||
@ -12,3 +12,4 @@
|
||||
register: prometheus_redis_exporter_configuration
|
||||
notify:
|
||||
- 'prometheus | redis exporter | restart service'
|
||||
tags: ['prometheus_redis_exporter']
|
||||
|
@ -1,3 +1,3 @@
|
||||
---
|
||||
- include_tasks: _common.yml
|
||||
tags: ['prometheus_varnish']
|
||||
tags: ['prometheus_varnish_exporter']
|
||||
|
Loading…
x
Reference in New Issue
Block a user