夜莺-Nightingale
夜莺V6
项目介绍 架构介绍
快速开始 快速开始
黄埔营
安装部署 安装部署
升级
采集器 采集器
使用手册 使用手册
API API
数据库表结构 数据库表结构
FAQ FAQ
开源生态
Prometheus
版权声明
第1章:天降奇兵 第1章:天降奇兵
第2章:探索PromQL 第2章:探索PromQL
第3章:Prometheus告警处理 第3章:Prometheus告警处理
第4章:Exporter详解 第4章:Exporter详解
第5章:数据与可视化 第5章:数据与可视化
第6章:集群与高可用 第6章:集群与高可用
第7章:Prometheus服务发现 第7章:Prometheus服务发现
第8章:监控Kubernetes 第8章:监控Kubernetes
第9章:Prometheus Operator 第9章:Prometheus Operator
参考资料

Creating a Metric Template

Metric templates can be used for built-in metric queries in instant queries. In daily work, there are some custom or business-specific complex PromQL queries that can be created using this method for future reuse. As shown in the image below.

Template Center —> Metric Description —> Click Create in the upper right corner —> Fill in the metric-related content —> Finally, click OK to save.

Metric Template001

Metric templates also support creating through JSON file imports.

In the metric view —> Check Export Metrics —> Select Export Metrics in the upper right corner —> Finally, select JSON file to clipboard.

Metric Template002

More Operations in the upper right corner —> Select Import Metrics —> Copy the JSON file —> Finally, choose Import to save.

Metric Template003

Using the Metric Template

Once the metric template is added, it can be quickly used in Instant Query —> Built-in Metrics. There are many complex and lengthy query metrics in daily work, such as Kubernetes metrics or complex queries involving multiple metrics, and the configuration of metric templates can improve work efficiency.

Metric Template004

快猫星云 联系方式 快猫星云 联系方式
快猫星云 联系方式
快猫星云 联系方式
快猫星云 联系方式
快猫星云
OpenSource
开源版
Flashcat
Flashcat