prometheus/tasks/main.yml

35 lines
953 B
YAML
Raw Normal View History

2021-04-29 18:53:56 +02:00
---
- name: 'prometheus | include asserts'
include_tasks: 'asserts.yml'
2022-11-11 18:37:17 +01:00
- name: 'prometheus | requirements'
2021-05-27 10:41:18 +02:00
include_tasks: 'requirements.yml'
2022-11-11 19:04:14 +01:00
## prometheus server install
2021-05-25 18:25:22 +02:00
- name: 'prometheus | server install'
2022-11-11 19:04:14 +01:00
include_tasks: 'server/prometheus.yml'
2021-05-25 18:25:22 +02:00
when:
- prometheus_server_enable == "true"
2022-11-11 19:04:14 +01:00
## include exporter install
- name: 'prometheus | exporter install'
vars:
service: "{{ item }}"
include_tasks: "exporter/{{ item }}.yml"
tags:
- prometheus_node_exporter
- prometheus_mysqld_exporter
- prometheus_postgresql_exporter
- prometheus_mongodb_exporter
- prometheus_apache_exporter
- prometheus_haproxy_exporter
- prometheus_varnish_exporter
- prometheus_redis_exporter
- prometheus_memcached_exporter
- prometheus_phpfpm_exporter
- prometheus_opcache_exporter
- prometheus_blackbox_exporter
- prometheus_kong_exporter
with_items:
- "{{ prometheus_exporter_packages }}"