Code Monkey home page Code Monkey logo

insight's Introduction

服务器监控采集

基于 oshi、SpringBoot 的服务器监控采集程序,可采集CPU、内存、网卡、硬盘、操作系统等信息。

insighter

insighter 模块是部署在服务器端的采集程序,编译为 Jar 包运行在各个服务器节点上。

启动参数说明如下:

-h #显示帮助信息
-i #Agent的UUID编号
-u #上报主机地址
-p #是否打印扫描的结果
-c #定时任务cron表达式,默认为2秒一次

启动案例

启动时的命令案例:

api

api 模块是与 insighter 对接的模块,双方约定好接口地址、传递的对象。

接收监控信息,请自行编写Controller实现net.renfei.insight.api.InsightApi接口,例如:

import net.renfei.insight.api.InsightApi;
import net.renfei.insight.api.model.InsightReport;
import net.renfei.sdk.entity.APIResult;

@Controller
public class InsightController implements InsightApi{
    @Override
    public void insightReport(@RequestBody APIResult<InsightReport> report){
        InsightReport reportData = report.getData();
        // TODO
    }
}

insight's People

Contributors

renfei avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.