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
Hi @deathowl, thanks for replying. I don't think my question is understood quite correctly.
Internally, pc.UpdatePrometheusMetrics() runs an infinite ticker calling UpdatePrometheusMetricsOnce(). What I'm saying is, is there a method to stop the infinite ticker?
I'm trying to collect metrics of my service into prometheus using this rough implementation:
Is there any way to stop
UpdatePrometheusMetrics()
? I don't want to leak an unnecessary goroutine if the endpoint is not even accessible.The text was updated successfully, but these errors were encountered: