If you are using Laravel Octane, this package allows you to expose your Open Swoole stats to a scraping service like Prometheus. Once installed you can access the metrics at the /openswoole-stats
endpoint of your app.
Install the package via composer:
composer require dandysi/laravel-openswoole-stats
php artisan vendor:publish --provider="Dandysi\Laravel\OpenSwooleStats\OpenSwooleStatsServiceProvider"
Configure this package by changing the values in config/openswoole-stats.php
.
Open-sourced software licensed under the MIT license.