Skip to content

feat: enable /health and /prometheus management endpoints#141

Merged
TheMeinerLP merged 2 commits into
mainfrom
feat/metrics-health-endpoints
Jun 22, 2026
Merged

feat: enable /health and /prometheus management endpoints#141
TheMeinerLP merged 2 commits into
mainfrom
feat/metrics-health-endpoints

Conversation

@TheMeinerLP

Copy link
Copy Markdown
Contributor

Why

The observability work (JSON logging + OpenTelemetry) was merged and released as 2.2.0, but the health/metrics management endpoints were not part of that merge. This brings them in against current main. Mirrors Otis.

What

  • build.gradle.kts: add micronaut-management (required to expose /health and /prometheus; it was missing).
  • application.yml: enable the Micrometer Prometheus export and expose /health (details visible) and /prometheus, both sensitive: false for internal scraping.

Endpoints

  • GET /health — liveness/readiness probes
  • GET /prometheus — metrics scrape target

Verification

  • ./gradlew compileJava
  • Cherry-picked cleanly from the original observability branch onto current main.

Note: a pre-existing schema-generation error (SoundEventEntity.soundData → unknown data type OBJECT) currently blocks full app startup in the dev run path; it is unrelated to this change.

The management module is required to expose the /health and /prometheus
endpoints; it was missing from the dependency list.
Expose /health (liveness/readiness, details visible) and /prometheus
(metrics scraping), both non-sensitive for internal scraping, and enable
the Micrometer Prometheus export.
@github-actions

Copy link
Copy Markdown
Contributor

Test results

 27 files   27 suites   3s ⏱️
 53 tests  41 ✅ 12 💤 0 ❌
159 runs  123 ✅ 36 💤 0 ❌

Results for commit c5405a0.

@TheMeinerLP TheMeinerLP merged commit dc87f28 into main Jun 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant