@cryptotaxi247 / infra-1 / commits / 1261d183

prometheus: increase retention duration to 2y

With the move to pluto the setup is now benefitting from ZSTD compression yielding a compression factor of 2.14x, bringing our data down from 75GB to a mere 35GB. We also doubled the disk size to 512GB, so spending ~150GB on metrics is not only feasible, but will allows us to compare performance metrics over longer intervals.

Martin Weinelt committed Mar 2, 2024 at 19:56 UTC 1261d183ad0c1cf036853087be306e7c792e0cdd
1 file changed +1 -1
delft/pluto/prometheus/default.nix
+1 -1
@@ -41,7 +41,7 @@
41 services.prometheus = {
42 enable = true;
43 extraFlags = [
44 - "--storage.tsdb.retention=${toString (150 * 24)}h"
44 + "--storage.tsdb.retention=${toString (720 * 24)}h"
45 "--web.external-url=https://prometheus.nixos.org/"
46 ];
47 globalConfig.scrape_interval = "15s";