Prometheus 查询内存使用率 - cAdvisor 指标
要查询内存使用率,您可以使用 Prometheus 的内置查询语言 PromQL。以下是一个示例查询:
100 * (1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes))
该查询将返回一个百分比值,表示可用内存的使用率。请确保已经在 Prometheus 中正确配置了与内存相关的指标,并且已经在 Prometheus 的配置文件中启用了相应的指标收集。
原文地址: https://www.cveoy.top/t/topic/piXm 著作权归作者所有。请勿转载和采集!