728x90
반응형

Scouter-Slack Noti 플러그 인 추가

  • 개요: Scouter에서 지정한 수준의 오류가 발생하면 Slack에 통보시키는 플러그 인
  • 순서:
    • Scouter-Slack플러그 인 파일을 Scouter서버 lib폴더에 카피
    • 플러그 인 파일:scouter-plugin-server-alert-slack.jar
cp ~/tmp/scouter-plugin-server-alert-slack.jar /[scouter home]/server/lib/
  • 아래의 의존 라이브러리를 Scouter서버 lib폴더에 카피
    • httpclient-4.5.2.jar  link
    • httpcore-4.4.4.jar   link
    • gson-2.6.2.jar        link
    • commons-codec-1.9.jar        link
    • commons-logging-1.2.jar      link
  • cp ~/tmp/lib/*.jar /[scouter home]/server/lib/
  • /[scouter home]/server/conf/scouter.conf에 Slack 설정 추가
# External Interface (Slack)
ext_plugin_slack_send_alert=true
ext_plugin_slack_debug=true
ext_plugin_slack_level=2            # log level (0 : INFO, 1 : WARN, 2 : ERROR, 3 : FATAL) - default 0
ext_plugin_slack_webhook_url=https://hooks.slack.com/services/T1D6ZTXGD/1234/123
ext_plugin_slack_channel=#alert         # #Channel or @user_id
ext_plugin_slack_botName=scouter
ext_plugin_slack_icon_emoji=:computer:
ext_plugin_slack_icon_url=https://www.test.com/header_logo.png
ext_plugin_slack_xlog_enabled=true
 
ext_plugin_elapsed_time_threshold=2500      # 응답시간 알림 기준치(ms)
ext_plugin_gc_time_threshold=5000           # GC Time의 알림 기준치(ms)
ext_plugin_thread_count_threshold=300       # Thread Count 알림 기준값
20170919 14:01:57 Scouter Server Version 1.7.3 2017-08-19 14:14 GMT
  ____                  _
 / ___|  ___ ___  _   _| |_ ___ _ __
 \___ \ / __/   \| | | | __/ _ \ '__|
  ___) | (_| (+) | |_| | ||  __/ |
 |____/ \___\___/ \__,_|\__\___|_|
 Open Source S/W Performance Monitoring
 Scouter version 1.7.3
20170919 14:01:58 Load Account Group File
20170919 14:01:58 Load Account File
20170919 14:01:58 Load Account Group File
20170919 14:01:58 udp listen 0.0.0.0:6100
20170919 14:01:58       udp_host=0.0.0.0
20170919 14:01:58       udp_port=6100
20170919 14:01:58       udp_buffer=65535
20170919 14:01:58       udp_so_rcvbuf=4194304
20170919 14:01:58 Load Account File
20170919 14:01:58       tcp_port=6100
20170919 14:01:58       cp_agent_so_timeout=60000
20170919 14:01:58       cp_client_so_timeout=8000
20170919 14:01:58 [BuiltInPlugin]scouter.plugin.server.alert.slack.SlackPlugin=>counter
20170919 14:01:58 [BuiltInPlugin]scouter.plugin.server.alert.slack.SlackPlugin=>object
20170919 14:01:58 [BuiltInPlugin]scouter.plugin.server.alert.slack.SlackPlugin=>alert
20170919 14:01:58 [BuiltInPlugin]scouter.plugin.server.alert.slack.SlackPlugin=>xlog

 

728x90
300x250

'IT > Scouter' 카테고리의 다른 글

Scouter log 로테이션  (0) 2021.08.09
Scouter Agent 설치 및 설정  (0) 2021.08.09
Scouter 서버 설치·설정  (0) 2021.08.09
Scouter 데이터베이스 삭제 및 다시 시작  (0) 2021.08.09
Scouter Server scouter.conf 설정 튜닝  (0) 2021.08.03

+ Recent posts