gracefully handle case where there are zero metrics in the result.
process type and unit on ingest for all types of metrics.