我试图在一段时间内找到特定荚所消耗的最小/最大/平均内存。
目前我正在使用
sum(container_memory_working_set_bytes{namespace="test", pod="test1", container!="POD", container!=""}) by (container)
Output -> test1 = 9217675264为了报告的目的,我需要找出豆荚在一个时间间隔( 6h)和平均值上使用的最小/峰值内存。
发布于 2021-06-16 07:58:09
您可以使用一个范围向量(将一个[interval]添加到度量名称/选择器)和一个聚集-超时函数来实现这一点。
min_over_time(container_memory_usage_bytes{}[6h])
max_over_time(container_memory_usage_bytes{}[6h])
avg_over_time(container_memory_usage_bytes{}[6h])https://stackoverflow.com/questions/67998486
复制相似问题