It seems to be impossible right now to register multiple Metrics with the same MetricName but a different set of static labels (this would result in MetricCollision being thrown). Is this intentional?
I guess one could, in theory, work around this using addLabel and treat the static labels as if they were dynamic, but this has a performance impact, and is just complicated, especially when the labels themselves are generated at initialization from some other source, and the number of them is unknown.
It seems to be impossible right now to
register
multipleMetric
s with the sameMetricName
but a different set of static labels (this would result inMetricCollision
being thrown). Is this intentional?I guess one could, in theory, work around this using
addLabel
and treat the static labels as if they were dynamic, but this has a performance impact, and is just complicated, especially when the labels themselves are generated at initialization from some other source, and the number of them is unknown.Looking for some advice here 😃