Comments (5)
一个示例的收集:收集数据库的机器,将机器分组为 dba;收集中间件的机器,将机器分组为 mw。
- labels:
hostgroup: dba
hostname: mysql-demo-01
targerts:
- 127.0.0.1:9100
- 127.0.0.1:9256
- ...
- labels:
hostgroup: mw
hostname: es-demo-01
targerts:
- 127.0.0.1:9100
- 127.0.0.1:9256
- ...
from prometheusalert.
一个示例的告警:不填写告警通知对象,程序从 labels.hostgroup
获取告警组。
- alert: CPU负载大于2Cores
expr: node_load1 > (instance:node_cpus:count * 2)
for: 4m
labels:
severity: critical
level: 3
annotations:
description: "主机 {{ $labels.hostname }} CPU负载 {{ $value }}"
from prometheusalert.
PrometheusAlert 发送告警的时候,从 labels.hostgroup
获取主机组作为告警组,然后从 app.conf
中取得对应组的通知地址(wxurl, ddurl, fsurl, phone...),发送告警。
如果 labels.hostgroup
为空,则还是使用之前发送告警的逻辑。
from prometheusalert.
这样是不是可行,有没有必要?
from prometheusalert.
暂时不太需要!
from prometheusalert.
Related Issues (20)
- 飞书告警模板能测试成功,但告警测试中的飞书告警测试有问题,请求帮助 HOT 1
- PrometheusAlert支持发送图片吗?
- Docker容器环境变量配置不生效
- prometheusalert可以代替alertmanager嘛 HOT 1
- 飞书v2告警无法通过飞书用户邮箱 @某人 无法显示 HOT 1
- 如何将同类型的告警整合成一个消息发出来呢 HOT 2
- 请问是否支持飞书机器人@某人或@全员 HOT 2
- 阿里云云监控告警接收空消息问题 HOT 2
- 请问是否支持飞书机器人动态的@某人
- PrometheusAlert发送告警到飞书/钉钉等, 如何自定义标题信息?
- response不是json格式的数据
- 钉钉修改配置&为%26加签也不成功 HOT 1
- GetTimeDuration持续时间计算不对
- 发送阿里云短信告警提示错误
- 模板中变量的值在哪里能修改吗? HOT 3
- Feishu 报警无法@用户
- prometheusAlert Grafana报警记录面板 HOT 2
- 多条告警不能汇聚,导致webhook被限流 HOT 2
- 转换Prometheus,graylog告警消息的时区为CST时区,没有生效 HOT 1
- 微信应用需要增添代理设置
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.
from prometheusalert.