util.go
func MetricID(name string, tags []string) string {
	if len(tags) == 0 {
		return name
	}
	sort.Strings(tags)
	return name + "|" + strings.Join(tags, ",")
}
func MetricID(name string, tags []string) string {
	if len(tags) == 0 {
		return name
	}
	sort.Strings(tags)
	return name + "|" + strings.Join(tags, ",")
}
func MetricID ( name string , tags [ ] string ) string { if len ( tags ) == 0 { return name } sort . Strings ( tags ) return name + " " + strings . Join ( tags , " " ) }
// MetricID takes a name and tags and generates a consistent
// metric identifier
MetricID takes a name and tags and generates a consistent metric identifier