dandysi / laravel-openswoole-stats
一个Laravel包,用于将Open Swoole指标暴露给Prometheus等爬取服务
v1.0.2
2024-02-03 22:55 UTC
Requires
- php: ^8.1
- ext-openswoole: >=22.0
- illuminate/console: ^10.37
- illuminate/support: ^10.37
- openswoole/core: ^22.0.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.42
- orchestra/testbench: ^8.18
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2024-09-04 00:22:51 UTC
README
如果你正在使用Laravel Octane,此包允许你将Open Swoole统计信息暴露给Prometheus等爬取服务。安装后,你可以在应用的/openswoole-stats
端点访问这些指标。
安装
通过composer安装此包
composer require dandysi/laravel-openswoole-stats
配置
php artisan vendor:publish --provider="Dandysi\Laravel\OpenSwooleStats\OpenSwooleStatsServiceProvider"
通过修改config/openswoole-stats.php
中的值来配置此包。
许可
开源软件,使用MIT许可。