public String toGraphiteName ( ) { StringBuilder sb = new StringBuilder ( GraphiteSanitizer . sanitizeGraphiteMetricSegment ( name ) ) ; for ( String value : tags . values ( ) ) { sb . append ( ' ' ) . append ( GraphiteSanitizer . sanitizeGraphiteMetricSegment ( value ) ) ; } return sb . toString ( ) ; }
Converts a metrics 2 . 0 name into a graphite compliant name by appending all tag values to the metric name