You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 27, 2023. It is now read-only.
expr: |
(vector(1) and (month() > 3 and month() < 10))
or
(vector(1) and (month() == 3 and (day_of_month() - day_of_week()) >= 25) and absent((day_of_month() >= 25) and (day_of_week() == 0)))
or
(vector(1) and (month() == 10 and (day_of_month() - day_of_week()) < 25) and absent((day_of_month() >= 25) and (day_of_week() == 0)))
or
(vector(1) and ((month() == 10 and hour() < 1) or (month() == 3 and hour() > 0)) and ((day_of_month() >= 25) and (day_of_week() == 0)))
or
vector(0)```
The text was updated successfully, but these errors were encountered:
@terjesannum nå har vi støtte for inhibit rules, noen tanker om vi bare skulle opprettet recorden som trengs for at folk skal kunne lage en slik regel?
Recording rules er vel for å optimalisere og forenkle ved å forhåndskalkulere en ny tidserie, så man burde kunne bruke inhibit rules uten å være avhengig av de. Men det blir jo litt mere jobb med queriene, og har vi noen gode generelle regler som mange kan ha nytte av så er det bare å legge inn de. Men vi bør unngå å dra på oss en masse ekstra vedlikehold av slike regler.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Kunne kanskje vært kjekt med støtte for record.
Her er et eksempel hvor det brukes for å lage en macro for å håndtere sommertid/vintertid problematikk (hentet fra https://medium.com/@tom.fawcett/time-of-day-based-notifications-with-prometheus-and-alertmanager-1bf7a23b7695):
The text was updated successfully, but these errors were encountered: