It would be useful for us (and maybe others?) if the method interface included the original Dropwizard metric, i.e. instance of com.codahale.metrics.Metric.
Why
Why it'd be useful for us:
we have the metrics in Dropwizard with custom metadata there (passing additional key-values) on top of the standard Counter, Gauge interface there
and current DropwizardExports strips them:
new ArrayList<String>(), new ArrayList<String>()
while we would like to translate them into List<String> additionalLabelNames, List<String> additionalLabelValues in Prometheus
and we wouldn't need to use write our own DropwizardExports, but just plug in custom SampleBuilder
What
The current
SampleBuilder
interface's only method has the following signature:It would be useful for us (and maybe others?) if the method interface included the original Dropwizard metric, i.e. instance of
com.codahale.metrics.Metric
.Why
Why it'd be useful for us:
Counter
,Gauge
interface thereDropwizardExports
strips them:List<String> additionalLabelNames, List<String> additionalLabelValues
in PrometheusDropwizardExports
, but just plug in customSampleBuilder