运维开发k8s&dockerPython&Django

使用django开发的webhookReciever接收prom

2021-03-06  本文已影响0人  阿乐_822e

写了一个基于django的webhookServer,可以用来接收promethues的告警信息,并在web端查看,已上传到github,项目地址:https://github.com/seenow2/webhookServer

# webhookServer

#a-simple-demo-by-django-to-recieve-alerts-from-promethues-and-show-them-in-web)A simple demo by django to recieve alerts from promethues and show them in web.

#To use it ,you should configure the url in your alertmanager.yml and apply it , then

$ docker run -it -p 8000:8000 seenow888/django-webhook:seenow /bin/bash

# After docker is run, attach it

$ cd /srv/webhk 
$ python manage.py runserver 0.0.0.0:8000

# then , you can browse in IE : http://hostIP:8000/index

alertmanager配置文件可以参考这里:https://www.jianshu.com/p/78cabf98b8d1
docker 镜像下载:

docker pull seenow888/django-webhook:seenow

首页(列表页)部分截图


40.jpg

详情页截图


41.jpg

搜索结果页截图


42.jpg

后台截图


43.JPG
上一篇 下一篇

猜你喜欢

热点阅读