Fixed example how to use aggregator and how to get metric names