Does Prometheus optimise storage for non-changing metrics?

7 views
Skip to first unread message

John Dexter

unread,
Jan 15, 2021, 9:03:29 AM1/15/21
to promethe...@googlegroups.com
I have a counter metric with a label which has quite a few possible values. However in reality many of these labeled metrics change very rarely and some of them might never change depending on the system.
Does Prometheus intelligently handle storage in such cases? i.e. only record changes to values so I don't have millions of copies of "0.0" recorded each poll?

Thanks.

Ben Kochie

unread,
Jan 15, 2021, 9:11:47 AM1/15/21
to John Dexter, Prometheus Users
Yes, Prometheus uses "Double Delta" and other compression techniques to reduce these to a few bits per sample.

There's a good video about this: https://youtu.be/b_pEevMAC3I

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAGJRanghFRKz-46BRhSh5K8kmQycKzqboQonL7rcnhWtXs6yxw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages