Skip to content

Commit eda2208

Browse files
committed
fix(monitor): memory usage error
1 parent 478cd6f commit eda2208

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/api/monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
query_memory_usage_promql_tpl = """
31-
sum (rate (container_memory_working_set_bytes{pod=~"^%s-.*$",namespace="%s"}[%s]))
31+
sum (avg_over_time (container_memory_working_set_bytes{pod=~"^%s-.*$",namespace="%s"}[%s]))
3232
by (pod)
3333
"""
3434

0 commit comments

Comments
 (0)