{"repo":"omaralalwi/laravel-jobs-metrics","free":true,"listed":false,"github":"https://github.com/omaralalwi/laravel-jobs-metrics","clone":"git clone https://github.com/omaralalwi/laravel-jobs-metrics.git","description":"Tracks job memory consumption — works with or without Horizon, and enables long-term performance analysis via database logging.","language":"PHP","stars":14,"topics":["background-jobs","execution-time","horizon","job-metrics","jobs","laravel","laravel-horizon","laravel-package","memory-usage","metrics"],"license":"MIT","category":"analytics","readme_excerpt":"Laravel Jobs Metrics Tracks job memory consumption and execution time — works with or without Horizon, and enables long-term performance analysis via database logging. Table of Contents - Installation - Usage - Basic Usage - Configuration - Viewing Job Metrics Report - Exporting Job Metrics - Manually Cleaning Up Old Records - Automatic Cleanup - Features - Testing - Credits - License - Other Packages Installation You can install the package via composer: After installation, publish the configuration file (optional): Run the migrations to create the jobs metrics table: Usage Basic Usage Add the HasJobsMetricTracker trait to your job classes: That's it! Metrics will be automatically recorded in the jobs metrics table. Configuration The package can be configured via the config/jobs-metrics.php file. Here are the available options: Viewing Job Metrics Report The package provides a simple command to view job metrics: The command displays a comprehensive info in CLI. Available options: - --limit=N : Number of jobs to display (default: 10) - --sort=memory time : Sort by memory usage or execution time (default: memory) - --days=N : Show data from the last N days (default: 7) Exporting Job Metrics You can export all job metrics to a single JSON file: The export command creates a comprehensive JSON file in the storage/app/jobs-metrics-export directory with timestamps in the filename. Manually Cleaning Up Old Records You can manually clean up old metrics records using the provided arti","default_branch":null,"files":null,"tree":[],"storefront":"/r/omaralalwi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/omaralalwi/laravel-jobs-metrics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}