Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs/node-mixin: add missing selectors #2426

Merged
merged 1 commit into from
Jul 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/node-mixin/alerts/alerts.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,15 @@
alert: 'NodeClockSkewDetected',
expr: |||
(
node_timex_offset_seconds > 0.05
node_timex_offset_seconds{%(nodeExporterSelector)s} > 0.05
and
deriv(node_timex_offset_seconds[5m]) >= 0
deriv(node_timex_offset_seconds{%(nodeExporterSelector)s}[5m]) >= 0
)
or
(
node_timex_offset_seconds < -0.05
node_timex_offset_seconds{%(nodeExporterSelector)s} < -0.05
and
deriv(node_timex_offset_seconds[5m]) <= 0
deriv(node_timex_offset_seconds{%(nodeExporterSelector)s}[5m]) <= 0
)
||| % $._config,
'for': '10m',
Expand All @@ -237,9 +237,9 @@
{
alert: 'NodeClockNotSynchronising',
expr: |||
min_over_time(node_timex_sync_status[5m]) == 0
min_over_time(node_timex_sync_status{%(nodeExporterSelector)s}[5m]) == 0
and
node_timex_maxerror_seconds >= 16
node_timex_maxerror_seconds{%(nodeExporterSelector)s} >= 16
||| % $._config,
'for': '10m',
labels: {
Expand All @@ -253,7 +253,7 @@
{
alert: 'NodeRAIDDegraded',
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,
'for': '15m',
labels: {
Expand All @@ -267,7 +267,7 @@
{
alert: 'NodeRAIDDiskFailure',
expr: |||
node_md_disks{state="failed"} > 0
node_md_disks{state="failed",%(nodeExporterSelector)s,%(diskDeviceSelector)s} > 0
||| % $._config,
labels: {
severity: 'warning',
Expand Down