mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
metrics: Add canceled requests (#11881)
Add metric for canceled requests
This commit is contained in:
@@ -372,6 +372,18 @@ func httpMetricsPrometheus(ch chan<- prometheus.Metric) {
|
||||
api,
|
||||
)
|
||||
}
|
||||
|
||||
for api, value := range httpStats.TotalS3Canceled.APIStats {
|
||||
ch <- prometheus.MustNewConstMetric(
|
||||
prometheus.NewDesc(
|
||||
prometheus.BuildFQName(s3Namespace, "canceled", "total"),
|
||||
"Total number of client canceled s3 request in current MinIO server instance",
|
||||
[]string{"api"}, nil),
|
||||
prometheus.CounterValue,
|
||||
float64(value),
|
||||
api,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
// collects network metrics for MinIO server in Prometheus specific format
|
||||
|
||||
Reference in New Issue
Block a user