Metrics: Micrometer, Prometheus and Grafana
Learn Metrics: Micrometer, Prometheus and Grafana (Phase 10 · Observability and Monitoring (Essential), Microservices) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Micrometer and Actuator metrics • Micrometer is the vendor-neutral metrics facade (like SLF4J for metrics) built into Spring Boot Actuator. It exposes JVM, HTTP server/client, datasource pool (Hikari), Kafka, cache, Resilience4j and custom metrics, and exports to Prometheus , Datadog, New Relic, CloudWatch, etc. Add micrometer-registry-prometheus and expose /actuator/prometheus . • Meter types: Counter (only goes up: requests, errors), Gauge (current value: queue size, active sessions), Timer (duration + count + percentiles: latency), DistributionSummary (sizes), LongTaskTimer . Use tags...