hosts/monitoring-3: Add alert for Synapse
This commit is contained in:
parent
2e68d00ca4
commit
cff95863fd
@ -273,7 +273,7 @@ in {
|
||||
static_configs = [
|
||||
{
|
||||
targets = [
|
||||
"https://matrix.entr0py.de/_matrix/static/"
|
||||
"matrix.entr0py.de"
|
||||
];
|
||||
}
|
||||
];
|
||||
@ -281,9 +281,10 @@ in {
|
||||
{
|
||||
source_labels = [ "__address__" ];
|
||||
target_label = "__param_target";
|
||||
replacement = "https://\${1}/_matrix/static/";
|
||||
}
|
||||
{
|
||||
source_labels = [ "__param_target" ];
|
||||
source_labels = [ "__address__" ];
|
||||
target_label = "target";
|
||||
}
|
||||
{
|
||||
|
@ -57,3 +57,11 @@ groups:
|
||||
annotations:
|
||||
summary: "Kernel of {{ $labels.instance }} changed"
|
||||
description: "The Kernel {{ $labels.instance }} booted with, isn't the target Kernel. A reboot may be required."
|
||||
- alert: SynapseUnavailable
|
||||
expr: last_over_time(probe_success{instance="monitoring-3.net.clerie.de", job="blackbox_local_synapse", target="matrix.entr0py.de"}[5m]) == 0
|
||||
for: 5m
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: "Synapse of {{ $labels.target }} unavailable"
|
||||
description: "The Synapse backend of {{ $labels.instance }} is unreachable or returns garbage"
|
||||
|
Loading…
Reference in New Issue
Block a user