[prometheus-users] Re: Difference between groups and list of rules

2022-01-11 Thread Brian Candler
Not much. The main thing is that all rules within a rule group have the same evaluation interval; so if you want to have a rule evaluated at a different interval, it must be in a different group. On Tuesday, 11 January 2022 at 04:22:10 UTC rashmira...@gmail.com wrote: > Hi, > > can someone ple

Re: [prometheus-users] Re: Difference between groups and list of rules

2022-01-13 Thread Matthias Rampke
Just to check my understanding: I think rules within one group are also evaluated in order, while groups (even at the same interval) can be evaluated concurrently. If you have multiple rules that build on top of one another (using the output of one rule in the next) put them in one group, with the

Re: [prometheus-users] Re: Difference between groups and list of rules

2022-01-13 Thread Brian Brazil
On Thu, 13 Jan 2022 at 20:29, Matthias Rampke wrote: > Just to check my understanding: I think rules within one group are also > evaluated in order, while groups (even at the same interval) can be > evaluated concurrently. > > If you have multiple rules that build on top of one another (using the

Re: [prometheus-users] Re: Difference between groups and list of rules

2022-01-14 Thread rashmi Rashmitha
Hi, so the list of rules in a group will execute sequentially but it throws an alert when that particular alert rule condition is met. example: groups: - name: grp1 rules: - alert: A1 expr: histogram_quantile(.99, sum(rate(http_server_requests_seconds_bucket{uri="",status="200",app

Re: [prometheus-users] Re: Difference between groups and list of rules

2022-01-15 Thread Brian Candler
For alerting rules it doesn't really make any practical difference. Yes, the alert rule evaluations within a group are handled sequentially rather than in parallel, but the alerts don't interfere with each other. You can still have one firing but not the other, or both, or neither. Where it m