Merge pull request #2426 from paulfantom/alerts-selectors
docs/node-mixin: add missing selectors
This commit is contained in:
commit
f06eb4152d
|
@ -214,15 +214,15 @@
|
||||||
alert: 'NodeClockSkewDetected',
|
alert: 'NodeClockSkewDetected',
|
||||||
expr: |||
|
expr: |||
|
||||||
(
|
(
|
||||||
node_timex_offset_seconds > 0.05
|
node_timex_offset_seconds{%(nodeExporterSelector)s} > 0.05
|
||||||
and
|
and
|
||||||
deriv(node_timex_offset_seconds[5m]) >= 0
|
deriv(node_timex_offset_seconds{%(nodeExporterSelector)s}[5m]) >= 0
|
||||||
)
|
)
|
||||||
or
|
or
|
||||||
(
|
(
|
||||||
node_timex_offset_seconds < -0.05
|
node_timex_offset_seconds{%(nodeExporterSelector)s} < -0.05
|
||||||
and
|
and
|
||||||
deriv(node_timex_offset_seconds[5m]) <= 0
|
deriv(node_timex_offset_seconds{%(nodeExporterSelector)s}[5m]) <= 0
|
||||||
)
|
)
|
||||||
||| % $._config,
|
||| % $._config,
|
||||||
'for': '10m',
|
'for': '10m',
|
||||||
|
@ -237,9 +237,9 @@
|
||||||
{
|
{
|
||||||
alert: 'NodeClockNotSynchronising',
|
alert: 'NodeClockNotSynchronising',
|
||||||
expr: |||
|
expr: |||
|
||||||
min_over_time(node_timex_sync_status[5m]) == 0
|
min_over_time(node_timex_sync_status{%(nodeExporterSelector)s}[5m]) == 0
|
||||||
and
|
and
|
||||||
node_timex_maxerror_seconds >= 16
|
node_timex_maxerror_seconds{%(nodeExporterSelector)s} >= 16
|
||||||
||| % $._config,
|
||| % $._config,
|
||||||
'for': '10m',
|
'for': '10m',
|
||||||
labels: {
|
labels: {
|
||||||
|
@ -253,7 +253,7 @@
|
||||||
{
|
{
|
||||||
alert: 'NodeRAIDDegraded',
|
alert: 'NodeRAIDDegraded',
|
||||||
expr: |||
|
expr: |||
|
||||||
node_md_disks_required - ignoring (state) (node_md_disks{state="active"}) > 0
|
node_md_disks_required{%(nodeExporterSelector)s,%(diskDeviceSelector)s} - ignoring (state) (node_md_disks{state="active",%(nodeExporterSelector)s,%(diskDeviceSelector)s}) > 0
|
||||||
||| % $._config,
|
||| % $._config,
|
||||||
'for': '15m',
|
'for': '15m',
|
||||||
labels: {
|
labels: {
|
||||||
|
@ -267,7 +267,7 @@
|
||||||
{
|
{
|
||||||
alert: 'NodeRAIDDiskFailure',
|
alert: 'NodeRAIDDiskFailure',
|
||||||
expr: |||
|
expr: |||
|
||||||
node_md_disks{state="failed"} > 0
|
node_md_disks{state="failed",%(nodeExporterSelector)s,%(diskDeviceSelector)s} > 0
|
||||||
||| % $._config,
|
||| % $._config,
|
||||||
labels: {
|
labels: {
|
||||||
severity: 'warning',
|
severity: 'warning',
|
||||||
|
|
Loading…
Reference in New Issue