nezhahq.github.io/assets/case_case7.md.D21bKNgz.js
2024-08-24 20:20:09 +00:00

2 lines
2.9 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as e,a}from"./chunks/webssh.Cvv4PsOJ.js";import{_ as r,c as t,o,a4 as i}from"./chunks/framework.BmdFiWrL.js";const g=JSON.parse('{"title":"Broker for Nezha - 拓展 Nezha 接入平台","description":"","frontmatter":{},"headers":[],"relativePath":"case/case7.md","filePath":"case/case7.md","lastUpdated":1724530785000}'),l={name:"case/case7.md"},h=i('<h1 id="broker-for-nezha-拓展-nezha-接入平台" tabindex="-1">Broker for Nezha - 拓展 Nezha 接入平台 <a class="header-anchor" href="#broker-for-nezha-拓展-nezha-接入平台" aria-label="Permalink to &quot;Broker for Nezha - 拓展 Nezha 接入平台&quot;"></a></h1><p>贡献者:</p><ul><li><a href="https://github.com/uubulb" target="_blank" rel="noreferrer">uubulb</a></li></ul><p>Broker for Nezha 是一个 Nezha Agent 的修改版本,其通过分离 Agent 的数据收集和 gRPC 上报功能,可使小型设备接入 Nezha Dashboard。</p><p>项目地址:<a href="https://github.com/uubulb/broker" target="_blank" rel="noreferrer">https://github.com/uubulb/broker</a></p><p>文档:<a href="https://broker.kuzu.uk/" target="_blank" rel="noreferrer">Broker for Nezha</a></p><h2 id="与原项目的不同" tabindex="-1">与原项目的不同 <a class="header-anchor" href="#与原项目的不同" aria-label="Permalink to &quot;与原项目的不同&quot;"></a></h2><ul><li>使用外置数据源,而不是从本地获取。</li><li>多数据源与多面板支持</li><li>仅支持部分任务类型,可参考项目 README 获取详细信息。</li></ul><p>Broker for Nezha 需要与特定的数据收集软件一同使用。目前提供两种数据获取方式:</p><ol><li>HTTP 主动获取HTTP/1.1</li><li>TCP 被动获取(推荐,可避免创建额外连接)</li></ol><p>如需获取现有的数据收集软件,可以参考项目 README。</p><p>因数据获取方式缺乏安全性,建议仅在信任的网络环境使用。</p><h2 id="编写数据收集端" tabindex="-1">编写数据收集端 <a class="header-anchor" href="#编写数据收集端" aria-label="Permalink to &quot;编写数据收集端&quot;"></a></h2><p>如需自行编写数据收集端,除实现基本 HTTP 服务器或 TCP 客户端外,还需要使用特定的数据格式才可被 Broker 正常接收。具体请参考:<a href="https://broker.kuzu.uk/configuration/type/" target="_blank" rel="noreferrer">数据类型</a></p><h2 id="效果参考" tabindex="-1">效果参考 <a class="header-anchor" href="#效果参考" aria-label="Permalink to &quot;效果参考&quot;"></a></h2><figure><img src="'+e+'" alt="Dashboard"><figcaption style="font-size:0.9em;color:gray;text-align:center;"> Dashboard </figcaption></figure><br><figure><img src="'+a+'" alt="WebSSH"><figcaption style="font-size:0.9em;color:gray;text-align:center;"> WebSSH </figcaption></figure>',18),n=[h];function s(c,u,p,f,_,b){return o(),t("div",null,n)}const m=r(l,[["render",s]]);export{g as __pageData,m as default};