Prometheus 常用 PromQL 语句样例
, "-", "label1", "label2")提取标签的一部分并将其存储在新标签中: label_replace(my_metric, "dest-label", "$1", "source-label", "(.*):.*")关于 PromQL 更多的使用方法,可以参考 PromQL 官方文档: 基础:https://prometheus.io/docs/prometheus/latest/querying/basics/ 操作符:https://prometheus.io/docs/prometheus/latest/querying/operators/ 函数:https://prometheus.io/docs/prometheus/latest/querying/functions/ 示例:https...阅读全文