Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
32a08995
Commit
32a08995
authored
5 years ago
by
S M Y
Browse files
Options
Download
Patches
Plain Diff
CPU usage fix
parent
6815998a
sunbird-monitoring-release-2.2.0
sunbird-monitoring-release-2.2.0_aa4568b
sunbird-monitoring-release-2.1.0
sunbird-monitoring-release-2.1.0_RC1
monitoring-fixes
loadtest
fixed-monitoring
before-categorisation
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/stack-monitor-stateful/templates/alertrules.nodes.yml
+1
-1
...les/stack-monitor-stateful/templates/alertrules.nodes.yml
ansible/roles/stack-monitor/templates/alertrules.nodes.yml
+1
-1
ansible/roles/stack-monitor/templates/alertrules.nodes.yml
with
2 additions
and
2 deletions
+2
-2
ansible/roles/stack-monitor-stateful/templates/alertrules.nodes.yml
+
1
−
1
View file @
32a08995
...
...
@@ -2,7 +2,7 @@ groups:
-
name
:
alertrules.nodes
rules
:
-
alert
:
high_cpu_usage_on_node
expr
:
sum by(nodenam
e) (rate(
process
_cpu_seconds_total
[5m]) * on(instance) group_left(nodename) node_uname_info
* 100) >
9
5
expr
:
100 - (avg by (instanc
e) (
i
rate(
node
_cpu_seconds_total
{job="vm-node-exporter",mode="idle"}[5m]))
* 100) >
9
0
for
:
1m
annotations
:
description
:
'
{%
raw
%}{{
$labels.nodename
}}{%
endraw
%}
({%
raw
%}{{
$labels.host
}}{%
endraw
%})
is
using
a
LOT
of
CPU.
CPU
usage
is
{%
raw
%}{{
humanize
$value}}{%
endraw
%}%.'
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/stack-monitor/templates/alertrules.nodes.yml
+
1
−
1
View file @
32a08995
...
...
@@ -2,7 +2,7 @@ groups:
-
name
:
alertrules.nodes
rules
:
-
alert
:
high_cpu_usage_on_node
expr
:
sum by(nodenam
e) (rate(
process
_cpu_seconds_total
[5m]) * on(instance) group_left(nodename) node_uname_info
* 100) >
8
0
expr
:
100 - (avg by (instanc
e) (
i
rate(
node
_cpu_seconds_total
{job="vm-node-exporter",mode="idle"}[5m]))
* 100) >
9
0
for
:
1m
annotations
:
description
:
'
{%
raw
%}{{
$labels.nodename
}}{%
endraw
%}
({%
raw
%}{{
$labels.host
}}{%
endraw
%})
is
using
a
LOT
of
CPU.
CPU
usage
is
{%
raw
%}{{
humanize
$value}}{%
endraw
%}%.'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets