prometheus/tasks/main.yml

35 lines
902 B
YAML
Raw Normal View History

2021-04-29 18:53:56 +02:00
---
2022-11-11 21:08:07 +01:00
- name: 'include asserts'
2021-04-29 18:53:56 +02:00
include_tasks: 'asserts.yml'
2022-11-11 21:08:07 +01:00
- name: 'requirements'
2021-05-27 10:41:18 +02:00
include_tasks: 'requirements.yml'
2022-11-11 19:04:14 +01:00
## prometheus server install
2022-11-11 21:08:07 +01:00
- name: '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
2022-11-11 21:08:07 +01:00
- name: 'exporters install'
2022-11-11 19:04:14 +01:00
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 }}"