Class CustomLabelMapper
java.lang.Object
io.prometheus.metrics.instrumentation.dropwizard5.labels.CustomLabelMapper
A LabelMapper to allow Dropwizard metrics to be translated to Prometheus metrics including custom
labels and names. Prometheus metric name and labels are extracted from the Dropwizard name based
on the provided list of
MapperConfigs. The FIRST matching config will be used.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.prometheus.metrics.model.snapshots.LabelsgetLabels(String dropwizardName, List<String> additionalLabelNames, List<String> additionalLabelValues) protected io.prometheus.metrics.instrumentation.dropwizard5.labels.CustomLabelMapper.NameAndLabelsgetNameAndLabels(MapperConfig config, Map<String, String> parameters)
-
Constructor Details
-
CustomLabelMapper
-
-
Method Details
-
getName
-
getLabels
-
getNameAndLabels
protected io.prometheus.metrics.instrumentation.dropwizard5.labels.CustomLabelMapper.NameAndLabels getNameAndLabels(MapperConfig config, Map<String, String> parameters)
-