简体   繁体   English

普罗米修斯查询语言中 somestring1_somestring2:metric_name:some_operation 是什么意思

[英]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.

相关问题 Kubernetes 中的 apiserver_request_duration_seconds prometheus 指标是什么意思? - What does apiserver_request_duration_seconds prometheus metric in Kubernetes mean? 为什么 Prometheus 不会在不可见指标上引发错误? - Why Prometheus does not raise error on invisible metric? 想通过 nginx 将服务器 url 重定向到 server/somestring - Want to redirect the server url to server/somestring through nginx 普罗米修斯自定义指标未出现在 custom.metrics kubernetes - Prometheus custom metric does not appear in custom.metrics kubernetes 什么为普罗米修斯提供了指标“container_cpu_usage_seconds_total”? - what provides the metric "container_cpu_usage_seconds_total" to prometheus? Prometheus:在 Prometheus 中找不到 pod 的指标 - Prometheus: Metric from pod not found in Prometheus 使用来自 Kubernetes 度量服务器的 PromQL (prometheus) 列出 Grafana 上的命名空间名称、命名空间年龄和状态 - List Namespace name, Namespace Age, and Status on Grafana using PromQL (prometheus) from Kubernetes Metric server 如何在普罗米修斯度量标准中复制标签 - How replicate label in prometheus metric “普罗米修斯操作”服务有什么作用? - What does "prometheus-operated" service do? 使用 python 读取 Prometheus 指标 - Reading Prometheus metric using python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM