I am developing an application which is based on microservices architecture with Spring Boot. Beside my application jar I have a dashboard application jar too. I want to show some metrics at both my base application and dashboard. I have some other services too. So, I have decided to make an individual micro service for metrics.I know that I can have 2 approaches. One of them is PubSub and other one is Queue as like described here: simple metrics collector.My question is that: I have 2 kinds of metrics. Some of them needs to be real time (memory consumption, nodes are down etc.) and some of them are not (how many api calls are done, etc). At first, I will not have 4 servers so I don't need a complex system and get congestion. Which approach is suitable for my needs?
Metrics Collector at Microservices
microservices;message queue;metrics;pubsub;analytics