Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Service for probing endpoints and generating a normalized health check

Notifications You must be signed in to change notification settings

DIPSAS/HealthCheckNormalizer

Repository files navigation

Health Check Normalizer

This code fetches health checks for each endpoint related to the Testlab Environments and returns a normalized data set for each endpoint for use in e.g. dashboards.

This service runs within a Docker container, and needs to be built by exeucting the following:

$ docker-compose build

When the image are built, start the container:

$ docker-compose up -d

Prerequisits

Docker and docker-compose must be working on the host.

Configuration

The configuration file contains a section for default values and specific configurations for each endpoint.

The syntax to use for a endpoint node which have only default values, looks like this:

endpoints:
 hostname.domain.no:

If a specific configuration for the endpoints instead is preferred, the following could be applied instead:

endpoints:
 hostname.domain.no:
 port: 1234
 request_uri: /api/endpointToGet
 proto: https
 method: get

The method parameter are at the moment only limited to GET requests, but will if needed be extended to support other methods such as POST requests.

How does this work?

The Docker container runs the start.sh script with the given configuration file.

The given environments are defined within the configuration file.

The start.sh script iterates through each environment and initiates the main.py against a given environment.

The main.py script iterates through each node host and retrieves all endpoints for a given environment.

Then each endpoint are probed against the given rules and a normalized JSON health format are outputted.

The JSON output standard are based on the json_exporter standard, which means the generated normalized health checks can be implemented in Grafana by using Prometheus and json_exporter.

About

Service for probing endpoints and generating a normalized health check

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /