Hi Brian, I tried everything on grafana but it looks like there is not any filter in grafana. I might be missing something writing PROMQL or count metrics does not support this. I only want them to list out count in given time filter
On Wednesday, 5 April 2023 at 17:16:47 UTC+5:30 dikshant rai wrote: > Hi Brian, > Thanks for responding. I just wanted to confirm that I am not missing > anything on prometheus query. > > On Wednesday, 5 April 2023 at 16:43:39 UTC+5:30 Brian Candler wrote: > >> Your question appears to be about Grafana, so it would be best asked to >> the Grafana community: >> https://community.grafana.com/ >> >> On Wednesday, 5 April 2023 at 11:45:17 UTC+1 dikshant rai wrote: >> >>> Hi, >>> I created a prometheus metric query as per the logs to count them and >>> put them in grafana dashboard show that I can visualise them in numbers. >>> I am creating one gauge and one trendline. Fo trendline it is good. >>> Query is: >>> sum(http_server_requests_seconds_count{uri="/collection/completeTask", >>> method="POST", application="collection-service", status="200"}) >>> only issue is time filter is not there. For example: If I put filter in >>> grafana for 30 min it will show total number of task and If I put it for 2 >>> days it still shows the same. >>> It must be in way that it should shows how many request has been >>> generated in last 30 min or 1 hour only. >>> How can we put time filter for same? >>> >> -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f6c2240f-d326-4472-9575-cba8b89f10f9n%40googlegroups.com.

