Skip to content

Commit

Permalink
Fix alertmanager alert context "unkown -> unknown" (#3430)
Browse files Browse the repository at this point in the history
  • Loading branch information
majolo authored Jul 26, 2021
1 parent a7a29d4 commit 7d99f0f
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ alerting:
alertmanagers:
- static_configs:
- targets:
- alertmanager
- seldon-core-analytics-prometheus-alertmanager
scrape_configs:
- job_name: kubernetes-nodes
tls_config:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ groups:
* 100)) > 75
for: 2m
labels:
context: unkown
context: unknown
severity: page
annotations:
DESCRIPTION: '{{$labels.instance}}: CPU usage is above 75% (current value is:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ groups:
expr: up == 0
for: 1m
labels:
context: unkown
context: unknown
severity: page
annotations:
description: '{{ $labels.instance }} of job {{ $labels.job }} has been down
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ groups:
/ node_filesystem_size{mountpoint="/"} * 100) > 75
for: 2m
labels:
context: unkown
context: unknown
severity: page
annotations:
DESCRIPTION: '{{$labels.instance}}: Root disk usage is above 75% (current value
Expand All @@ -17,7 +17,7 @@ groups:
/ node_filesystem_size{mountpoint="/data-disk"} * 100) > 75
for: 2m
labels:
context: unkown
context: unknown
severity: page
annotations:
DESCRIPTION: '{{$labels.instance}}: Data disk usage is above 75% (current value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ groups:
* 100) > 75
for: 2m
labels:
context: unkown
context: unknown
severity: page
annotations:
DESCRIPTION: '{{$labels.instance}}: Swap usage usage is above 75% (current value
Expand All @@ -17,7 +17,7 @@ groups:
* 100)) > 75
for: 2m
labels:
context: unkown
context: unknown
severity: page
annotations:
DESCRIPTION: '{{$labels.instance}}: Memory usage is above 75% (current value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ groups:
* 100)) > 75
for: 2m
labels:
context: unkown
context: unknown
severity: page
annotations:
DESCRIPTION: '{{$labels.instance}}: CPU usage is above 75% (current value is:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ groups:
expr: up == 0
for: 1m
labels:
context: unkown
context: unknown
severity: page
annotations:
description: '{{ $labels.instance }} of job {{ $labels.job }} has been down
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ groups:
/ node_filesystem_size{mountpoint="/"} * 100) > 75
for: 2m
labels:
context: unkown
context: unknown
severity: page
annotations:
DESCRIPTION: '{{$labels.instance}}: Root disk usage is above 75% (current value
Expand All @@ -17,7 +17,7 @@ groups:
/ node_filesystem_size{mountpoint="/data-disk"} * 100) > 75
for: 2m
labels:
context: unkown
context: unknown
severity: page
annotations:
DESCRIPTION: '{{$labels.instance}}: Data disk usage is above 75% (current value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ groups:
* 100) > 75
for: 2m
labels:
context: unkown
context: unknown
severity: page
annotations:
DESCRIPTION: '{{$labels.instance}}: Swap usage usage is above 75% (current value
Expand All @@ -17,7 +17,7 @@ groups:
* 100)) > 75
for: 2m
labels:
context: unkown
context: unknown
severity: page
annotations:
DESCRIPTION: '{{$labels.instance}}: Memory usage is above 75% (current value
Expand Down
2 changes: 1 addition & 1 deletion monitoring/prometheus/rules.default/cpu-usage.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ALERT NodeCPUUsage
IF (100 - (avg by (instance) (irate(node_cpu{component="node-exporter",mode="idle"}[5m])) * 100)) > 75
FOR 2m
LABELS {
context="unkown",
context="unknown",
severity="page"
}
ANNOTATIONS {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ALERT InstanceDown
IF up == 0
FOR 1m
LABELS {
context="unkown",
context="unknown",
severity = "page"
}
ANNOTATIONS {
Expand Down
4 changes: 2 additions & 2 deletions monitoring/prometheus/rules.default/low-disk-space.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ALERT NodeLowRootDisk
IF ((node_filesystem_size{mountpoint="/"} - node_filesystem_free{mountpoint="/"} ) / node_filesystem_size{mountpoint="/"} * 100) > 75
FOR 2m
LABELS {
context="unkown",
context="unknown",
severity="page"
}
ANNOTATIONS {
Expand All @@ -14,7 +14,7 @@ ALERT NodeLowDataDisk
IF ((node_filesystem_size{mountpoint="/data-disk"} - node_filesystem_free{mountpoint="/data-disk"} ) / node_filesystem_size{mountpoint="/data-disk"} * 100) > 75
FOR 2m
LABELS {
context="unkown",
context="unknown",
severity="page"
}
ANNOTATIONS {
Expand Down
4 changes: 2 additions & 2 deletions monitoring/prometheus/rules.default/mem-usage.rules
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ALERT NodeSwapUsage
IF (((node_memory_SwapTotal-node_memory_SwapFree)/node_memory_SwapTotal)*100) > 75
FOR 2m
LABELS {
context="unkown",
context="unknown",
severity="page"
}
ANNOTATIONS {
Expand All @@ -14,7 +14,7 @@ ALERT NodeMemoryUsage
IF (((node_memory_MemTotal-node_memory_MemFree-node_memory_Cached)/(node_memory_MemTotal)*100)) > 75
FOR 2m
LABELS {
context="unkown",
context="unknown",
severity="page"
}
ANNOTATIONS {
Expand Down

0 comments on commit 7d99f0f

Please sign in to comment.