public static Collection<PreaggregatedMetric> convertGauges(String tenant, long timestamp, Collection<Bundle.Gauge> gauges) {
List<PreaggregatedMetric> list = new ArrayList<PreaggregatedMetric>(gauges.size());
for (Bundle.Gauge gauge : gauges) {
Locator locator = Locator.createLocatorFromPathComponents(tenant, gauge.getName().split(NAME_DELIMITER, -1));
Points<SimpleNumber> points = new Points<SimpleNumber>();
points.add(new Points.Point<SimpleNumber>(timestamp, new SimpleNumber(resolveNumber(gauge.getValue()))));
try {
Rollup rollup = GaugeRollup.buildFromRawSamples(points);
PreaggregatedMetric metric = new PreaggregatedMetric(timestamp, locator, DEFAULT_TTL, rollup);
list.add(metric);
} catch (IOException ex) {