prometheus / client_java

Prometheus instrumentation library for JVM applications
http://prometheus.github.io/client_java/
Apache License 2.0
2.17k stars 792 forks source link

Dropwizard - feature request - SampleBuilder to accept the original Dropwizard metrics #656

Open mccartney opened 3 years ago

mccartney commented 3 years ago

What

The current SampleBuilder interface's only method has the following signature:

    Collector.MetricFamilySamples.Sample createSample(String dropwizardName, String nameSuffix, List<String> additionalLabelNames, List<String> additionalLabelValues, double value);

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:

fstab commented 3 years ago

Thanks for the feature request. I will get back to this as soon as the Exemplars feature is done.