Karthik TU :
I have a spring boot app with some REST APIs. I would like to collect usage metrics on these APIs. Metrics would be like how many times did a user hit the service in a time period. The user id is available in request header. Is there any framework that will help me with this reducing the boiler plate? Will splunk help?
Alex Andrade :
In our e-commerce project we use the DropWizard metrics:
https://github.com/dropwizard/metrics
https://mvnrepository.com/artifact/io.dropwizard.metrics/metrics-core
https://mvnrepository.com/artifact/io.dropwizard.metrics/metrics-healthchecks
With dropwizard you have timers, counters, meters, gauges, histograms, etc...
Getting started: https://metrics.dropwizard.io/3.1.0/getting-started/