You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/09/25 13:56:35 UTC

[skywalking-website] branch master updated: Blog webhook (#59)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 856dba4  Blog webhook (#59)
856dba4 is described below

commit 856dba432707416cd5f1c41d4b5865769a2eb106
Author: weiqiang333 <as...@163.com>
AuthorDate: Wed Sep 25 21:56:31 2019 +0800

    Blog webhook (#59)
    
    * add blog alarm-webhook-share
    
    * update blog README.md
    
    * Update 2019-09-25-alarm-webhook-share.md
    
    I fix a typo.
---
 .../skywalking-UI-alarm.png                        | Bin 0 -> 81496 bytes
 .../skywalking-dingding-notify.png                 | Bin 0 -> 91821 bytes
 docs/blog/2019-09-25-alarm-webhook-share.md        |  52 +++++++++++++++++++++
 docs/blog/README.md                                |   5 ++
 4 files changed, 57 insertions(+)

diff --git a/docs/.vuepress/public/static/blog/2019-09-25-alarm-webhook-share/skywalking-UI-alarm.png b/docs/.vuepress/public/static/blog/2019-09-25-alarm-webhook-share/skywalking-UI-alarm.png
new file mode 100644
index 0000000..b6aa6b1
Binary files /dev/null and b/docs/.vuepress/public/static/blog/2019-09-25-alarm-webhook-share/skywalking-UI-alarm.png differ
diff --git a/docs/.vuepress/public/static/blog/2019-09-25-alarm-webhook-share/skywalking-dingding-notify.png b/docs/.vuepress/public/static/blog/2019-09-25-alarm-webhook-share/skywalking-dingding-notify.png
new file mode 100644
index 0000000..da48195
Binary files /dev/null and b/docs/.vuepress/public/static/blog/2019-09-25-alarm-webhook-share/skywalking-dingding-notify.png differ
diff --git a/docs/blog/2019-09-25-alarm-webhook-share.md b/docs/blog/2019-09-25-alarm-webhook-share.md
new file mode 100644
index 0000000..655195f
--- /dev/null
+++ b/docs/blog/2019-09-25-alarm-webhook-share.md
@@ -0,0 +1,52 @@
+# Skywalking alarm webhook sharing
+
+- Author: Wei Qiang
+- [GitHub](https://github.com/weiqiang333)
+
+Sep. 25st, 2019
+
+
+# Background
+SkyWalking backend provides the alarm function, we can define some Alarm rules, call webhook after the rule is triggered. I share my implementation
+
+
+# Demonstration
+
+![](../.vuepress/public/static/blog/2019-09-25-alarm-webhook-share/skywalking-UI-alarm.png)
+<p align="center">-SkyWalking alarm UI-</p>
+
+![](../.vuepress/public/static/blog/2019-09-25-alarm-webhook-share/skywalking-dingding-notify.png)
+<p align="center">-dingtalk message body-</p>
+
+
+# Introduction
+- install
+```
+go get -u github.com/weiqiang333/infra-skywalking-webhook
+cd $GOPATH/src/github.com/weiqiang333/infra-skywalking-webhook/
+bash build/build.sh
+./bin/infra-skywalking-webhook help
+```
+- Configuration
+```
+main configs file: configs/production.yml
+dingtalk:
+  p3: token...
+```
+- Example
+```
+./bin/infra-skywalking-webhook --config configs/production.yml --address 0.0.0.0:8000
+```
+- SkyWalking backend alarm settings
+```
+webhooks:
+  - http://127.0.0.1:8000/dingtalk
+```
+
+
+# Collaboration
+Hope that we can improve together [webhook](https://github.com/weiqiang333/infra-skywalking-webhook)
+
+SkyWalking alarm rules may add more metric names (eg priority name), we can send different channels by locating different levels of alerts (dingtalk / SMS / phone)
+
+Thank
diff --git a/docs/blog/README.md b/docs/blog/README.md
index d2d6f9e..561a661 100755
--- a/docs/blog/README.md
+++ b/docs/blog/README.md
@@ -3,6 +3,11 @@ layout: LayoutBlog
 
 blog:
 
+- title: Skywalking alarm webhook sharing
+  name: 2019-09-25-alarm-webhook-share
+  time: Wei Qiang. Sep. 25st, 2019
+  short: Alerts via skywalking alarm webhook for better perception of tracing
+
 - title: SkyWalking performance in Service Mesh scenario
   name: 2019-01-25-mesh-loadtest
   time: Hongtao Gao 25th, 2019