The query from grafana is:
{"httpRequest":{"clientIP":"::1","method":"GET","path":"/api/v1/query"},"params":{"end":"2021-07-23T13:06:47.000Z","query":"increase(ifHCInOctets{network_key=\"xxx1\"}[10m]) / 2","start":"2021-07-23T13:06:47.000Z","step":0},"stats":{"timings":{"evalTotalTime":0.012282801,"resultSortTime":0,"queryPreparationTime":0.001716968,"innerEvalTime":0.010520843,"execQueueTime":0.000023908,"execTotalTime":0.01231981}},"ts":"2021-07-23T13:06:46.574Z"}
and from rule evaluation:
{"params":{"end":"2021-07-23T13:08:24.309Z","query":"increase(ifHCInOctets{network_key=\"xxx1\"}[10m]) / 2","start":"2021-07-23T13:08:24.309Z","step":0},"ruleGroup":{"file":"/etc/prometheus/rules-snmp.yml","name":"stats_api_aggregate_snmp_xxx1"},"stats":{"timings":{"evalTotalTime":0.006878878,"resultSortTime":0,"queryPreparationTime":0.000889663,"innerEvalTime":0.005962612,"execQueueTime":0.000007889,"execTotalTime":0.0068928}},"ts":"2021-07-23T13:08:24.446Z"}
and the way how I query the timeseries produced by the recording rule:
{"httpRequest":{"clientIP":"::1","method":"GET","path":"/api/v1/query"},"params":{"end":"2021-07-23T13:15:08.000Z","query":"sum by (network_key,instance) (ifHCInOctets:increase{network_key=\"xxx1\"})","start":"2021-07-23T13:15:08.000Z","step":0},"stats":{"timings":{"evalTotalTime":0.003954003,"resultSortTime":0,"queryPreparationTime":0.000565806,"innerEvalTime":0.003363043,"execQueueTime":0.000026367,"execTotalTime":0.00399693}},"ts":"2021-07-23T13:15:07.513Z"}