mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-10 04:37:36 +01:00
Adjust indentation for matrix-alertmanager-receiver
This commit is contained in:
parent
032b76bd62
commit
2617d00e75
@ -72,20 +72,20 @@ Then, you can proceed to [Usage](#usage).
|
|||||||
Configure your Prometheus Alertmanager with configuration like this:
|
Configure your Prometheus Alertmanager with configuration like this:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
receivers:
|
receivers:
|
||||||
- name: matrix
|
- name: matrix
|
||||||
webhook_configs:
|
webhook_configs:
|
||||||
- send_resolved: true
|
- send_resolved: true
|
||||||
url: URL_HERE
|
url: URL_HERE
|
||||||
route:
|
route:
|
||||||
group_by:
|
group_by:
|
||||||
- namespace
|
- namespace
|
||||||
group_interval: 5m
|
group_interval: 5m
|
||||||
group_wait: 30s
|
group_wait: 30s
|
||||||
receiver: "matrix"
|
receiver: "matrix"
|
||||||
repeat_interval: 12h
|
repeat_interval: 12h
|
||||||
routes:
|
routes:
|
||||||
- receiver: matrix
|
- receiver: matrix
|
||||||
```
|
```
|
||||||
|
|
||||||
.. where `URL_HERE` looks like `https://matrix.DOMAIN/matrix-alertmanager-receiver-RANDOM_VALUE_HERE/alert/some-room-name` or `https://matrix.DOMAIN/matrix-alertmanager-receiver-RANDOM_VALUE_HERE/alert/!some-room-id:DOMAIN`.
|
.. where `URL_HERE` looks like `https://matrix.DOMAIN/matrix-alertmanager-receiver-RANDOM_VALUE_HERE/alert/some-room-name` or `https://matrix.DOMAIN/matrix-alertmanager-receiver-RANDOM_VALUE_HERE/alert/!some-room-id:DOMAIN`.
|
||||||
|
@ -156,19 +156,19 @@ matrix_alertmanager_receiver_config_templating_generator_url_mapping: {}
|
|||||||
# Controls the `templating.computed-values` configuration setting.
|
# Controls the `templating.computed-values` configuration setting.
|
||||||
matrix_alertmanager_receiver_config_templating_computed_values: "{{ matrix_alertmanager_receiver_config_templating_computed_values_default + matrix_alertmanager_receiver_config_templating_computed_values_auto + matrix_alertmanager_receiver_config_templating_computed_values_custom }}"
|
matrix_alertmanager_receiver_config_templating_computed_values: "{{ matrix_alertmanager_receiver_config_templating_computed_values_default + matrix_alertmanager_receiver_config_templating_computed_values_auto + matrix_alertmanager_receiver_config_templating_computed_values_custom }}"
|
||||||
matrix_alertmanager_receiver_config_templating_computed_values_default:
|
matrix_alertmanager_receiver_config_templating_computed_values_default:
|
||||||
- values: # always set 'color' to 'yellow'
|
- values: # always set 'color' to 'yellow'
|
||||||
color: yellow
|
color: yellow
|
||||||
- values: # set 'color' to 'orange' when alert label 'severity' is 'warning'
|
- values: # set 'color' to 'orange' when alert label 'severity' is 'warning'
|
||||||
color: orange
|
color: orange
|
||||||
when-matching-labels:
|
when-matching-labels:
|
||||||
severity: warning
|
severity: warning
|
||||||
- values: # set 'color' to 'red' when alert label 'severity' is 'critical'
|
- values: # set 'color' to 'red' when alert label 'severity' is 'critical'
|
||||||
color: red
|
color: red
|
||||||
when-matching-labels:
|
when-matching-labels:
|
||||||
severity: critical
|
severity: critical
|
||||||
- values: # set 'color' to 'green' when alert status is 'resolved'
|
- values: # set 'color' to 'green' when alert status is 'resolved'
|
||||||
color: green
|
color: green
|
||||||
when-matching-status: resolved
|
when-matching-status: resolved
|
||||||
matrix_alertmanager_receiver_config_templating_computed_values_auto: []
|
matrix_alertmanager_receiver_config_templating_computed_values_auto: []
|
||||||
matrix_alertmanager_receiver_config_templating_computed_values_custom: []
|
matrix_alertmanager_receiver_config_templating_computed_values_custom: []
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user