graceland-metrics-graphite/src/main/java/io/graceland/metrics/graphite/HostAwareGraphiteReporterFactory.java
@Override
    public String getPrefix() {
        String pattern = super.getPrefix();

        String prefix = pattern.replace(HOSTNAME_VARIABLE, hostName);
        prefix = prefix.replace("..", ".");

        return prefix;
    }
@Override
    public String getPrefix() {
        String pattern = super.getPrefix();

        String prefix = pattern.replace(HOSTNAME_VARIABLE, hostName);
        prefix = prefix.replace("..", ".");

        return prefix;
    }
@ Override public String getPrefix ( ) { String pattern = super . getPrefix ( ) ; String prefix = pattern . replace ( HOSTNAME_VARIABLE , hostName ) ; prefix = prefix . replace ( ".." , "." ) ; return prefix ; }
Returns the prefix for the graphite reporter, formatting the prefix with the host name as input.
<p/>
An example of this: <pre>prefix = cluster.%s.mycomponent</pre>
<p/>
Will give: <pre>cluster.localhost.mycomponent</pre>
<p/>
Where localhost is the host name.
<p/>
It will also replace double dots {@code ..} with a single dot {@code .}.

@return The prefix, with the host name appended.
Returns the prefix for the graphite reporter formatting the prefix with the host name as input . <p / > An example of this : <pre > prefix = cluster . %s . mycomponent< / pre > <p / > Will give : <pre > cluster . localhost . mycomponent< / pre > <p / > Where localhost is the host name . <p / > It will also replace double dots { @code .. } with a single dot { @code . } .