clj-commons/metrics-clojure

Ability to retrieve a gauge by name

vincentbernat opened this issue · 3 comments

Hi!

For all other types, it's possible to retrieve the metric by its name. For example (meter reg ["alpha" "beta" "gamma"]) will retrieve the meter if it already exists. There is no such possibility for a gauge. Maybe adding a gauge method for that (which won't allow creation)?

I don't think there's a particular reason for that.

Do you mean we should be able to use gauge-fn to retrieve an existing gauge?

@vincentbernat no, I mean that a function can be missing for no particular reason. Feel free to add it.