src/lib/metrics.js
// A time series is identified by a name and a set of named tags.
A time series is identified by a name and a set of named tags.
A time series is identified by a name and a set of named tags .
function seriesFor(metric) {
  return metric
    .get('tags', Map())
    .set('__name', metric.get('name'))
    .filter(v => v !== undefined);
}
function seriesFor ( metric ) { return metric . get ( 'tags' , Map ( ) ) . set ( '__name' , metric . get ( 'name' ) ) . filter ( v => v !== undefined ) ; }
A time series is identified by a name and a set of named tags.
A time series is identified by a name and a set of named tags .