diff options
Diffstat (limited to 'metrics')
-rw-r--r-- | metrics/metrics.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go index 0792a41f..de4206b5 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -97,6 +97,18 @@ var ( Name: "gitlab_pages_vfs_operations_total", Help: "The number of VFS operations", }, []string{"vfs_name", "operation", "success"}) + + // ZipFileServingReqTotal is the number of requests made to Object Storage by zip file serving + ZipFileServingReqTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ + Name: "gitlab_pages_httprange_zip_reader_requests_total", + Help: "The number of requests made to Object Storage by zip file serving with different status codes", + }, []string{"status_code"}) + + // ZipFileServingReqDuration is the time it takes to get a response from Object Storage in seconds for zip file servings + ZipFileServingReqDuration = prometheus.NewGaugeVec(prometheus.GaugeOpts{ + Name: "gitlab_pages_httprange_zip_reader_requests_duration", + Help: "The time (in seconds) it takes to get a response from the Object Storage provider for zip file serving", + }, []string{"status_code"}) ) // MustRegister collectors with the Prometheus client @@ -117,5 +129,7 @@ func MustRegister() { DiskServingFileSize, ServingTime, VFSOperations, + ZipFileServingReqTotal, + ZipFileServingReqDuration, ) } |