templatemonster / healthchecks
微服务的HTTP和控制台健康检查
1.0.1
2023-12-19 14:09 UTC
Requires
- php: >=7.4.0
- guzzlehttp/guzzle: ^7.3
- indigerd/yii2-rest: *
- yiisoft/yii2: ^2.0.42
README
模块包含几个内置的健康检查,如数据库和缓存
通过填充检查数组属性来在配置中添加健康检查
例如
'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);
};
],
],
.........