templatemonster/healthchecks

HTTP and console health checks for microservices

1.0.1 2023-12-19 14:09 UTC

This package is auto-updated.

Last update: 2024-04-19 14:53:08 UTC


README

Module have several built in health checks like db and cache

Add health check in configuration by populating checks array property

for example

'modules'=>[
        .........
        'healthchecks' => [
            'class' => 'templatemonster\healthchecks\Module',
            'checks'=> [
                'db',
                'cache',
                'mongodb',
                'rabbitmq' = > 'queue',
                'elasticsearch',
                'urls' => [
                    'name1' => 'http://ukr1',
                    'name2' => 'http://ukr2',
                ]
                ,
                'custom' => function() {
                    return (2 + 2 == 4);
                };
            ],
        ],
        .........