Alerts fingerprint

30 views
Skip to first unread message

Federico Buti

unread,
Sep 25, 2020, 7:25:31 AM9/25/20
to Prometheus Users
Hi all.

We are interested in organizing alerts in a persistent storage for querying them later since Stack is quite unpractical for that.

We were considering using the "fingerprint" as a unique identifier for each alert but I've found inconsistent statements on the Internet about its uniqueness.

Is the fingerprint unique or to which degree can it be considered unique?

Thanks,
F.

l.mi...@gmail.com

unread,
Sep 25, 2020, 8:11:30 AM9/25/20
to Prometheus Users
Depends what you mean by "unique".
AFAIR fingerprint is computed from alerts labels, so unique means here: a unique combination of labels.
It's not unique as an "event" - if alert fires, then resolves and then fires again that both old and newly firing alerts will have same fingerprint.

So an alert with same combination of labels should have same fingerprint for every occurrence of that alert.

l.mi...@gmail.com

unread,
Sep 25, 2020, 8:13:02 AM9/25/20
to Prometheus Users

Brian Candler

unread,
Sep 25, 2020, 8:41:11 AM9/25/20
to Prometheus Users
As an aside: active alerts already get stored as extra timeseries in prometheus (ALERTS and ALERTS_FOR_STATE), so they are already in a form of persistent storage :-)

baca...@gmail.com

unread,
Sep 26, 2020, 5:14:20 AM9/26/20
to Prometheus Users
Thanks all for the quick reply!

That's the clear, definitive information we were searching for. :-)

Cheers,
F.
Reply all
Reply to author
Forward
0 new messages