monitornotification's Introduction
这是个Android 9的app 一个ops晚上没人7*24,又怕错过重要告警,又要睡觉,怎么办 一个简单的例子,服务器后端通过API接口,获取是否需要把你叫醒,案例比较简单,只返回一个int值:1,实际可以根据需求,返回整个告警的json,包含是否需要喊你的标志,告警的标题,告警的等级,告警的摘要,告警的服务器,告警的服务等等信息。 当返回1时,假设为需要喊醒你,则手机会在以你勾选的相应方式把你薅起来,修服务去。 从服务端获取的周期,可以自己控制,我默认设置了5分钟 用法: 打开应用 输入api接口地址 输入检查周期 勾选对应的叫醒方式 启动服务 (你起床后) 关闭服务 去干活去吧 后端建议: 监控工具(promethues、zabbix、estado等等),发送到slack、短信、邮件等等后,生产一份到消息队列(kafka、rabbitmq等),springboot做后端,从消息队列消费数据,自己定义规则,暴露出http://IP:PROT/monitor/info接口,返回你想要的json数据(或者我例子中这么LOW的1)
monitornotification's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.