Complete Metrics CDI example