@@ -17,6 +17,9 @@ type metrics struct {
1717 receivedSamplesBytes * prometheus.HistogramVec
1818 receivedSymbolsBytes * prometheus.HistogramVec
1919 replicationFactor prometheus.Gauge
20+
21+ receivedDecompressedBytesTotal * prometheus.HistogramVec
22+ processedDecompressedBytes * prometheus.HistogramVec
2023}
2124
2225func newMetrics (reg prometheus.Registerer ) * metrics {
@@ -39,7 +42,7 @@ func newMetrics(reg prometheus.Registerer) *metrics {
3942 prometheus.HistogramOpts {
4043 Namespace : "pyroscope" ,
4144 Name : "distributor_received_decompressed_bytes" ,
42- Help : "The number of decompressed bytes per profiles received by the distributor." ,
45+ Help : "The number of decompressed bytes per profiles received by the distributor after limits/sampling checks ." ,
4346 Buckets : prometheus .ExponentialBucketsRange (minBytes , maxBytes , bucketsCount ),
4447 },
4548 []string {"type" , "tenant" },
@@ -71,6 +74,24 @@ func newMetrics(reg prometheus.Registerer) *metrics {
7174 },
7275 []string {"type" , "tenant" },
7376 ),
77+ receivedDecompressedBytesTotal : prometheus .NewHistogramVec (
78+ prometheus.HistogramOpts {
79+ Namespace : "pyroscope" ,
80+ Name : "distributor_received_decompressed_bytes_total" ,
81+ Help : "The total number of decompressed bytes per profile received by the distributor before limits/sampling checks." ,
82+ Buckets : prometheus .ExponentialBucketsRange (minBytes , maxBytes , bucketsCount ),
83+ },
84+ []string {"tenant" },
85+ ),
86+ processedDecompressedBytes : prometheus .NewHistogramVec (
87+ prometheus.HistogramOpts {
88+ Namespace : "pyroscope" ,
89+ Name : "distributor_processed_decompressed_bytes" ,
90+ Help : "The number of decompressed bytes per profile received (processed) by the distributor after limits/sampling checks and normalization." ,
91+ Buckets : prometheus .ExponentialBucketsRange (minBytes , maxBytes , bucketsCount ),
92+ },
93+ []string {"tenant" },
94+ ),
7495 }
7596 if reg != nil {
7697 reg .MustRegister (
@@ -80,6 +101,8 @@ func newMetrics(reg prometheus.Registerer) *metrics {
80101 m .receivedSamplesBytes ,
81102 m .receivedSymbolsBytes ,
82103 m .replicationFactor ,
104+ m .receivedDecompressedBytesTotal ,
105+ m .processedDecompressedBytes ,
83106 )
84107 }
85108 return m
0 commit comments