fix(metrics): larger range for worker_state_duration

This commit is contained in:
Gregor Kleen 2020-09-23 19:49:46 +02:00
parent 8388d27aa4
commit 34a52653d7

View File

@ -79,7 +79,7 @@ httpRequestLatency :: Vector Label3 Histogram
httpRequestLatency = unsafeRegister . vector ("handler", "method", "status") $ histogram info buckets
where info = Info "http_request_duration_seconds"
"HTTP request latency"
buckets = histogramBuckets 50e-6 5000
buckets = histogramBuckets 50e-6 500
data ReadySince = MkReadySince
@ -96,7 +96,7 @@ jobWorkerStateDuration :: Vector Label4 Histogram
jobWorkerStateDuration = unsafeRegister . vector ("worker", "state", "jobctl", "task") $ histogram info buckets
where info = Info "uni2work_job_worker_state_duration_seconds"
"Duration of time a Uni2work job executor spent in a certain state"
buckets = histogramBuckets 1e-6 500
buckets = histogramBuckets 1e-6 5000
{-# NOINLINE jobWorkerStateTransitions #-}
jobWorkerStateTransitions :: Vector Label4 Counter