Add a tag for each exporter

This commit is contained in:
tom.chivert 2022-11-16 11:30:49 +01:00
parent 7f089cf22d
commit 901f850093
11 changed files with 19 additions and 11 deletions

View File

@ -1,3 +1,3 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_apache'] tags: ['prometheus_apache_exporter']

View File

@ -1,6 +1,6 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_blackbox'] tags: ['prometheus_blackbox_exporter']
- name: 'blackbox exporter | configuration' - name: 'blackbox exporter | configuration'
template: template:
@ -12,3 +12,4 @@
register: prometheus_blackbox_exporter_configuration register: prometheus_blackbox_exporter_configuration
notify: notify:
- 'prometheus | blackbox exporter | restart service' - 'prometheus | blackbox exporter | restart service'
tags: ['prometheus_blackbox_exporter']

View File

@ -1,3 +1,3 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_memcached'] tags: ['prometheus_memcached_exporter']

View File

@ -1,6 +1,6 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_mongodb'] tags: ['prometheus_mongodb_exporter']
- name: 'mongodb exporter < v0.2 | move to /usr/local/bin' - name: 'mongodb exporter < v0.2 | move to /usr/local/bin'
copy: copy:
@ -14,6 +14,7 @@
- 'prometheus | mongodb exporter | restart service' - 'prometheus | mongodb exporter | restart service'
when: when:
- prometheus_mongodb_exporter_latest_version.stdout < '0.2' - prometheus_mongodb_exporter_latest_version.stdout < '0.2'
tags: ['prometheus_mongodb_exporter']
- name: 'mongodb exporter | configuration' - name: 'mongodb exporter | configuration'
template: template:
@ -24,3 +25,4 @@
mode: 0600 mode: 0600
notify: notify:
- 'prometheus | mongodb exporter | restart service' - 'prometheus | mongodb exporter | restart service'
tags: ['prometheus_mongodb_exporter']

View File

@ -1,6 +1,6 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_mysqld'] tags: ['prometheus_mysqld_exporter']
- name: 'mysqld exporter | configuration' - name: 'mysqld exporter | configuration'
template: template:
@ -14,3 +14,4 @@
register: prometheus_mysqld_exporter_configuration register: prometheus_mysqld_exporter_configuration
notify: notify:
- 'prometheus | mysqld exporter | restart service' - 'prometheus | mysqld exporter | restart service'
tags: ['prometheus_mysqld_exporter']

View File

@ -1,3 +1,3 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_node'] tags: ['prometheus_node_exporter']

View File

@ -1,6 +1,6 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_opcache'] tags: ['prometheus_opcache_exporter']
- name: 'opcache exporter | configuration' - name: 'opcache exporter | configuration'
template: template:
@ -12,3 +12,4 @@
register: prometheus_opcache_exporter_configuration register: prometheus_opcache_exporter_configuration
notify: notify:
- 'prometheus | opcache exporter | restart service' - 'prometheus | opcache exporter | restart service'
tags: ['prometheus_opcache_exporter']

View File

@ -1,6 +1,6 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_phpfpm'] tags: ['prometheus_phpfpm_exporter']
- name: 'phpfpm exporter | install startup script' - name: 'phpfpm exporter | install startup script'
template: template:
@ -11,3 +11,4 @@
mode: 0600 mode: 0600
notify: notify:
- 'prometheus | phpfpm exporter | restart service' - 'prometheus | phpfpm exporter | restart service'
tags: ['prometheus_phpfpm_exporter']

View File

@ -1,6 +1,6 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_postgres'] tags: ['prometheus_postgres_exporter']
- name: 'postgres exporter | configuration' - name: 'postgres exporter | configuration'
template: template:
@ -12,3 +12,4 @@
register: prometheus_postgres_exporter_configuration register: prometheus_postgres_exporter_configuration
notify: notify:
- 'prometheus | postgres exporter | restart service' - 'prometheus | postgres exporter | restart service'
tags: ['prometheus_postgres_exporter']

View File

@ -1,6 +1,6 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_redis'] tags: ['prometheus_redis_exporter']
- name: 'redis exporter | configuration' - name: 'redis exporter | configuration'
template: template:
@ -12,3 +12,4 @@
register: prometheus_redis_exporter_configuration register: prometheus_redis_exporter_configuration
notify: notify:
- 'prometheus | redis exporter | restart service' - 'prometheus | redis exporter | restart service'
tags: ['prometheus_redis_exporter']

View File

@ -1,3 +1,3 @@
--- ---
- include_tasks: _common.yml - include_tasks: _common.yml
tags: ['prometheus_varnish'] tags: ['prometheus_varnish_exporter']