Skip to content

alert-mgmt-05: GET /health endpoint#4

Open
sradco wants to merge 1 commit intoalert-mgmt-04-mgmt-foundationfrom
alert-mgmt-05-get-health
Open

alert-mgmt-05: GET /health endpoint#4
sradco wants to merge 1 commit intoalert-mgmt-04-mgmt-foundationfrom
alert-mgmt-05-get-health

Conversation

@sradco
Copy link
Owner

@sradco sradco commented Feb 25, 2026

Alert Management API — Part 5/14: GET /health endpoint

Summary

  • Management API router (internal/managementrouter) with shared error handling utilities
  • GET /api/v1/alerting/health endpoint returning platform and user-workload alerting stack health
  • GetAlertingHealth management function bridging the router to the k8s alerting health layer
  • Management client factory (client_factory.go) wiring k8s client into the management layer
  • Feature-flagged server wiring: replaces the stub endpoint from PR01 with the real management router
  • Query filter helpers for common HTTP parameter parsing
  • Makefile update for management router test target

Dependencies

This PR is part of a stacked series. Please review in order.

  1. alert-mgmt-01: k8s foundation + health stub skeleton
  2. Pending — alert listing, query & filter primitives
  3. Pending — relabel config, alerting health & AlertingRule CRD
  4. Pending — management foundation
  5. → This PR — GET /health endpoint
    6–14. Pending — remaining endpoints, docs, tests

@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from ba5d29e to ce39e4c Compare February 25, 2026 22:35
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from c0d1ffd to afaf00c Compare February 25, 2026 22:35
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from ce39e4c to ab2a9b9 Compare February 25, 2026 22:52
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from afaf00c to 6b58b59 Compare February 25, 2026 22:52
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from ab2a9b9 to b4e36a6 Compare February 25, 2026 23:16
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from 6b58b59 to ec72a13 Compare February 25, 2026 23:16
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from b4e36a6 to fa0235d Compare February 25, 2026 23:57
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from ec72a13 to 719410e Compare February 25, 2026 23:57
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from fa0235d to 6b9228e Compare February 26, 2026 14:41
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from 719410e to 643f009 Compare February 26, 2026 14:41
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from 6b9228e to d505cc2 Compare February 26, 2026 14:46
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from 643f009 to 8074317 Compare February 26, 2026 14:46
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from d505cc2 to a714836 Compare February 27, 2026 11:44
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from 8074317 to ab6d08c Compare February 27, 2026 11:44
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from a714836 to fff2b6b Compare February 27, 2026 11:57
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from ab6d08c to a137d01 Compare February 27, 2026 11:57
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from fff2b6b to d5e9ffc Compare February 27, 2026 11:59
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from a137d01 to 016c5f4 Compare February 27, 2026 11:59
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from d5e9ffc to 7f9aa14 Compare February 27, 2026 12:09
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from 016c5f4 to 8833735 Compare February 27, 2026 12:09
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from 7f9aa14 to 77ece9a Compare February 27, 2026 13:12
@sradco sradco force-pushed the alert-mgmt-05-get-health branch 2 times, most recently from e0aa1ff to d92c05e Compare March 2, 2026 09:26
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from 77ece9a to 8d28658 Compare March 2, 2026 09:26
Add the HTTP management router layer and first endpoint:
- Client interface with GetAlertingHealth method
- Client factory for management client creation
- GetAlertingHealth implementation: alerting health retrieval
- Router skeleton with error handling, query filter helpers
- GET /api/v1/alerting/health endpoint (replaces the PR01 stub)
- Server wiring: management client initialization behind
  alert-management-api feature flag
- Makefile updates: internal/ included in lint/test, e2e target added
- Full test coverage with Ginkgo test suite

Signed-off-by: Shirly Radco <sradco@redhat.com>
Signed-off-by: João Vilaça <jvilaca@redhat.com>
Signed-off-by: Aviv Litman <alitman@redhat.com>
Co-authored-by: AI Assistant <noreply@cursor.com>
@sradco sradco force-pushed the alert-mgmt-04-mgmt-foundation branch from 8d28658 to 255a057 Compare March 2, 2026 10:04
@sradco sradco force-pushed the alert-mgmt-05-get-health branch from d92c05e to d700454 Compare March 2, 2026 10:04
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