How Prometheus manages hash collisions on SeriesID #11942
evanxg852000
started this conversation in
General
Replies: 1 comment
-
I think you are asking about This is not a hash; it is incremented each time a reference is given out, so they are unique for one Prometheus until 2^64 series have been created. Where hashes are used to look up series in the Head, care is taken to find the exact right one: However there are issues with hash collisions in other contexts; see #12519. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I have noticed Prometheus generates a
SerieID
upon receiving a data scraped. it combines the label set to generate a unique id from the hash. But I am concerned about the hash collisions. That is two different metrics with probably two different label set could hash to the same serieID. Does Prometheus puts these data point from different series in the same series or how does it handle it?Beta Was this translation helpful? Give feedback.
All reactions