Maybe sounds silly - but can you maybe add a toString method? Have been debugging things and it is so much nicer when I see something meaningful rather than org.springframework.xd.analytics.metrics.core.AggregateCount@448e003d ;-)