2021-01-29 05:29:25 +01:00
|
|
|
---
|
|
|
|
|
2021-01-29 06:17:45 +01: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 05:29:25 +01:00
|
|
|
msg: >
|
2021-01-31 18:23:12 +01: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 07:56:03 +01: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
|