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

Feat/health check #16

Merged
merged 10 commits into from
Nov 27, 2023
Merged

Feat/health check #16

merged 10 commits into from
Nov 27, 2023

Conversation

y-eight
Copy link
Contributor

@y-eight y-eight commented Nov 24, 2023

Motivation

Implementing the health check.
Currently, the check performs get requests to all configured targets and safes the date to the database.
The check registers an API endpoint to expose the data.
The check runs periodically in a fixed time of one minute for the MVP.
Each request follows a retry pattern with exp backoff, starting by 1 ms. The retry count is set to 3.

The API listening address has been added to the startup config.

Open API spec:
image

API output:
image

Internal health endpoint:
image

Changes

For additional information look at the commits.

Tests done

  • unit tests

@y-eight y-eight added the feature Introduces a new feature label Nov 24, 2023
@y-eight y-eight merged commit 339da0c into main Nov 27, 2023
1 check passed
@lvlcn-t lvlcn-t deleted the feat/health-check branch November 29, 2023 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Introduces a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant