prometheus/tasks/main.yml

44 lines
1.1 KiB
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'
2023-02-10 14:10:21 +01:00
include_tasks: "server/{{ item }}"
loop:
- grafana-prometheus.yml
- grafana-provisioning.yml
2021-05-25 18:25:22 +02:00
when:
- prometheus_server_enable == "true"
2023-02-10 11:13:37 +01:00
tags:
- prometheus
- prometheus_server
- grafana
- grafana_server
- grafana_prometheus
2021-05-25 18:25:22 +02:00
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:
2022-11-11 23:51:52 +01:00
exporter: "{{ item }}"
2022-11-11 19:04:14 +01:00
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 }}"