mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
gitserver: Adjust buckets for cleanup timing (#62712)
The default buckets don't serve us too well for the jobs, most just report 5ms (the smallest default) all the time, and some always report 10s (the biggest default) - this should hopefully give us better insight. Test plan: Code review.
This commit is contained in:
parent
2fc9a80f82
commit
73fae2207f
@ -203,8 +203,9 @@ var (
|
||||
Help: "set to 1 when the gitserver janitor background job is running",
|
||||
})
|
||||
jobTimer = promauto.NewHistogramVec(prometheus.HistogramOpts{
|
||||
Name: "src_gitserver_janitor_job_duration_seconds",
|
||||
Help: "Duration of the individual jobs within the gitserver janitor background job",
|
||||
Name: "src_gitserver_janitor_job_duration_seconds",
|
||||
Help: "Duration of the individual jobs within the gitserver janitor background job",
|
||||
Buckets: prometheus.ExponentialBucketsRange(0.001, 240, 16),
|
||||
}, []string{"success", "job_name"})
|
||||
maintenanceStatus = promauto.NewCounterVec(prometheus.CounterOpts{
|
||||
Name: "src_gitserver_maintenance_status",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user