@@ -65,6 +65,8 @@ type Exporter struct {
6565 residentMemory * prometheus.Desc
6666 virtualMemory * prometheus.Desc
6767 asynclogRequests * prometheus.Desc
68+ asynclogRequestsRate * prometheus.Desc
69+ asynclogSpoolSuccessRate * prometheus.Desc
6870 serverDuration * prometheus.Desc
6971 serverProxyReqsProcessing * prometheus.Desc
7072 serverProxyInflightReqs * prometheus.Desc
@@ -296,6 +298,18 @@ func NewExporter(server string, timeout time.Duration, server_stats bool, logger
296298 nil ,
297299 nil ,
298300 ),
301+ asynclogRequestsRate : prometheus .NewDesc (
302+ prometheus .BuildFQName (namespace , "" , "asynclog_requests_rate" ),
303+ "Number of requests that were attempted to be spooled to disk." ,
304+ nil ,
305+ nil ,
306+ ),
307+ asynclogSpoolSuccessRate : prometheus .NewDesc (
308+ prometheus .BuildFQName (namespace , "" , "asynclog_spool_success_rate" ),
309+ "Number of requests that were spooled successfully." ,
310+ nil ,
311+ nil ,
312+ ),
299313 serverDuration : prometheus .NewDesc (
300314 prometheus .BuildFQName (namespace , "" , "server_duration_us" ),
301315 "Average time of processing a request per-server (i.e. receiving request and sending a reply)." ,
@@ -431,6 +445,8 @@ func (e *Exporter) Describe(ch chan<- *prometheus.Desc) {
431445 ch <- e .residentMemory
432446 ch <- e .virtualMemory
433447 ch <- e .asynclogRequests
448+ ch <- e .asynclogRequestsRate
449+ ch <- e .asynclogSpoolSuccessRate
434450
435451 if e .server_stats {
436452 ch <- e .serverDuration
@@ -559,6 +575,8 @@ func (e *Exporter) Collect(ch chan<- prometheus.Metric) {
559575 ch <- prometheus .MustNewConstMetric (e .virtualMemory , prometheus .CounterValue , e .parse (s , "ps_vsize" ))
560576
561577 ch <- prometheus .MustNewConstMetric (e .asynclogRequests , prometheus .CounterValue , e .parse (s , "asynclog_requests" ))
578+ ch <- prometheus .MustNewConstMetric (e .asynclogRequestsRate , prometheus .GaugeValue , e .parse (s , "asynclog_requests_rate" ))
579+ ch <- prometheus .MustNewConstMetric (e .asynclogSpoolSuccessRate , prometheus .GaugeValue , e .parse (s , "asynclog_spool_success_rate" ))
562580
563581 if e .server_stats {
564582 // Per-server stats
0 commit comments