On 11.05.22 00:46, Muhammed Niyazi Alpay wrote:
>
> The alarm list for the last 24 hours comes, but I want to find the resolved
> alarms in this list. How can I do that?
I'm not quite sure what you mean by "resolved alarms". In Prometheus,
an alert is essentially a vector element returned by a PromQL
expression. And that element is stored in a time series, named
`ALERTS`. Those time series are accessed by your query.
If an alert resolves, it will simply _not_ return a result
anymore. This "nothingness" cannot be stored, so there is no time
series for resolved alerts. You would need to check for `ALERTS`
series that cease to exist to identify resolved alerts.
--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email]
bjo...@rabenste.in