How to configure spring-boot Micrometer @Timed annotation to write logs into some log file instead of endpoint?
Asked
Active
Viewed 1,446 times
2
-
are you looking to write all metrics to logs or only those created via the @Timed annotation? – Michael McFadyen Oct 17 '20 at 16:07
-
all metrics to logs – Taras Oct 18 '20 at 11:57
1 Answers
1
To write all metrics to logs you can use the LoggingMeterRegistry
. There is no autoconfiguration for this in spring boot so if you are using spring boot you will need to configure the required beans manually.

Michael McFadyen
- 2,675
- 11
- 25