{"id":16294131,"url":"https://github.com/sarfraznawaz2005/meter","last_synced_at":"2025-04-04T21:07:48.416Z","repository":{"id":42533564,"uuid":"228298572","full_name":"sarfraznawaz2005/meter","owner":"sarfraznawaz2005","description":"Laravel package to find performance bottlenecks in your laravel application.","archived":false,"fork":false,"pushed_at":"2023-01-25T09:25:28.000Z","size":895,"stargazers_count":249,"open_issues_count":3,"forks_count":24,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-11T20:14:27.583Z","etag":null,"topics":["application-insights","chart","graph","laravel","laravel-package","monitoring-tool","performance","server-monitor"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sarfraznawaz2005.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-16T03:55:05.000Z","updated_at":"2024-06-19T14:22:04.000Z","dependencies_parsed_at":"2023-01-29T03:31:06.489Z","dependency_job_id":null,"html_url":"https://github.com/sarfraznawaz2005/meter","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fmeter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fmeter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fmeter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sarfraznawaz2005%2Fmeter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sarfraznawaz2005","download_url":"https://codeload.github.com/sarfraznawaz2005/meter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249525,"owners_count":20908212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["application-insights","chart","graph","laravel","laravel-package","monitoring-tool","performance","server-monitor"],"created_at":"2024-10-10T20:14:17.449Z","updated_at":"2025-04-04T21:07:48.392Z","avatar_url":"https://github.com/sarfraznawaz2005.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads][ico-downloads]][link-downloads]\n\n# Laravel Meter\n\nLaravel 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. \n\n## Requirements ##\n\n - PHP \u003e= 7.3\n - Laravel 5.5+ | 6\n\n## Configuration\n\nAvailable options are:\n- METER_DB_CONNECTION \n  ` Database connection to use for meter entries. Default: mysql (uses default connection) `\n- METER_PATH \n ` Path to access meter UI. Default: meter `\n- METER_USERNAME \n ` Username to access meter UI. Default: null `\n- METER_PASSWORD \n ` Password to access meter UI. Default: null `\n- ignore_matched_string \n ` It helps to ignore the matched string in the query. Ex:`\n \n ```php\n \"ignore_matched_string\" =\u003e [\n        \"query\" =\u003e [\n            \"information_schema\",\n        ]\n\n    ],\n```\n\nThere are more options available, please check `config/meter.php` file for more details.\n \n## Monitors ## \n\n- Requests\n- Queries\n- Commands\n- Events\n- Schedule\n- CPU Load\n- Disk Space\n- Server Memory\n- HTTP Connections\n\n## Screenshot ##\n\n![Main Window](https://github.com/sarfraznawaz2005/meter/blob/master/screenshot.png?raw=true)\n\n\n## Installation ##\n\nInstall via composer\n\n```\ncomposer require sarfraznawaz2005/meter\n```\n\n\nPublish package's config file by running below command:\n\n```bash\nphp artisan vendor:publish --provider=\"Sarfraznawaz2005\\Meter\\MeterServiceProvider\"\n```\nIt should publish `config/meter.php` config file and migration file.\n\nNow run `php artisan migrate` command to create `meter_entries` database table.\n\n## Usage ##\n\nEnable Meter in `config/meter.php` and setup any other options as needed. Meter UI will be visible at `path` config you set.\n\nBy default Meter monitors:\n\n- Requests\n- Queries\n- Commands\n- Events\n- Schedule\n\nTo monitor server stuff:\n\n- CPU Load\n- Disk Space\n- Server Memory\n- HTTP Connections\n\nYou should use `meter:servermonitor` command. Schedule it in Laravel's console kernel file accordingly:\n                           \n```php\n// app/Console/Kernel.php\nprotected function schedule(Schedule $schedule)\n{\n    $schedule-\u003ecommand('meter:servermonitor')-\u003ehourly(); // or daily\n}\n```\n## Authentication ##\n\nYou 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).\n\nAlternatively, you can use `middleware` config option to apply your own auth middleware, etc \n\n## Ignoring Things ##\n\nYou can use `ignore_paths` and `ignore_commands` config options to ignore desired pages or commands from being monitored by Meter.\n\n## Data Pruning ##\n\nYou 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:\n\n```php\n$schedule-\u003ecommand('meter:prune')-\u003edaily();\n// or\n$schedule-\u003ecommand('meter:prune --days=7')-\u003edaily();\n```\n\n## Contributing\n\nPRs are welcome. Thanks\n\n## Security\n\nIf you discover any security related issues, please email sarfraznawaz2005@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Sarfraz Ahmed][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nPlease see the [license file](LICENSE.md) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/sarfraznawaz2005/meter.svg?style=flat-square\n[ico-downloads]: https://img.shields.io/packagist/dt/sarfraznawaz2005/meter.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/sarfraznawaz2005/meter\n[link-downloads]: https://packagist.org/packages/sarfraznawaz2005/meter\n[link-author]: https://github.com/sarfraznawaz2005\n[link-contributors]: https://github.com/sarfraznawaz2005/meter/graphs/contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarfraznawaz2005%2Fmeter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsarfraznawaz2005%2Fmeter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsarfraznawaz2005%2Fmeter/lists"}