funnydevjsc/netdata-laravel-integrate
Composer 安装命令:
composer require funnydevjsc/netdata-laravel-integrate
包简介
Laravel package for Netdata
README 文档
README
The free Laravel package to help you integrate with Netdata to analyze server performance information
Use Cases
- Crawl and parse result from Netdata
- Easy to understand and draw charts
- Example crawler command
Features
- Dynamic Netdata credentials from config/netdata.php
- Easy to get data with a simple line code
Requirements
- PHP: 8.1 or higher
- Laravel 9.0 or higher
Quick Start
If you prefer to install this package into your own Laravel application, please follow the installation steps below
Installation
Step 1. Install a Laravel project if you don't have one already
https://laravel.com/docs/installation
Step 2. Install Netdata if your server does not have it
https://learn.netdata.cloud/docs/netdata-agent/installation
Step 3. Require the current package using composer:
composer require funnydevjsc/netdata-laravel-integrate
Step 4. Publish the controller file and config file
php artisan vendor:publish --provider="FunnyDev\Netdata\NetdataServiceProvider" --tag="netdata"
If publishing files fails, please create corresponding files at the path config/netdata.php and app\Console\Commands\NetdataCommand.php from this package.
Step 5. Update the various config settings in the published config file:
- After publishing the package assets a configuration file will be located at
config/netdata.php. - Please read the document of Netdata document to get those values to fill into the config file if you are using manual installation and not on any server panel.
- If you are using a panel like Direct Admin then you could read about the document of Direct Admin to find out. In our case, it was:
NETDATA_SERVER="http://directadmin.domain.ltd:2222/CMD_NETDATA_SOCK" NETDATA_SCOPE_NODE="52f2daca-33fa-421d-ad90-ce9955f760fa" NETDATA_USERNAME="username" NETDATA_PASSWORD="password"
Step 7. Save data to Database and Draw charts:
You can use or optimize app/Console/Commands/NetdataCommand.php to retrieve data and store the collected data into the Database for convenience in research, evaluation and drawing charts. Drawing charts is possible through Javascript libraries. Example collected data like this (this data bellow is not real and just for demo only):
Testing
php artisan netdata:crawl
Feedback
Respect us in the Laravel Việt Nam
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email contact@funnydev.vn or use the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
funnydevjsc/netdata-laravel-integrate 适用场景与选型建议
funnydevjsc/netdata-laravel-integrate 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 42 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 05 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「payment」 「laravel」 「netdata」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 funnydevjsc/netdata-laravel-integrate 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 funnydevjsc/netdata-laravel-integrate 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 funnydevjsc/netdata-laravel-integrate 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple ASCII output of array data
Alfabank REST API integration
Package for view storage in laravel
User Approval Laravel Package
PHPUnit Pretty Result Printer
统计信息
- 总下载量: 42
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-05-15
