Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
4a86e26b
Commit
4a86e26b
authored
3 years ago
by
BugKing
Browse files
Options
Download
Email Patches
Plain Diff
fix(性能测试): 修改prometheus内存使用率查询公式
parent
65b226be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
backend/src/main/java/io/metersphere/performance/controller/request/MetricQuery.java
+1
-1
...tersphere/performance/controller/request/MetricQuery.java
with
1 addition
and
1 deletion
+1
-1
backend/src/main/java/io/metersphere/performance/controller/request/MetricQuery.java
+
1
-
1
View file @
4a86e26b
...
...
@@ -10,7 +10,7 @@ public class MetricQuery {
// 指标名:promQL
put
(
"cpu"
,
"100 - (avg by (instance) (irate(node_cpu_seconds_total{instance='%1$s', mode='idle'}[1m])) * 100)"
);
put
(
"disk"
,
"100 - node_filesystem_free_bytes{instance='%1$s'} / node_filesystem_size_bytes{instance='%1$s'} * 100"
);
put
(
"memory"
,
"(node_memory_MemTotal_bytes{instance='%1$s'} - node_memory_Mem
Fre
e_bytes{instance='%1$s'}) / node_memory_MemTotal_bytes{instance='%1$s'} * 100"
);
put
(
"memory"
,
"(node_memory_MemTotal_bytes{instance='%1$s'} - node_memory_Mem
Availabl
e_bytes{instance='%1$s'}) / node_memory_MemTotal_bytes{instance='%1$s'} * 100"
);
put
(
"netIn"
,
"sum by (instance) (irate(node_network_receive_bytes_total{instance='%1$s',device!~'bond.*?|lo'}[1m])/1024)"
);
put
(
"netOut"
,
"sum by (instance) (irate(node_network_transmit_bytes_total{instance='%1$s',device!~'bond.*?|lo'}[1m])/1024)"
);
}};
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help