taivas-apm/taivas-apm-laravel
Composer 安装命令:
composer require taivas-apm/taivas-apm-laravel
包简介
Application Performance Monitoring for Laravel
README 文档
README
Taivas APM
Taivas is an Application Performance Monitoring (APM) software for Laravel. 📊
Most apps are not continuously tested for best practices. Taivas solves that problem by allowing you realtime insight into the production performance of your Laravel application. Taivas analyzes your requests and collects database queries, cache performance and much more. The free hosted Taivas Frontend allows you to see which requests take longer than they should, which requests to optimize and provides many graphs about your application's performance history.
⭐ Highlights
- Super easy to install (takes ~5 minutes)
- Free hosted frontend so you don't have to setup it yourself
- Extremely high performance. The redis persister adds only about 0.5ms to each request.
🚀 Installation
Require this package in the composer.json of your Laravel project.
composer require taivas-apm/taivas-apm-laravel
Publish the configuration:
php artisan vendor:publish --provider="TaivasAPM\TaivasAPMServiceProvider"
Set the TAIVAS_SECRET key in your .env file. To do that, create a random string with tinker:
php artisan tinker Str::random(32)
Execute the taivas migrations to create a table to store the request data
php artisan migrate
If your cors configuration is not open, allow access from our hosted web app in your cors config file (config/cors.php):
...
'paths' => ['your-api/*', 'taivas/*'],
...
'allowed_origins' => ['yourdomain.com', 'app.taivas.io'],
If you do not want to use the hosted frontend, you can host it yourself. However, you will have to make sure to keep it up to date.
🚀 Open the hosted web app
Enter your domain and login with the user credentials from your own application. All communication happens between your browser and your own application.
👍 Tips
- For smaller sites (< 1 request/second) it's fine to use the sync driver.
- For larger sites you should use the redis persister to move the load from your webserver to your cronjob server.
- For larger sites you should set the lottery setting so only some of the requests are tracked.
⛵ Roadmap
- Specifying a non-default redis connection
- Combine the
shouldTracklogic from the Service Provider and the Tracker class - Automatic tests for all supported Laravel Versions
- Custom analytics support
- ClickHouse support
- Managed request storage service
Dependencies
- Laravel >= 5.5
- A Laravel supported database to store the requests
- Redis, if you want to persist requests asynchronously
Thanks
Thanks to Taylor Otwell & team for giving so much to the open source community. The code structure of this package is based on Horizon.
taivas-apm/taivas-apm-laravel 适用场景与选型建议
taivas-apm/taivas-apm-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 163 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 03 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「analytics」 「monitoring」 「laravel」 「apm」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 taivas-apm/taivas-apm-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 taivas-apm/taivas-apm-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 taivas-apm/taivas-apm-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Symfony bundle for chameleon-system/sanitycheck
SoftWax Health Check Bundle for Symfony framework
1Pilot client for Symfony
Statsd (Object Oriented) client library for PHP
Analytics chooser extensions for site settings.
APM agent for laravel projects to monitor the application with elastic apm tools.
统计信息
- 总下载量: 163
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-03-26