#Metrics
#Monitoring Uniconfig performance
Micrometer Metrics is the framework of choice to monitor performance.
#Registry naming
All the metrics are currently stored in the global registry. It can be accessed like so:
#Metric types
All the available metric types can be seen in the documentation.
#Naming convention
There are various best practice articles on how to name metrics but one thing is common: It should be clear what is measured.
#Adding new metrics
#Adding a Counter
Obtain a Counter and then increment all the method calls you want to measure.
#Adding a Gauge
Here we create a Gauge that returns Integer value, access is synchronized in this case to avoid race conditions.
#Reporters
Metrics are available at /actuator/prometheus endpoint.