You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm collecting runTime and waitTime metrics for my pool with otel:
constmetrics={workersQueueWaitTime: meter.createObservableGauge('content_workers_queue_wait_time'),workersQueueLatency: meter.createObservableGauge('content_workers_queue_latency')}asconst// later onconstpercentiles=['p50','p99','p99_9']asconstmetrics.workersQueueWaitTime.addCallback((result)=>{for(constpercentileofpercentiles){result.observe(this.workers.waitTime[percentile],{ percentile })}})metrics.workersQueueLatency.addCallback((result)=>{for(constpercentileofpercentiles){result.observe(this.workers.runTime[percentile],{ percentile })}})
However over the lifetime of the pool, those histogram are never reset so the p99 and p99_9 take a lot of time to get back to a current value since it stores old one. I would like to be able to call this.workers.runTime.reset() to clear the buckets after each value collection.
If that's something you are okay with, i can make a PR for it
The text was updated successfully, but these errors were encountered:
This issue has been marked as stale because it has been opened 30 days without activity. Remove stale label or comment or this will be closed in 5 days.
I'm collecting
runTime
andwaitTime
metrics for my pool with otel:However over the lifetime of the pool, those histogram are never reset so the p99 and p99_9 take a lot of time to get back to a current value since it stores old one. I would like to be able to call
this.workers.runTime.reset()
to clear the buckets after each value collection.If that's something you are okay with, i can make a PR for it
The text was updated successfully, but these errors were encountered: