code: func ReplaceRandomConsecutiveNodesWildcard(num int) func(in string) string {
  	return func(in string) string {
  		parts := strings.Split(in, ".")
  		if len(parts) < num {
  			log.Fatalf("metric %q has not enough nodes to replace %d nodes", in, num)
  		}
  		pos := rand.Intn(len(parts) - num + 1)
  		for i := pos; i < pos+num; i++ {
  			parts[pos] = "*"
  		}
  		return strings.Join(parts, ".")
  	}
  }
docs: // ReplaceRandomConsecutiveNodesWildcard returns a function that will replace num consecutive random nodes with wildcards
  // the implementation is rather naive and can be optimized