Skip to content

Commit

Permalink
Merge branch 'master' into greptimedb
Browse files Browse the repository at this point in the history
  • Loading branch information
zuobiao-zhou authored Nov 26, 2024
2 parents 3a0b218 + 509a9c9 commit 4b42da5
Show file tree
Hide file tree
Showing 9 changed files with 124 additions and 116 deletions.
8 changes: 6 additions & 2 deletions home/docs/help/plugin.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
---
id: plugin
title: Custom plugin
sidebar_label: Custom plugin
title: Custom plugin(Beta)
sidebar_label: Custom plugin(Beta)
---

### Introduction

In the current usage of `HertzBeat`, interaction with external systems only occurs after an alert through the notification feature. The plugin functionality allows users to add custom operations at various stages of the `HertzBeat` lifecycle, such as executing `SQL` or `shell` scripts after an alert, or sending collected monitoring data to other systems. Users can develop plugins following the custom plugin development process, package them, and then upload and enable them using the `Plugin Management` - `Upload Plugin` feature, thereby adding custom functionality without restarting `HertzBeat`.

:::warning
In the current version, custom plugins are a test feature and may have some limitations and instability. The plugin functionality might be restructured in future versions.
:::

### Supported Plugin Types

1. `Post-Alert` Plugin
Expand Down
4 changes: 2 additions & 2 deletions home/i18n/en/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
"description": "The label for category telnet in sidebar docs"
},
"sidebar.docs.category.help": {
"message": "Help",
"description": "The label for category help in sidebar docs"
"message": "Guides",
"description": "The label for category guides in sidebar docs"
},
"sidebar.docs.category.service": {
"message": "Service Monitor",
Expand Down
6 changes: 3 additions & 3 deletions home/i18n/zh-cn/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"message": "TELNET协议",
"description": "The label for category telnet in sidebar docs"
},
"sidebar.docs.category.help": {
"message": "帮助文档",
"description": "The label for category help in sidebar docs"
"sidebar.docs.category.guides": {
"message": "使用指南",
"description": "The label for category guides in sidebar docs"
},
"sidebar.docs.category.service": {
"message": "应用服务监控",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
---
id: plugin
title: 自定义插件
sidebar_label: 自定义插件
title: 自定义插件(Beta)
sidebar_label: 自定义插件(Beta)
---

### 简介

当前`HertzBeat`在使用中,只有在告警后通过通知功能与外部系统产生交互,插件功能支持让用户在 `HertzBeat` 生命周期的各个阶段增加自定义操作。如在告警后执行`sql``shell`脚本等操作,在采集到监控数据后发送到其他的系统等。
用户按照自定义插件的流程开发插件并打包后,将打包后的文件通过 `插件管理` - `上传插件` 功能,上传并启用插件即可在不重启`HertzBeat`的情况下增加自定义功能。

:::warning
在当前版本中,自定义插件作为一个测试功能,可能会有一些限制和不稳定性,后续版本可能会重构插件功能。`
:::

### 支持的插件类型

1. `Post-Alert`插件
Expand Down
206 changes: 103 additions & 103 deletions home/sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,109 +68,7 @@
},
{
"type": "category",
"label": "custom",
"items": [
"advanced/extend-point",
"advanced/extend-tutorial",
{
"type": "category",
"label": "http",
"items": [
"advanced/extend-http",
"advanced/extend-http-default",
"advanced/extend-http-jsonpath",
"advanced/extend-http-example-hertzbeat",
"advanced/extend-http-example-token"
]
},
{
"type": "category",
"label": "jdbc",
"items": [
"advanced/extend-jdbc"
]
},
{
"type": "category",
"label": "ssh",
"items": [
"advanced/extend-ssh"
]
},
{
"type": "category",
"label": "telnet",
"items": [
"advanced/extend-telnet"
]
},
{
"type": "category",
"label": "jmx",
"items": [
"advanced/extend-jmx"
]
},
{
"type": "category",
"label": "snmp",
"items": [
"advanced/extend-snmp"
]
},
{
"type": "category",
"label": "NGQL",
"items": [
"advanced/extend-ngql"
]
}
]
},
{
"type": "doc",
"id": "template"
},
{
"type": "category",
"label": "Community",
"items": [
"community/contact",
"community/development",
{
"type": "category",
"label": "contribution",
"items": [
"community/contribution",
"community/mailing_lists",
"community/become_committer",
"community/become_pmc_member",
"community/new_committer_process",
"community/new_pmc_ember_process"
]
},
{
"type": "category",
"label": "submit",
"items": [
"community/document",
"community/submit_code",
"community/code_style_and_quality_guide"
]
},
{
"type": "category",
"label": "release",
"items": [
"community/how_to_release",
"community/how_to_verify_release"
]
}
]
},
{
"type": "category",
"label": "help",
"label": "guides",
"items": [
"help/guide",
"help/prometheus",
Expand Down Expand Up @@ -384,6 +282,108 @@
"help/issue"
]
},
{
"type": "category",
"label": "custom",
"items": [
"advanced/extend-point",
"advanced/extend-tutorial",
{
"type": "category",
"label": "http",
"items": [
"advanced/extend-http",
"advanced/extend-http-default",
"advanced/extend-http-jsonpath",
"advanced/extend-http-example-hertzbeat",
"advanced/extend-http-example-token"
]
},
{
"type": "category",
"label": "jdbc",
"items": [
"advanced/extend-jdbc"
]
},
{
"type": "category",
"label": "ssh",
"items": [
"advanced/extend-ssh"
]
},
{
"type": "category",
"label": "telnet",
"items": [
"advanced/extend-telnet"
]
},
{
"type": "category",
"label": "jmx",
"items": [
"advanced/extend-jmx"
]
},
{
"type": "category",
"label": "snmp",
"items": [
"advanced/extend-snmp"
]
},
{
"type": "category",
"label": "NGQL",
"items": [
"advanced/extend-ngql"
]
}
]
},
{
"type": "doc",
"id": "template"
},
{
"type": "category",
"label": "Community",
"items": [
"community/contact",
"community/development",
{
"type": "category",
"label": "contribution",
"items": [
"community/contribution",
"community/mailing_lists",
"community/become_committer",
"community/become_pmc_member",
"community/new_committer_process",
"community/new_pmc_ember_process"
]
},
{
"type": "category",
"label": "submit",
"items": [
"community/document",
"community/submit_code",
"community/code_style_and_quality_guide"
]
},
{
"type": "category",
"label": "release",
"items": [
"community/how_to_release",
"community/how_to_verify_release"
]
}
]
},
{
"type": "category",
"label": "Template Marketplace",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spring:
baseline-on-migrate: true
baseline-version: 1
locations:
- classpath:db/migration/{vendor}
- classpath:db/migration/mysql

# Not Require, Please config if you need email notify
# 非必填:不使用邮箱作为警告通知可以去掉spring.mail配置
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spring:
baseline-on-migrate: true
baseline-version: 1
locations:
- classpath:db/migration/{vendor}
- classpath:db/migration/mysql

# Not Require, Please config if you need email notify
# 非必填:不使用邮箱作为警告通知可以去掉spring.mail配置
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ spring:
baseline-on-migrate: true
baseline-version: 1
locations:
- classpath:db/migration/{vendor}
- classpath:db/migration/mysql

# Not Require, Please config if you need email notify
# 非必填:不使用邮箱作为警告通知可以去掉spring.mail配置
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ spring:
baseline-on-migrate: true
baseline-version: 1
locations:
- classpath:db/migration/{vendor}
- classpath:db/migration/postgresql

# Not Require, Please config if you need email notify
# 非必填:不使用邮箱作为警告通知可以去掉spring.mail配置
Expand Down

0 comments on commit 4b42da5

Please sign in to comment.