/micronaut-standards:observabilityfrom Micronaut Standards
Metrics and tracing infrastructure for a OneLiteFeather Micronaut REST API — Micrometer with Prometheus, OpenTelemetry tracing for HTTP and JDBC, and Kubernetes service discovery (inert outside a cluster). Use this whenever wiring up metrics/tracing dependencies or the /metrics endpoint in a Micronaut backend, or deciding whether a dependency like the Kubernetes discovery client is safe to always include. For log-usage conventions (what to log, structured JSON logging, trace/log correlation), see the logging skill instead — this skill covers the metrics/tracing infrastructure only.
Ships in Micronaut Standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every OneLiteFeather Micronaut backend ships the same baseline observability stack, regardless of whether the deployment target is Kubernetes or not — the dependencies are inert (do nothing, cost nothing at runtime) when their activation condition isn't met, so there is no cost to including them everywhere and no per-project decision to make.
dependencies {
implementation(mn.micronaut.management)
implementation(mn.micronaut.micrometer.core)
implementation(mn.micronaut.micrometer.registry.prometheus)
}
micronaut-management exposes the /metrics endpoint; the Prometheus registry formats those metrics
for scraping. Enable it in application.yml, keeping it marked sensitive so it stays behind the
security skill's deny-by-default baseline like every other endpoint, rather than carving out an
unauthenticated exception for it:
endpoints:
metrics:
enabled: true
sensitive: true
dependencies {
implementation(mn.micronaut.tracing.opentelemetry.http)
implementation(mn.micronaut.tracing.opentelemetry.jdbc)
implementation(libs.opentelemetry.exporter.otlp)
}
Spans are only actually exported when the OTEL_TRACES_EXPORTER=otlp environment variable is set —
locally, with no exporter configured, these dependencies are present but produce no network traffic and
no overhead beyond in-process span creation. Set OTEL_TRACES_EXPORTER=otlp (plus OTEL_EXPORTER_OTLP_ENDPOINT)
only in the environments (staging, production, Docker) that actually have a collector to receive spans.
The logging skill covers how these trace/span IDs get correlated into log lines via the OpenTelemetry
MDC appender — that correlation glue lives there, not here, since it's a logging-format concern, not a
tracing-infrastructure one.
dependencies {
// Kubernetes service discovery — beans only activate in the k8s environment,
// so this is inert outside it. Needs RBAC (read on services/endpoints) in-cluster.
implementation(mn.micronaut.kubernetes.discovery.client)
}
Include this dependency in every backend's build.gradle.kts, not only ones that are currently deployed
to Kubernetes — the discovery client's beans only activate when the Micronaut kubernetes environment
is detected, so it is a no-op everywhere else. When a backend is deployed to a cluster, the
ServiceAccount running it needs RBAC permission to get/list/watch on services and endpoints
in its namespace, or the discovery client fails at startup instead of silently doing nothing.
logging.dependency-management.What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/configurationOneLiteFeather's convention for typed application configuration in a Micronaut REST API — one @ConfigurationProperties class per functional area in a dedicated config/ package, instead of ad-hoc properties scattered across the application entry point. Use this whenever a Micronaut backend needs a new piece of externalized configuration (a feature flag, an external service URL, a limit/threshold) and you're deciding where the corresponding Java type should live./dependency-managementOneLiteFeather's Gradle/Micronaut dependency-management conventions for REST API backends — the Micronaut Application and AOT plugins, reading the Micronaut version from gradle.properties instead of hardcoding it, the mn.* platform catalog, the private OneLiteFeather Maven repo, and the optional CycloneDX SBOM plugin. Use this whenever setting up or editing a Micronaut backend's build.gradle.kts/settings.gradle.kts. For the general OneLiteFeather Gradle/BOM mechanics that apply beyond Micronaut (private repo credential split, Java toolchain pattern), see minestom-knowledge:gradle/boms instead. For observability, database-migration, Testcontainers, and security dependencies specifically, see the observability, liquibase, testcontainers, and security skills — this skill only lists that those dependencies exist and where to look, not their coordinates; the one exception is structured-logging dependencies (Logstash encoder, OpenTelemetry MDC appender), whose coordinates live directly in this skill since `logging` covers only their usage.npx claudepluginhub onelitefeathernet/onelitefeather-claude-marketplace --plugin micronaut-standardsOther plugins' skills for the same job