Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies {
implementation(mn.micronaut.openapi)
implementation(mn.validation)
implementation(mn.swagger.core)
implementation(mn.micronaut.management)
implementation(mn.micronaut.micrometer.core)
implementation(mn.micronaut.micrometer.registry.prometheus)
// External Dependencies
Expand Down
18 changes: 18 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,24 @@ micronaut:
swagger-ui:
paths: classpath:META-INF/swagger/views/swagger-ui
mapping: /swagger-ui/**
metrics:
enabled: true
export:
prometheus:
enabled: true
step: PT1M
descriptions: true

# Management endpoints — /health for liveness/readiness probes,
# /prometheus for metrics scraping (both non-sensitive for internal scraping).
endpoints:
health:
enabled: true
sensitive: false
details-visible: ANONYMOUS
prometheus:
enabled: true
sensitive: false

# OpenTelemetry — tracing is disabled unless OTEL_TRACES_EXPORTER=otlp is set
# (do this in the Docker/prod container). Metrics stay on Prometheus/Micrometer.
Expand Down
Loading