Git Product home page Git Product logo

gauge's Introduction

Gauge - Laravel Application Performance Monitoring

Latest Version on Packagist Software License Total Downloads

Gauge is an easy to use package to monitor the performance of your Laravel applications. Gauge in based on Laravel Telescope.

Gauge

Requirements

Gauge works with the latest Laravel version starting at v6. The package has been tested with the latest versions of MySQL (v8) and Postgres (v13). Other version might work as well but are not supported officially.

Installation

Install the package via composer:

composer require tobiasdierich/gauge

After installing Gauge, publish the assets and run the migrations be executing the following commands:

php artisan gauge:install
php artisan migrate

Once done, open the Gauge dashboard at /gauge.

Data Pruning

Since gauge collects a bunch of data when enabled, you have to make sure to regularly prune old data from the database. Gauge comes with a prune command which by default removes all database entries older than a week. Setup your scheduler to prune old entries daily like this:

$schedule->command('gauge:prune')->daily();

Dashboard Authorization

By default, the dashboard exposed at /gauge is only accessible in local environments. If you want to access the dashboard in production environments, you can modify the gate function inside your app/providers/GaugeServiceProvider.php:

/**
     * Register the Gauge gate.
     *
     * This gate determines who can access Gauge in non-local environments.
     *
     * @return void
     */
    protected function gate()
    {
        Gate::define('viewGauge', function ($user) {
            return in_array($user->email, [
                '[email protected]'
            ]);
        });
    }

Configuration

The main configuration file is located at config/gauge.php. Use this file to disable Gauge, configure the watchers, etc.

Credits

License

The MIT License (MIT). Please check the License File for more information.

gauge's People

Contributors

swilla avatar tobiasdierich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gauge's Issues

css & js is not in correct location

base.css is available in vendor/tobiasdierich/guage/public/base.css but in defult blade it is written as vendor/gauge/
AWA charts.js is availble in vendor/tobiasdierich/guage/public/charts.js but in defult blade it is written as vendor/gauge/

Requests pagination error

Requests pagination error

ErrorException
Trying to get property 'content' of non-object (View: /...../vendor/tobiasdierich/gauge/resources/views/components/method-badge.blade.php)
https://....../requests/e0e39d220ff38421b6dd61a998975b28?page=2

image

Fix composer php dependency

Laravel v6 require php >= 7.2.5
Laravel v7 require php >= 7.2.5
Laravel v8 require php >= 7.3

composer.json:

"php": "^7.4",
"laravel/framework": "^6.0|^7.0|^8.0",

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.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • 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.