When using DropwizardExports, if we want to add a base prefix name to a metric we can do this:
MapperConfig depth3 = new MapperConfig();
depth3.setMatch("*.*.*"); //mathches depth1.depth2.depth3
depth3.setName("basename" + "_${0}" + "_${1}" + "_${2}");
However, a metric with a single depth(no dot in its name) cannot be matched (because the matcher expects at least one dot), and thus in this case we cannot add a custom base prefix. Is there a way to achieve this functionality?
Thanks in advance,
Nick