This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recording Rule Example 1 | |
================================ | |
# Aggregating up requests per second that has a path label: | |
- record: instance_path:requests:rate5m | |
expr: rate(requests_total{job="myjob"}[5m]) | |
- record: path:requests:rate5m | |
expr: sum without (instance)(instance_path:requests:rate5m{job="myjob"}) | |
Recording Rule Example 2 |
OlderNewer