Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new /health/info endpoint #2225

Merged
merged 3 commits into from
Oct 25, 2022
Merged

Add new /health/info endpoint #2225

merged 3 commits into from
Oct 25, 2022

Conversation

Cruikshanks
Copy link
Member

DEFRA/water-abstraction-team#54

This supports the new service-status page we're building in the water-abstraction-system repo.

We want to be able to show both the version and commit hash for each service on that page. The existing /status page does include the package.json version. But that endpoint is also used for the AWS load balancer health check so is heavily hit. We don't want to make it do more work getting the commit hash.

Instead, we add a new /health/ path and a new /info endpoint to return both the version and commit hash.

DEFRA/water-abstraction-team#54

This is in support of the new service-status page we're building in the [water-abstraction-system repo](https://github.com/DEFRA/water-abstraction-system).

We want to be able to show both the version and commit hash for each service in that page. The existing `/status` page does include the `package.json` version. But that endpoint is also used for the AWS load balancer health check so is heavily hit. We don't want to make it do more work and get the commit hash as well.

Instead, we add a new `/health/` path and a new `/info` endpoint to return both the version and commit hash.
@Cruikshanks Cruikshanks added the enhancement New feature or request label Oct 25, 2022
@Cruikshanks Cruikshanks self-assigned this Oct 25, 2022
We want the endpoint available in both internal and external apps. So, we add the functionality to the shared folder.
@Cruikshanks Cruikshanks marked this pull request as ready for review October 25, 2022 13:28
@Cruikshanks Cruikshanks requested review from Jozzey and StuAA78 October 25, 2022 13:28
Copy link
Contributor

@Jozzey Jozzey left a comment

Choose a reason for hiding this comment

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

👍🏼

@Cruikshanks Cruikshanks merged commit 70e5436 into main Oct 25, 2022
@Cruikshanks Cruikshanks deleted the create-health-info-endpoint branch October 25, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants