-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add smartmon_sata failure as a mixin in kube-prometheus
- Loading branch information
iminfinity
committed
Nov 21, 2024
1 parent
5af854d
commit 53dbbc7
Showing
3 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
_config+:: { | ||
selector: '', | ||
}, | ||
|
||
prometheusAlerts+:: { | ||
groups+: [ | ||
{ | ||
name: 'SmartMon', | ||
rules: [ | ||
{ | ||
alert: 'SmartMonUdmaCrcErrorCountRawValue', | ||
expr: 'sum by (instance, device) (smartctl_device_attribute{attribute_name="UDMA_CRC_Error_Count", attribute_value_type="raw"} >= smartctl_device_attribute{attribute_name="UDMA_CRC_Error_Count", attribute_value_type="worst"})', | ||
'for': '3h', | ||
labels: { | ||
severity: 'critical', | ||
alert_id: 'SmartMonUdmaCrcErrorCountRawValue', | ||
}, | ||
annotations: { | ||
description: 'Disk **{{ .Labels.device }}** has disk sata failure on instance **{{ .Labels.instance }}** | ||
UDMA_CRC_Error_Count - The number of errors related to data transfer over the interface. A value of **{{ .Value }}** is concerning and indicates potential issues with the data cable or connections.', | ||
summary: 'The device **{{ .Labels.device }}** has disk sata failures.' | ||
}, | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
} |