@@ -17,6 +17,9 @@ type metrics struct {
17
17
receivedSamplesBytes * prometheus.HistogramVec
18
18
receivedSymbolsBytes * prometheus.HistogramVec
19
19
replicationFactor prometheus.Gauge
20
+
21
+ receivedDecompressedBytesTotal * prometheus.HistogramVec
22
+ processedDecompressedBytes * prometheus.HistogramVec
20
23
}
21
24
22
25
func newMetrics (reg prometheus.Registerer ) * metrics {
@@ -39,7 +42,7 @@ func newMetrics(reg prometheus.Registerer) *metrics {
39
42
prometheus.HistogramOpts {
40
43
Namespace : "pyroscope" ,
41
44
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 ." ,
43
46
Buckets : prometheus .ExponentialBucketsRange (minBytes , maxBytes , bucketsCount ),
44
47
},
45
48
[]string {"type" , "tenant" },
@@ -71,6 +74,24 @@ func newMetrics(reg prometheus.Registerer) *metrics {
71
74
},
72
75
[]string {"type" , "tenant" },
73
76
),
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
+ ),
74
95
}
75
96
if reg != nil {
76
97
reg .MustRegister (
@@ -80,6 +101,8 @@ func newMetrics(reg prometheus.Registerer) *metrics {
80
101
m .receivedSamplesBytes ,
81
102
m .receivedSymbolsBytes ,
82
103
m .replicationFactor ,
104
+ m .receivedDecompressedBytesTotal ,
105
+ m .processedDecompressedBytes ,
83
106
)
84
107
}
85
108
return m
0 commit comments