Prometheus 获取 根据集群标识{cluster="f433af02-3d74-11ee-a76a-0255ac1000a3" 获取无状态负载的workingset…
- User
Prometheus 获取 根据集群标识{cluster="f433af02-3d74-11ee-a76a-0255ac1000a3" 获取无状态负载的workingset 内存使用率的命令
Assistant
这是获取指定集群中无状态负载工作集内存使用率的Prometheus查询命令:
sum by (namespace, pod) ( container_memory_working_set_bytes{ cluster="f433af02-3d74-11ee-a76a-0255ac1000a3", container!="", container!="POD" } ) / sum by (namespace, pod) ( kube_pod_container_resource_limits{ cluster="f433af02-3d74-11ee-a76a-0255ac1000a3", resource="memory" } ) * 100您需要这段代码的解释吗?
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.