定制 funnydevjsc/netdata-laravel-integrate 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

funnydevjsc/netdata-laravel-integrate

最新稳定版本:1.0.1

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.

统计信息

  • 总下载量: 42
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固