[英]What does somestring1_somestring2:metric_name:some_operation mean in prometheus query language
I am trying to understand default prometheus rules for kubernetes.我正在尝试了解 kubernetes 的默认普罗米修斯规则。 And then I came across with this expression:
然后我遇到了这个表达式:
sum(namespace_cpu:kube_pod_container_resource_requests:sum{})
/
sum(kube_node_status_allocatable{resource="cpu"})
>
((count(kube_node_status_allocatable{resource="cpu"}) > 1) - 1) / count(kube_node_status_allocatable{resource="cpu"})
Specifically, i am curious at namespace_cpu:kube_pod_container_resource_requests:sum{}
.具体来说,我很好奇
namespace_cpu:kube_pod_container_resource_requests:sum{}
。 namespace_cpu does not appear to be an operation or reserved word in promql. namespace_cpu 似乎不是 promql 中的操作或保留字。
I can't seem to find it either in Prometheus documentation.我似乎在 Prometheus 文档中也找不到它。 https://prometheus.io/docs/prometheus/latest/querying/basics/
https://prometheus.io/docs/prometheus/latest/querying/basics/
Any hints?有什么提示吗?
Nothing, it's not an operator :
is just a legal character in metric names.没什么,它不是运算符
:
只是度量名称中的合法字符。 Some standard rulesets use it for grouping rollup rules together but it's just a naming scheme at most.一些标准规则集使用它来将汇总规则分组在一起,但它最多只是一个命名方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.