Skip to content

Match a Graphite metric with only one level and add a prefix #461

Description

@nkafr

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions