diff --git a/src/main/java/org/jmxtrans/agent/StatsDOutputWriter.java b/src/main/java/org/jmxtrans/agent/StatsDOutputWriter.java index 6b3c507..7181545 100644 --- a/src/main/java/org/jmxtrans/agent/StatsDOutputWriter.java +++ b/src/main/java/org/jmxtrans/agent/StatsDOutputWriter.java @@ -71,7 +71,8 @@ protected synchronized void parseTagsAndMetricsNamePrefix(Map se String tagsStr = ConfigurationUtils.getString(settings, SETTINGS_TAGS, ""); tags = Tag.tagsFromCommaSeparatedString(tagsStr, "="); metricNamePrefix = ConfigurationUtils.getString(settings, SETTING_ROOT_PREFIX, getHostName().replaceAll("\\.", "_")); - } else { + } + else { metricNamePrefix = ConfigurationUtils.getString(settings, SETTING_ROOT_PREFIX, getHostName().replaceAll("\\.", "_")); } }