Tobias Brunner
0108ac6084
All checks were successful
continuous-integration/drone/push Build is passing
19 lines
510 B
Plaintext
19 lines
510 B
Plaintext
{
|
|
local absentAlert = self,
|
|
componentName:: error 'must provide component name',
|
|
selector:: error 'must provide selector for component',
|
|
|
|
alert: '%sDown' % absentAlert.componentName,
|
|
expr: |||
|
|
absent(up{%s} == 1)
|
|
||| % absentAlert.selector,
|
|
'for': '15m',
|
|
labels: {
|
|
severity: 'critical',
|
|
},
|
|
annotations: {
|
|
description: '%s has disappeared from Prometheus target discovery.' % absentAlert.componentName,
|
|
summary: 'Target disappeared from Prometheus target discovery.',
|
|
},
|
|
}
|