Class MapperConfig
- java.lang.Object
-
- io.prometheus.client.dropwizard.samplebuilder.MapperConfig
-
public class MapperConfig extends Object
POJO containing info on how to map a graphite metric to a prometheus one. Example mapping in yaml format:match: test.dispatcher.*.*.* name: dispatcher_events_total labels: action: ${1} outcome: ${2}_out processor: ${0} status: ${1}_${2}
Dropwizard metrics that match the "match" pattern will be further processed to have a new name and new labels based on this config.
-
-
Constructor Summary
Constructors Constructor Description MapperConfig()MapperConfig(String match, String name, Map<String,String> labels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Map<String,String>getLabels()StringgetMatch()StringgetName()inthashCode()voidsetLabels(Map<String,String> labels)voidsetMatch(String match)voidsetName(String name)StringtoString()
-
-
-
Constructor Detail
-
MapperConfig
public MapperConfig()
-
-