• Stars
    star
    242
  • Rank 167,048 (Top 4 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Laravel package to find performance bottlenecks in your laravel application.

Software License Latest Version on Packagist Total Downloads

Laravel Meter

Laravel Meter monitors application performance for different things such as requests, commands, queries, events, etc and presents results in tables/charts. Think of it like Laravel Telescope but for performance monitoring.

Requirements

  • PHP >= 7.3
  • Laravel 5.5+ | 6

Configuration

Available options are:

  • METER_DB_CONNECTION Database connection to use for meter entries. Default: mysql (uses default connection)
  • METER_PATH Path to access meter UI. Default: meter
  • METER_USERNAME Username to access meter UI. Default: null
  • METER_PASSWORD Password to access meter UI. Default: null
  • ignore_matched_string It helps to ignore the matched string in the query. Ex:
"ignore_matched_string" => [
       "query" => [
           "information_schema",
       ]

   ],

There are more options available, please check config/meter.php file for more details.

Monitors

  • Requests
  • Queries
  • Commands
  • Events
  • Schedule
  • CPU Load
  • Disk Space
  • Server Memory
  • HTTP Connections

Screenshot

Main Window

Installation

Install via composer

composer require sarfraznawaz2005/meter

Publish package's config file by running below command:

php artisan vendor:publish --provider="Sarfraznawaz2005\Meter\MeterServiceProvider"

It should publish config/meter.php config file and migration file.

Now run php artisan migrate command to create meter_entries database table.

Usage

Enable Meter in config/meter.php and setup any other options as needed. Meter UI will be visible at path config you set.

By default Meter monitors:

  • Requests
  • Queries
  • Commands
  • Events
  • Schedule

To monitor server stuff:

  • CPU Load
  • Disk Space
  • Server Memory
  • HTTP Connections

You should use meter:servermonitor command. Schedule it in Laravel's console kernel file accordingly:

// app/Console/Kernel.php
protected function schedule(Schedule $schedule)
{
    $schedule->command('meter:servermonitor')->hourly(); // or daily
}

Authentication

You can use username and password config options to setup basic HTTP authentication for Meter interface to be accessed. Once setup, user should provide correct username and password to access Meter page(s).

Alternatively, you can use middleware config option to apply your own auth middleware, etc

Ignoring Things

You can use ignore_paths and ignore_commands config options to ignore desired pages or commands from being monitored by Meter.

Data Pruning

You need to periodically remove meter data otherwise your database will turn big quickly. To prune meter data, you can setup prune command in Kernel file:

$schedule->command('meter:prune')->daily();
// or
$schedule->command('meter:prune --days=7')->daily();

Contributing

PRs are welcome. Thanks

Security

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

Credits

License

Please see the license file for more information.

More Repositories

1

whatspup

🔳 WhatsApp chat from commandline/console/cli using GoogleChrome puppeteer
JavaScript
345
star
2

servermonitor

💓 Laravel package to periodically monitor the health of your server and application.
PHP
175
star
3

quran-cli

📕 Read/Recite The Holy Quran from the commandline with English translation.
JavaScript
91
star
4

visitlog

⏰ Laravel package to log visitor information into database.
PHP
89
star
5

floyer

🚀 Floyer is simple and fast deployment tool using git/svn and (S)FTP - especially useful for shared hosting.
PHP
57
star
6

indexer

Laravel package to monitor SELECT queries and offer best possible INDEX fields.
PHP
57
star
7

HTML5Sticky

📌 HTML5Sticky - sticky notes app for the web !
JavaScript
52
star
8

larafeed

Laravel package for providing visual feedback via screenshots.
PHP
42
star
9

loading

Laravel package to add loading indicator to pages while page is loading.
PHP
41
star
10

VisualQuery

MySQL Database Browser with ability to create visual queries for non-technical people or clients.
JavaScript
39
star
11

composer-cost

Displays cost/size of each composer package installed.
PHP
33
star
12

noty

Laravel package to incorporate beautiful noty notifications into laravel as flash messages.
PHP
32
star
13

laravel-sse

Laravel package to provide Server Sent Events functionality for your app.
PHP
30
star
14

BloggerCMS

✏️ An static blog generator made in PHP
JavaScript
30
star
15

backupmanager

Simple laravel package to backup/restore files and database.
PHP
28
star
16

lognotify

Laravel package to automatically show notifications in real-time whenever there is new log entry made anywhere in application.
PHP
24
star
17

querydumper

Laravel package to dump all running queries on the page.
PHP
24
star
18

slim3-skeleton

Slim3 Skeleton + Nice Admin Layout
CSS
20
star
19

gitup

Laravel package to upload git commits to server(s) via (s)ftp.
PHP
20
star
20

Phexecute

Phexecute - Awesome PHP Code Runner
CSS
18
star
21

PHPExecute

(Abandoned) PHPExecute helps run php in browser to test code.
PHP
13
star
22

bookmarker

BookMarker is simple app made in Laraval framework using SQLite that can be used to bookmark important pages from the web to read them later.
PHP
12
star
23

laravel55-starter

Laravel 5.5 Starter project with Bootstrap 4 CSS framework and useful laravel packages needed for most apps.
PHP
11
star
24

holy-quran

The Holy Quran with English Translation
JavaScript
11
star
25

queryline

QueryLine is a laravel package to show time graph against run queries on a page.
PHP
7
star
26

lv-starter

Laravel Starter project with useful laravel packages needed for most apps.
PHP
6
star
27

Save-Complete-HTML

This class can save HTML pages complete with images, CSS and JavaScript.
PHP
6
star
28

actions

Laravel package as alternative to single action controllers with support for web and api in single class.
PHP
6
star
29

quran-json

Quran data in json format
5
star
30

namaz

How to pray namaz (salat)
4
star
31

EZPHP

🔨 (ABANDONED) EZPHP is an easy-to-use MVC-based framework.
PHP
4
star
32

plogs

Laravel package to save logs in database making them permanent, always available for as long as you want.
PHP
3
star
33

quran-browser-extension

📕 Holy Quran chrome/firefox browser extension
JavaScript
3
star
34

eventable

Laravel package to easily add event listening capabilities to any model on Create/Update/Delete operations.
PHP
3
star
35

Slidr

Very simple and light-weight jQuery plugin to create HTML Presentations!
JavaScript
3
star
36

emailwatch

Laravel package to open sent emails in default email client directly.
PHP
3
star
37

csvfilters

CSV Filters Console App
PHP
2
star
38

slim2-basic-app

slim 2 app with eloquent, twig, authentication, etc
PHP
2
star
39

laravel6-starter

Laravel Starter project with useful laravel packages needed for most apps.
PHP
2
star
40

php-compatibility-checker

php-compatibility-checker
PHP
2
star
41

slim2-skeleton

Slim Framework 2 Skeleton app with Eloquent ORM, Twig, Tracy Debugger and Monolog
PHP
2
star
42

Internet-Connection-Monitor

Simple Windows App to show internet connection status by changing icons in taskbar
C#
1
star
43

composer-confirm

Displays confirmation message when using composer install/update commands.
PHP
1
star
44

watershop

PHP
1
star
45

elogger

basecamp classic time posting app
PHP
1
star
46

simple_php_api

Allow other sites to call our API and pass data to us for consuming.
PHP
1
star
47

smart-button

Smart Button Web Component
JavaScript
1
star
48

basecampapp

The BasecampApp is an application to log time entries for your basecamp projects quickly and easily.
PHP
1
star
49

bookmarked

bookmarked
CSS
1
star