Loading…
Loading…
1 карточек
How does Spring Boot collect metrics via Micrometer and where can they be exported?
нажми, чтобы перевернуть
Add micrometer-registry-prometheus and /actuator/prometheus endpoint serves metrics in Prometheus format. Enable via management.metrics.export.prometheus.enabled=true.
MeterRegistry lets you create counters, gauges, and timers for business metrics.
JVM metrics (memory, threads, classes) are collected automatically with Actuator and Micrometer.
Когда да
Monitor apps in production and integrate with Prometheus + Grafana.
Когда нет
Don't export all metrics unfiltered — increases monitoring system load.
Совет на собеседовании
Name Micrometer, Prometheus registry, and an example custom metric via MeterRegistry.
Свайп вправо — знаю, влево — не знаю
