spring-boot-observability

Implement Actuator endpoints, Micrometer metrics, and OpenTelemetry tracing in Spring Boot 4 services.

21|4|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/joaquimscosta/arkhe-claude-plugins --skill spring-boot-observability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spring-boot-observability
Source: https://github.com/joaquimscosta/arkhe-claude-plugins/tree/main/spring-boot/skills/spring-boot-observability
Command: npx skills add https://github.com/joaquimscosta/arkhe-claude-plugins --skill spring-boot-observability

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill covers production observability with Actuator, Micrometer metrics, and OpenTelemetry tracing for Spring Boot 4 apps.

Core Features & Use Cases

  • Actuator & Metrics: health endpoints, metrics, and Kubernetes probes
  • Custom Metrics: Timer, Counter, Gauge patterns
  • OpenTelemetry: span customization and propagation
  • Production Readiness: secure endpoints and graceful shutdown

Quick Start

Enable actuator, configure OTLP exporter, and add a custom metric.

Frequently Asked Questions about spring-boot-observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement observability in Spring Boot applications with metrics and tracing?

Observability in Spring Boot combines Actuator endpoints for health checks, Micrometer for custom metrics (Counter, Timer, Gauge), and OpenTelemetry for distributed tracing. Enable the actuator dependency, configure OTLP export, and add custom metrics to capture application behavior at scale across services.

What's the difference between liveness and readiness probes in Kubernetes Spring Boot deployments?

Liveness probes restart unhealthy containers; readiness probes route traffic only to ready instances. Spring Boot Actuator health groups separate these concerns, letting Kubernetes make independent decisions about container lifecycle and traffic distribution for production stability.

How do I configure OpenTelemetry tracing and span propagation across microservices?

Configure OTLP exporters in Spring Boot to send spans to a tracing backend, then use context propagation standards (W3C Trace Context) to correlate requests across services. OpenTelemetry span customization lets you capture domain-specific events and dependencies in distributed traces.

Can I expose Actuator endpoints securely in production without compromising Kubernetes health checks?

Yes. Actuator supports role-based endpoint exposure and path customization. Separate public health endpoints for probes from sensitive metrics endpoints, use low-cardinality metric tagging to prevent cardinality explosion, and configure HTTPS and authentication for production-grade security.

What metrics should I track in a production Spring Boot service?

Track built-in JVM metrics (memory, GC, threads), HTTP request metrics (latency, throughput), and custom application metrics (Counter for events, Timer for operations, Gauge for state). Use low-cardinality tags (service name, environment) to keep metrics queryable and cost-effective.

How do I handle graceful shutdown with observability in Spring Boot?

Configure Spring Boot graceful shutdown to drain in-flight requests while exiting health check groups mark the service unavailable. Emit final metrics and traces before termination to ensure observability data captures the shutdown sequence without gaps in production monitoring.