Slides of my presentation at EclipseCon Europe about Eclipse MicroProfile Metrics and Monitoring aspects.
A video recording of the talk is available at https://youtu.be/Ep4Bkx0_MAg
What's New in Teams Calling, Meetings and Devices March 2024
The Monitoring and Metic aspects of Eclipse MicroProfile
1. The Monitoring and Metric
aspects of
Heiko W. Rupp
<hrupp@redhat.com>
@pilhuhn
2.
3. About me
• I work at Red Hat
• I live in Stuttgart
• Spec lead MicroProfile Metrics
• @pilhuhn on social media
4. About MicroProfile
An open forum
to
optimize Enterprise Java
for a
microservices architecture
by
innovating across multiple implementations
and
collaborating on common areas of interest with a goal of standardisation.
8. Health Checks
• „Is my system healthy“?
• We did that manually
• Systems like Kubernetes need an M2M interface
• Check via http call
• 200-399 is healthy
9. Health Checks
@Health
public class HealthDemo implements HealthCheck {
@Override
public HealthCheckResponse call() {
HealthCheckResponseBuilder alive = HealthCheckResponse.named("alive");
// Other info
alive.withData("hello","world");
return alive.up().build();
}
}
12. Metrics
• Telemetry data
• Billing / Capacity planning / graphing
• Scopes
• Base: supported by every vendor, required
• Vendor: vendor specific, optional, non portable
• Application: optional, application-specific
13. Metrics
• REST api for monitoring agents
• text/plain for Prometheus format
• application/json for a Json format
• GET for data
• OPTIONS for metadata
19. OpenTracing
• Classical Architecture: Monolith
• One can attach a Profiler to see what is happening
• Microservices
• Application consists of many Microservices
• A profiler on one service does not help