-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature]Hertzbeat custom plugin. #1973
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gread job, I left a few comments so we can discuss it.
manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/DispatcherAlarm.java
Outdated
Show resolved
Hide resolved
manager/src/main/java/org/apache/hertzbeat/manager/config/PluginConfig.java
Outdated
Show resolved
Hide resolved
manager/src/main/java/org/apache/hertzbeat/manager/config/PluginConfig.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍LGTM
Gread job, LGTM. Some documentation will need to be added later. |
I will |
What's changed?
Currently Hertzbeat in use , mainly rely on the alert module to notify the user , and then the user to take a number of measures such as sending a request , the execution of sql , the execution of shell scripts , etc. , but can only be manually or webhook to receive the alert information for automated processing , this pr add a plugin module , the module has an interface Plugin, the user can implement this interface execute method to receive Alert as a parameter for customized operations. After writing the code, users only need to package the plugin module, copy it to the /ext-lib folder in the installation directory, restart the main hertzbeat program, you can realize the custom function of executing the alert, without having to re-package and deploy the whole program.
Checklist
Add or update API