Does prometheus use compression to store its data ?

436 views
Skip to first unread message

Mega Rajan

unread,
Aug 26, 2022, 1:03:19 AM8/26/22
to Prometheus Users
hi 

we are using prometheus 2.3.1 .

Does prometheus use compression to store its data ?

From the documentation I see that its being compacted but no reference to compression and any compression algorithm as such .

could anyone please clarify on the compression and compression algorithm used by prometheus if any.

thanks
Megarajan

Ben Kochie

unread,
Aug 26, 2022, 1:07:11 AM8/26/22
to Mega Rajan, Prometheus Users
Yes, Prometheus uses compression.


Also, I highly recommend upgrading to the latest release. The version you are running is from 2018 and has numerous bugs.

--
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/1a63ac93-4e31-4df5-9e35-3803bd137f0en%40googlegroups.com.

Mega Rajan

unread,
Aug 26, 2022, 1:10:53 AM8/26/22
to Prometheus Users
Thanks for the reply. 

I digged in and saw that Prometheus uses Gorilla compression.

Do we have option to change the compression method to something else . I see that Gorilla compression is an efficient one but wanted a confirmation on whether there is a way to change it to something else 

thanks
Megarajan

Ben Kochie

unread,
Aug 26, 2022, 1:19:34 AM8/26/22
to Mega Rajan, Prometheus Users
PRs welcome.

But remember, any changes need to support mmap for efficient caching of stored data.

Brian Candler

unread,
Aug 26, 2022, 3:31:49 AM8/26/22
to Prometheus Users
If you're worried about compression of long-term archival storage, have a look at Thanos.

If you want to compare disk usage to a system with a similar design to Prometheus but different compression, have a look at VictoriaMetrics:

However, disk space is cheap.  Other considerations may be more important for many users.  And Prometheus in 2022 may be different to Prometheus in 2017.

Ben Kochie

unread,
Aug 26, 2022, 4:31:07 AM8/26/22
to Brian Candler, Prometheus Users
On Fri, Aug 26, 2022 at 9:31 AM Brian Candler <b.ca...@pobox.com> wrote:
If you're worried about compression of long-term archival storage, have a look at Thanos.

If you want to compare disk usage to a system with a similar design to Prometheus but different compression, have a look at VictoriaMetrics:

Does VictoriaMetrics still cast float64 to int to round off bits and improve compression?
 


However, disk space is cheap.  Other considerations may be more important for many users.  And Prometheus in 2022 may be different to Prometheus in 2017.

For example, WAL compression was introduced in 2019 and became the default in 2020.
 
Reply all
Reply to author
Forward
0 new messages