docs
docs copied to clipboard
recording_rules page is confusing
The page at: https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/ is somewhat unclear:
- It shows an example rules file
- Immediately goes to
<rule_group>where there should be an accompanying explanation (also loses the indentation). - Shows a
<rule>example which seems to suggest thatrecordis a required field (not in[]) - Then an alert example is shown where (the required)
recordis gone and replaced withalert - The
alertexample has the commment:# The name of the alert. Must be a valid metric name.- but these are usually strings like HighErrorRate, not metrics.
Yes. Also lots of info that pertain to "Alerting rules" are in the "Recording rules" page. IMO, since both pages are relatively small and have so much in common, they should be merged.