Skip to content

Plasma-Platform/Plasma-Microservice-Health-Check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

microservice-health-checks module

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);
                };
            ],
        ],
        .........