2021-01-29 04:29:25 +00:00
|
|
|
---
|
|
|
|
|
2021-01-29 05:17:45 +00:00
|
|
|
- name: Fail if Synapse metrics or Prometheus Node Exporter not enabled
|
2022-07-18 07:39:08 +00:00
|
|
|
ansible.builtin.fail:
|
2021-01-29 04:29:25 +00:00
|
|
|
msg: >
|
2021-01-31 17:23:12 +00: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 06:56:03 +00: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
|