Skip to content

[WHIT-3439] Remove unused Whitehall healthcheck endpoints#11477

Merged
TonyGDS merged 1 commit into
mainfrom
WHIT-3439-remove-unused-healthcheck-endpoints
May 20, 2026
Merged

[WHIT-3439] Remove unused Whitehall healthcheck endpoints#11477
TonyGDS merged 1 commit into
mainfrom
WHIT-3439-remove-unused-healthcheck-endpoints

Conversation

@TonyGDS
Copy link
Copy Markdown
Contributor

@TonyGDS TonyGDS commented May 20, 2026

Summary

Removes two orphaned HTTP healthcheck endpoints from Whitehall:

  • GET /healthcheck/overdue
  • GET /healthcheck/unenqueued_scheduled_editions

These were originally consumed by Icinga and have been superseded by the Prometheus gauges whitehall_scheduled_publishing_overdue and whitehall_unenqueued_scheduled_publications, populated by lib/collectors/scheduled_publishing_collector.rb. PagerDuty now alerts off those gauges via the severity: page Alertmanager match.

The Kubernetes liveness/readiness probes (GET /healthcheck/live, GET /healthcheck/ready) are unchanged.

External access to /healthcheck/* was already blocked at the nginx layer in alphagov/govuk-helm-charts#4278 and #4280, and Logit data showed no legitimate caller was using these endpoints.

Jira

Test plan

  • rails routes | grep healthcheck shows only /healthcheck/live and /healthcheck/ready

…led_editions endpoints

These were consumed by Icinga and have been superseded by the Prometheus
gauges whitehall_scheduled_publishing_overdue and
whitehall_unenqueued_scheduled_publications, populated by
lib/collectors/scheduled_publishing_collector.rb.
Copy link
Copy Markdown
Contributor

@ChrisBAshton ChrisBAshton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work ⭐

@TonyGDS TonyGDS merged commit c2336b8 into main May 20, 2026
26 checks passed
@TonyGDS TonyGDS deleted the WHIT-3439-remove-unused-healthcheck-endpoints branch May 20, 2026 13:46
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.

2 participants