Add support for device-level metrics.