I have configured a custom prometheus mertic named "my_metrics" in my code which is simply capturing a special failure condition of my API.
After deployment, if I want to check what the increment value on that counter in last 1 hour, I am writing promQ
sum(increase(my_metrics(...)[30m]))
but I am always getting 0 as response even when I am sure that that error condition has met 2 times in last 30 min and I am getting that confirmation in logs.
Based on some online search, I got some blogs where they say some issue with increase() function. Can someone tell what exactly is that issue, or how can I get my data using some other promQL. Basically I want to get the increment in my counter's value in last 30 mins.