dealerinspire/laravel-performance-monitor

A performance monitor to log an error when a request performs below a specified threshold

v2.0.0 2019-07-09 14:22 UTC

This package is auto-updated.

Last update: 2024-11-10 06:15:32 UTC


README

Dealer Inspire Laravel Performance Monitor logs errors when your Laravel application exceeds specified performance metrics.

Installation

Install the package by requiring it with Composer.

composer require dealerinspire/laravel-performance-monitor

Usage

You don't need to do anything; Laravel Performance Monitor works automagically as soon as you require it with Composer.

You can, however, modify some configuration options by publishing this package and updating performancemonitor.php.

To Publish

php artisan vendor:publish

Available configuration options

enable_execution_time_check (default true) - Set to true to enable a check for maximum execution time

enable_memory_limit_check (default true) - Set to true to enable a check for a memory usage threshold

execution_time_max_seconds (default 300) - The maximum number of seconds a request execution can take before sending an alert

memory_limit_max_memory_percent (default 80) - The maximum percentage of available memory that can be used before sending an alert

License

MIT © Dealer Inspire