top | item 44190235

(no title)

127dot1 | 9 months ago

Is it compatible with nginx+php-fpm stack?

discuss

order

rthnbgrredf|9 months ago

Yes, but php-fpm already has this kind of information for you: https://www.inanzzz.com/index.php/post/6cn7/formatting-php-f...

You can print the time, cpu and memory usage per request and build metrics based on these outputs. This can be done in any major cloud, with open source tooling and even with simple linux coretuils. One tool to visualize such metrics is Grafana.

zerodeux|8 months ago

It is compatible with Nginx+FPM. It won't use the PHP-FPM specific logs (and thus does not impose any specific value from you for the access.format PHP-FPM setting). But it has to figure out where your app's error log is.

tarjei_huse|9 months ago

Looks likely. The server part of it is just a PHP-hook.

joshstrange|9 months ago

Yeah, from a brief glance at this, it just adds a file that runs on every request which logs out to the php error log and then there’s another script that can parse that error log.