HomeDevCentral

Configure HTTP health checks monitoring for Docker engines

Description

Configure HTTP health checks monitoring for Docker engines

Summary:
Provide a platform-checks configuration file for HTTP health checks.

The list is extracted from the containers in pillar matching two conditions:

  1. The service has one or more container running on that engine
  2. The service has a health check URL set in docker_containers_monitoring

This unit is responsible to provide platform-cheks and its configuration,
not to actually run the tests or provide a runner.

Ref T1704

Generate YAML configuration files

We need to aggregate a checks dictionary from several sources,
here for example from paas_docker.get_health_checks(), but we
plan in following changes to add more monitoring checks sources.

The convert.to_yaml_dictionary() method allow to build arbitrary
dictionaries from several sources and allow to do this aggregation.

It uses the salt.serializers.yaml package, as it allows to represent
objects from the salt.utils.odict.OrderedDict class, with an already
configured dumper for pyyaml.

Test Plan: Run check_http_200

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1704

Differential Revision: https://devcentral.nasqueron.org/D2600

Details

Provenance
derecksonAuthored on Mar 19 2022, 14:45
derecksonPushed on Mar 19 2022, 17:21
Reviewer
dereckson
Differential Revision
D2600: Configure HTTP health checks monitoring for Docker engines
Parents
rOPS6deb32e01378: Set kernel state for router
Branches
Unknown
Tags
Unknown
Tasks
T1704: Monitor HTTP back-end from Docker containers