Coder Social home page Coder Social logo

striebwj-horizon-stats's Introduction

Horizon Stats

Run tests Format (PHP)

Packagist Packagist Packagist

Store long-term stats on the health of your Horizon Queues.

This package takes the Horizon snapshot data and stores it in the database, with easy to access models, so you can track your queue health over time.

Installation

Install via composer

composer require striebwj/horizon-stats

Publish package assets

php artisan vendor:publish --provider="striebwj\HorizonStats\ServiceProvider"

Update the horizon-stats.php config file to change the database names. Default is horizon_stats.

Usage

Once migrations are run, add the horizon-stats:store command to your App\Console\Kernel.php with the same time as your Horizon Snapshot command. Be sure to add it before the snapshot. It should look something like this:

// Horizon Tasks
$schedule->command('horizon-stats:store')->everyFiveMinutes(); // Before the snapshot
$schedule->command('horizon:snapshot')->everyFiveMinutes();

To-do List

  • Add tests
  • Allow pushing storing in DB to a queue
  • Add pruning?

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

striebwj-horizon-stats's People

Contributors

striebwj avatar benjaminhu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.