Re: [prometheus-users] Prom QL

2022-07-24 Thread Stuart Clark
On 25/07/2022 07:30, BHARATH KUMAR wrote: I am talking about grafana dashboard. I created a custom variable as follows: CPU: All : <=100, lt 10 && gt 0 : >0<=10, lt 30 && gt 10 : >10<=30 So this CPU filter will be added at the top of grafana dashboard. Now If I select ALL in CPU filter I am n

Re: [prometheus-users] Re: blackbox metrics scraping

2022-07-24 Thread Stuart Clark
On 25/07/2022 01:08, nina guo wrote: Thank you Brian. " up to T - 5 minutesĀ  ", this 5 mins is the scraping interval? No. The scraping interval doesn't matter. Prometheus will by default look back at most 5 minutes for a value. -- Stuart Clark -- You received this message because you are su

Re: [prometheus-users] Prom QL

2022-07-24 Thread BHARATH KUMAR
I am talking about grafana dashboard. I created a custom variable as follows: CPU: All : <=100, lt 10 && gt 0 : >0<=10, lt 30 && gt 10 : >10<=30 So this CPU filter will be added at the top of grafana dashboard. Now If I select ALL in CPU filter I am not able to find the unreachable servers list

[prometheus-users] Re: blackbox metrics scraping

2022-07-24 Thread nina guo
Thank you Brian. " up to T - 5 minutes ", this 5 mins is the scraping interval? On Monday, July 25, 2022 at 4:43:33 AM UTC+8 Brian Candler wrote: > The alerting rules run on their own schedule, separately from the scraping > schedule. > > The expression "probe_success == 0" uses the value of t

[prometheus-users] Re: blackbox metrics scraping

2022-07-24 Thread Brian Candler
The alerting rules run on their own schedule, separately from the scraping schedule. The expression "probe_success == 0" uses the value of that metric in the prometheus TSDB *at the current instant of time*. However, the value of a metric at any given time T is the most recent value *on or befo

Re: [prometheus-users] deactive alert after hook

2022-07-24 Thread Stuart Clark
On 24/07/2022 11:10, Milad Devops wrote: hi all I use Prometheus to create alert rules and hook alerts using alertmanager. My scenario is as follows: - The log publishing service sends logs to Prometheus Exporter - Prometheus takes the logs every second and matches them with our rules - If the lo

[prometheus-users] deactive alert after hook

2022-07-24 Thread Milad Devops
hi all I use Prometheus to create alert rules and hook alerts using alertmanager. My scenario is as follows: - The log publishing service sends logs to Prometheus Exporter - Prometheus takes the logs every second and matches them with our rules - If the log applies to our rules, the alertmanager s

[prometheus-users] Re: Promql

2022-07-24 Thread Brian Candler
Try this as a starting point: some_metric * scalar(hour() < bool 12) On Friday, 22 July 2022 at 19:42:47 UTC+1 hamidd...@gmail.com wrote: > Hi everyone > i m looking for a formula that can make a query just for nights for > example from 12 pm to 12 am. > can anyone help me, > cheers. > -- Yo