Hi Prometheus users,
We are having a PromQL query and a Recording Rule that records the PromQL, like the example given below.
-record: rest-server-recording-rule
expr: sum(increase(example_metric[1m])) by (kubernetes_container_name)
The Recording Rule Scrape interval and Evaluation interval are both 30 seconds, and set in Prometheus configuration.
We are seeing unexpected spikes in the data recorded by the recording rule, whereas this unexpected spike is not present in the source expression, like shown in the below graph (Used Grafana for comparison).
Can we know the reason why this unexpected spike is being created by the recording rule? We would like to know the explanation of how recording rule captures the data of a query.
Thanks for reading this message, have a great day.
Sum(increase) RawQuery - data produced when we query the raw expression directly.
Recording Rules - Data captured by the recording rule.