Skip to content

scouter-contrib/scouter-plugin-server-alert-dingtalk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scouter-plugin-server-alert-dingtalk

Scouter server plugin to send a alert via dingtalk group webhook bot

  • This plug-in sends alert messages generated from the server to the dingtalk messenger group bot.
  • Currently supported types of Alert are as follows
    • All alert occurred from agents.
      • on exceeding CPU threshold of Host agent(warning / fatal)
      • on exceeding Memory threshold of Host agent (warning / fatal)
      • on exceeding Disk usage threshold of Host agent (warning / fatal)
      • agent's connection
      • agent's disconnection
      • agent's reconnection
      • on exceeding service response time
      • ...

Properties (conf/scouter.conf)

  • ext_plugin_dingtalk_send_alert : use alert to a dingtalk messenger feature or not (true / false) - default false

  • ext_plugin_dingtalk_debug : debug logging option - default false

  • ext_plugin_dingtalk_level : alert level to send (0 : INFO, 1 : WARN, 2 : ERROR, 3 : FATAL) - default 0

  • ext_plugin_dingtalk_access_token : Dingtalk webhook bot send api access token

  • Example

# External Interface (Dingtalk)
ext_plugin_dingtalk_send_alert=true
ext_plugin_dingtalk_debug=false
ext_plugin_dingtalk_level=0
ext_plugin_dingtalk_access_token=XXXXXXXXXXXXXXXXXXXXXXXXXXXX

Dependencies

  • Project
    • scouter.common
    • scouter.server
  • Library
    • commons-codec-1.9.jar
    • commons-logging-1.2.jar
    • gson-2.6.2.jar
    • httpclient-4.5.2.jar
    • httpcore-4.4.4.jar

Build & Deploy

  • mvn clean package

  • Deploy

    • copy scouter-plugin-server-alert-dingtalk-xxx.jar and all dependent libraries(exclude scouter.server and scouter.commong) to lib directory of scouter server home.

About

Scouter alert plugin for dingtalk

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages