Sorry, but your question is about the capabilities and configuration of 
Grafana panels ("one gauge and one trendline"), not about Prometheus or 
PromQL.

The actual API call 
<https://prometheus.io/docs/prometheus/latest/querying/api/> made to 
Prometheus (e.g. whether it's an instant query or a range query, and if a 
range then what time range is requested) is entirely controlled by 
Grafana.  How it renders the results of that query is entirely controlled 
by Grafana.

On Wednesday, 5 April 2023 at 18:48:25 UTC+1 dikshant rai wrote:

> 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/e10548c0-90ae-41d7-a2b4-fc827b39ec50n%40googlegroups.com.

Reply via email to