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
type Gauge interface from pkg github.com/go-kit/kit/metrics has no field or method Add
hi guys i need help. i want to have reference on the current gauge using native prometheus (i don't want to implement it myself). since only method available on the interface in metrics package is Set i don't have any reference to the current gauge number.
is strange that pkg metrics/prometheus has Add method and pkg metrics don't?
is there an opinionated way to do this and am i missing something?
is it a generalization for other collectors aside from prometheus?
what's the correct way to Add in gauge (for prometheus)?
The text was updated successfully, but these errors were encountered:
It was my original opinions that Gauges should only support the Set method. But I've discovered that many important uses of Gauges are modeled by +N/-N semantics. For example, consider inflight requests. Right now, you'd have to do
type Gauge interface from pkg
github.com/go-kit/kit/metrics
has no field or method Addhi guys i need help. i want to have reference on the current gauge using native prometheus (i don't want to implement it myself). since only method available on the interface in metrics package is
Set
i don't have any reference to the current gauge number.is strange that pkg metrics/prometheus has Add method and pkg metrics don't?
is there an opinionated way to do this and am i missing something?
is it a generalization for other collectors aside from prometheus?
what's the correct way to Add in gauge (for prometheus)?
The text was updated successfully, but these errors were encountered: