Do It Yourself: Programmable Metrics using OpenTelemetry
summary
Builds a Java Spring Boot microservice (repo branch b buzz) and wires OpenTelemetry end-to-end: local agent + OpenTelemetry Collector receiving OTLP, exporter to Prometheus/Grafana locally or CloudWatch for demo. Adds a synchronous long counter that increments per /hello request and an asynchronous gauge callback that samples JVM heap; metric export interval is lowered to 1s for the demo. The metrics and traces appear in the backend (plots and CloudWatch logs), proving the setup works.
AI-written summary · about
chapters (11)
- 0:00Start
- 6:24Manual Instrumentation
- 13:12Metric Api
- 17:13Synchronous and Asynchronous Metrics
- 18:15Long Counter
- 19:12Create a Callback
- 25:54Metric Export Interval
- 27:04Recap
- 29:22Collector
- 36:35What Happens if the Collector Goes Down
- 37:36Create a Asynchronous Matrix
related talks
49mOpenTelemetry for Java Developers
50mBootiful OpenTelemetry
48mState of the Java Metrics Libraries
47mUsing metric and traces to diagnose our cloud-native applications
47mSpring Boot Observability in Practice: Actuator, Micrometer & OpenTelemetry
35mOpenTelemetry for Busy People
53mOpenTelemetry Metrics: observability’s holy grail
55mDemystifying Observability for Spring Applications
