Re: [prometheus-users] Scrape_interval

2022-02-28 Thread Stuart Clark

On 28/02/2022 11:41, BHARATH KUMAR wrote:

Hello all,

Q1) What will happen if we set scrape interval as 5 minutes or 10 minutes?
Q2) I am observing some misbehavior when we set different scrape 
interval. what is the reason behind that?


The standard maximum scape interval is about 2 minutes, due to staleness 
- less frequent scrapes would likely cause series to be marked as stale 
and therefore disappear from alerts/dashboards.


--
Stuart Clark

--
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/0c4fa543-07ab-a119-5344-c10d514055a2%40Jahingo.com.


[prometheus-users] Scrape_interval

2022-02-28 Thread BHARATH KUMAR
Hello all,

Q1) What will happen if we set scrape interval as 5 minutes or 10 minutes?
Q2) I am observing some misbehavior when we set different scrape interval. 
what is the reason behind that?


Could you please answer those questions?

Thanks in advance.

Regards,
Bharath kumar

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/c52853a4-502a-4b80-bd18-a0b8452c6915n%40googlegroups.com.


Re: [prometheus-users] scrape_interval is not working properly.

2020-08-05 Thread Ben Kochie
You didn't provide any evidence of why you think it's not working. You need
to include more information.

On Tue, Aug 4, 2020, 17:25 Byungkwon Choi  wrote:

> Hello,
>
> I want to collect the HTTP requests per second every second.
> To do so, I'm using Prometheus and Prometheus Adapter.
>
> I set the value of 'scrape_interval', 'scrape_timeout', and
> 'evaluation_interval' to 1s in the Prometheus ConfigMaps resource of K8S as
> follows:
>
> [image: 스크린샷 2020-08-05 오전 12.20.46.png]
>
>
> I use the following query to collect HTTP requests per second:
> sum(irate(request_total{namespace!="", direction="inbound"}[30s])) by
> (deployment)
>
> However, the value of the query is updated almost every 20 seconds.
> What I expect to this value is to be updated every second because I use
> 'irate' here and set 'scrape_interval' to 1 second.
>
>
> My current environment is as follows:
>
>- Service mesh: Linkerd v2.8.1
>- K8S version: v1.17.9
>- CNI: Calico
>- Other components deployed together: Jaeger, Prometheus-adapter
>
>
> Did I miss something?
> Thank you in advance!
>
> --
> 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 prometheus-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/aa2fcdf9-dddc-4c36-b1be-82cd9bae8542o%40googlegroups.com
> 
> .
>

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CABbyFmqsXjZ4%2BDfwYh6kbuRi-9RpW7R0Ug2LARWWo6Eo2YQWGA%40mail.gmail.com.


[prometheus-users] scrape_interval is not working properly.

2020-08-04 Thread Byungkwon Choi
Hello,

I want to collect the HTTP requests per second every second.
To do so, I'm using Prometheus and Prometheus Adapter.

I set the value of 'scrape_interval', 'scrape_timeout', and 
'evaluation_interval' to 1s in the Prometheus ConfigMaps resource of K8S as 
follows:

[image: 스크린샷 2020-08-05 오전 12.20.46.png]


I use the following query to collect HTTP requests per second:
sum(irate(request_total{namespace!="", direction="inbound"}[30s])) by 
(deployment)

However, the value of the query is updated almost every 20 seconds.
What I expect to this value is to be updated every second because I use 
'irate' here and set 'scrape_interval' to 1 second.


My current environment is as follows:

   - Service mesh: Linkerd v2.8.1
   - K8S version: v1.17.9
   - CNI: Calico
   - Other components deployed together: Jaeger, Prometheus-adapter


Did I miss something?
Thank you in advance!

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/aa2fcdf9-dddc-4c36-b1be-82cd9bae8542o%40googlegroups.com.