dandysi/laravel-openswoole-stats

A laravel package to expose Open Swoole metrics to a scraping service like Prometheus

v2.0.0 2024-12-09 20:39 UTC

This package is auto-updated.

Last update: 2025-03-09 21:11:40 UTC


README

Actions Status

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

Install the package via composer:

composer require dandysi/laravel-openswoole-stats

Config

php artisan vendor:publish --provider="Dandysi\Laravel\OpenSwooleStats\OpenSwooleStatsServiceProvider"

Configure this package by changing the values in config/openswoole-stats.php.

License

Open-sourced software licensed under the MIT license.