使用Recoding Rules优化性能
定义Recoding rules
rule_files:
[ - <filepath_glob> ... ]groups:
[ - <rule_group> ]groups:
- name: example
rules:
- record: job:http_inprogress_requests:sum
expr: sum(http_inprogress_requests) by (job)# The name of the group. Must be unique within a file.
name: <string>
# How often rules in the group are evaluated.
[ interval: <duration> | default = global.evaluation_interval ]
rules:
[ - <rule> ... ]最后更新于