diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2020-08-13 13:31:18 +0300 |
---|---|---|
committer | Vladimir Shushlin <vshushlin@gitlab.com> | 2020-08-13 13:31:18 +0300 |
commit | 54f0530e6bd1efe7fb8bd197e783fd7de16f31dd (patch) | |
tree | 7274b007e0da959dab3c1f3084ca77fd79e500d6 /metrics/metrics.go | |
parent | 8617aaebb1e45b9c222f3c67f93112d7dc37ad61 (diff) |
Add VFS for local disk
Diffstat (limited to 'metrics/metrics.go')
-rw-r--r-- | metrics/metrics.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/metrics/metrics.go b/metrics/metrics.go index 88636279..0792a41f 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -91,6 +91,12 @@ var ( Help: "The time (in seconds) taken to serve a file", Buckets: []float64{0.1, 0.5, 1, 2.5, 5, 10, 60, 180}, }) + + // VFSOperations metric for VFS operations (lstat, readlink, open) + VFSOperations = prometheus.NewCounterVec(prometheus.CounterOpts{ + Name: "gitlab_pages_vfs_operations_total", + Help: "The number of VFS operations", + }, []string{"vfs_name", "operation", "success"}) ) // MustRegister collectors with the Prometheus client @@ -110,5 +116,6 @@ func MustRegister() { ServerlessLatency, DiskServingFileSize, ServingTime, + VFSOperations, ) } |