laravel / octane

Supercharge your Laravel application's performance.
https://laravel.com/docs/octane
MIT License
3.74k stars 291 forks source link

Monitor octane worker status #929

Closed sts-ryan-holton closed 1 month ago

sts-ryan-holton commented 1 month ago

Hi 👋

I'd like to suggest a new feature.

I'd like a way of being able to show the status of workers that Octane creates. octane:status just tells me a little about the overall status of Octane, but I'd like to know the status as to how many workers have been created with what status.

Cluster2a commented 1 month ago

That is a good idea. For projects running on php-fpm we use https://github.com/hipages/php-fpm_exporter to export the metrics to prometheus and scale by the amount of free workers.

We could use the information from this command to scale by worker resources.

VincentBean commented 1 month ago

We've done this by extending spatie/laravel-prometheus and hooking into the events that Octane dispatches.

driesvints commented 1 month ago

We'd recommend a PR for any feature you want to add. Thanks