2021-01-29 06:29:25 +02:00
|
|
|
---
|
|
|
|
|
2021-01-29 07:17:45 +02:00
|
|
|
- name: Fail if Synapse metrics or Prometheus Node Exporter not enabled
|
2022-07-18 09:39:08 +02:00
|
|
|
ansible.builtin.fail:
|
2021-01-29 06:29:25 +02:00
|
|
|
msg: >
|
2021-01-31 19:23:12 +02:00
|
|
|
You need to enable `matrix_prometheus_scraper_synapse_enabled` and/or `matrix_prometheus_scraper_node_enabled` for Prometheus grab metrics.
|
|
|
|
when: "not matrix_prometheus_scraper_synapse_enabled and not matrix_prometheus_scraper_node_enabled"
|
2023-02-15 08:56:03 +02:00
|
|
|
|
|
|
|
- name: Fail if required Prometheus settings not defined
|
|
|
|
ansible.builtin.fail:
|
|
|
|
msg: >
|
|
|
|
You need to define a required configuration setting (`{{ item }}`).
|
|
|
|
when: "vars[item] == ''"
|
|
|
|
with_items:
|
|
|
|
- matrix_prometheus_container_network
|