code: public static final String name(SimpleGroupPath group, MetricName metric) {
          return name(Stream.concat(group.getPath().stream(), metric.getPath().stream())
                  .collect(Collectors.joining(".")));
      }
docs: Convert a group+metric to a wavefront name.
  
  Concatenates the paths of a Group and a Metric, separating each path
  element with a dot ('.').
  
  Example: - group path: [ 'example', 'group', 'path' ] - and metric: [
  'metric', 'name' ] are concatenated into
  "example.group.path.metric.name".
  
  The concatenated name is cleaned to only contain characters allowed by
  wavefront. (See the WavefrontString.name(String) function.)