Skip to content

Commit

Permalink
minor: 容器场景,内存指标更新rss->Working Set
Browse files Browse the repository at this point in the history
  • Loading branch information
chenguo367 committed Feb 28, 2025
1 parent 0739d8c commit b0a8363
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bkmonitor/packages/monitor_web/k8s/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ScenarioMetricList(Resource):
{'id': 'kube_pod_cpu_limits_ratio', 'name': 'CPU limit使用率'}]},
{'id': 'memory',
'name': '内存',
'children': [{'id': 'container_memory_rss', 'name': '内存使用量(rss)'},
'children': [{'id': 'container_memory_working_set_bytes', 'name': '内存使用量(Working Set)'},
{'id': 'kube_pod_memory_requests_ratio', 'name': '内存 request使用率'},
{'id': 'kube_pod_memory_limits_ratio', 'name': '内存 limit使用率'}]}]
"""
Expand Down Expand Up @@ -265,7 +265,7 @@ class RequestSerializer(FilterDictSerializer):
'container_cpu_usage_seconds_total',
'kube_pod_cpu_requests_ratio',
'kube_pod_cpu_limits_ratio',
'container_memory_rss',
'container_memory_working_set_bytes',
'kube_pod_memory_requests_ratio',
'kube_pod_memory_limits_ratio',
'container_cpu_cfs_throttled_ratio',
Expand Down Expand Up @@ -385,7 +385,7 @@ class RequestSerializer(FilterDictSerializer):
'container_cpu_usage_seconds_total',
'kube_pod_cpu_requests_ratio',
'kube_pod_cpu_limits_ratio',
'container_memory_rss',
'container_memory_working_set_bytes',
'kube_pod_memory_requests_ratio',
'kube_pod_memory_limits_ratio',
'container_cpu_cfs_throttled_ratio',
Expand Down

0 comments on commit b0a8363

Please sign in to comment.