@@ -105,6 +105,58 @@ var (
105105 },
106106 []string {"operation" , "status" },
107107 )
108+
109+ GaugeProxyRemoteWriteInflight = prometheus .NewGauge (prometheus.GaugeOpts {
110+ Namespace : namespace ,
111+ Subsystem : subsystem ,
112+ Name : "proxy_remote_write_inflight" ,
113+ Help : "Current number of in-flight requests on /proxy/v1/write." ,
114+ })
115+
116+ CounterProxyRemoteWriteOverLimitTotal = prometheus .NewCounter (prometheus.CounterOpts {
117+ Namespace : namespace ,
118+ Subsystem : subsystem ,
119+ Name : "proxy_remote_write_over_limit_total" ,
120+ Help : "Number of /proxy/v1/write requests rejected with 429 due to in-flight over limit." ,
121+ })
122+
123+ CounterProxyRemoteWriteBodyTooLargeTotal = prometheus .NewCounter (prometheus.CounterOpts {
124+ Namespace : namespace ,
125+ Subsystem : subsystem ,
126+ Name : "proxy_remote_write_body_too_large_total" ,
127+ Help : "Number of /proxy/v1/write requests rejected with 413 due to body size over limit." ,
128+ })
129+
130+ CounterProxyRemoteWriteTotal = prometheus .NewCounter (prometheus.CounterOpts {
131+ Namespace : namespace ,
132+ Subsystem : subsystem ,
133+ Name : "proxy_remote_write_total" ,
134+ Help : "Number of /proxy/v1/write requests received." ,
135+ })
136+
137+ CounterProxyForwardTotal = prometheus .NewCounterVec (prometheus.CounterOpts {
138+ Namespace : namespace ,
139+ Subsystem : subsystem ,
140+ Name : "proxy_forward_total" ,
141+ Help : "Number of forwards performed by /proxy/v1/write." ,
142+ }, []string {"url" })
143+
144+ CounterProxyForwardErrorTotal = prometheus .NewCounterVec (prometheus.CounterOpts {
145+ Namespace : namespace ,
146+ Subsystem : subsystem ,
147+ Name : "proxy_forward_error_total" ,
148+ Help : "Number of forward errors on /proxy/v1/write." ,
149+ }, []string {"url" , "reason" })
150+
151+ ProxyForwardDuration = prometheus .NewHistogramVec (
152+ prometheus.HistogramOpts {
153+ Namespace : namespace ,
154+ Subsystem : subsystem ,
155+ Buckets : []float64 {.001 , .01 , .1 , 1 , 5 , 10 },
156+ Name : "proxy_forward_duration_seconds" ,
157+ Help : "Forward latencies on /proxy/v1/write in seconds." ,
158+ }, []string {"url" },
159+ )
108160)
109161
110162func init () {
@@ -121,5 +173,12 @@ func init() {
121173 GaugeSampleQueueSize ,
122174 CounterPushQueueOverLimitTotal ,
123175 RedisOperationLatency ,
176+ GaugeProxyRemoteWriteInflight ,
177+ CounterProxyRemoteWriteOverLimitTotal ,
178+ CounterProxyRemoteWriteBodyTooLargeTotal ,
179+ CounterProxyRemoteWriteTotal ,
180+ CounterProxyForwardTotal ,
181+ CounterProxyForwardErrorTotal ,
182+ ProxyForwardDuration ,
124183 )
125184}
0 commit comments