first commit

This commit is contained in:
iProbe 2022-10-18 16:59:37 +08:00
commit ba848e218d
1001 changed files with 152333 additions and 0 deletions

View file

@ -0,0 +1,27 @@
建立警告与通知的主要步骤:
```
创建和配置AlertManager
启动prometheus时通过-alertmanager.url配置alertmanager地址使prometheus与alertmanager建立链接
```
#### 创建配置文件alertmanager.yaml
```
global:
resolve_timeout: 5m
route:
group_by: ['ops']
group_wait: 10s #组报警等待时间
group_interval: 10s #组报警间隔时间
repeat_interval: 1m #重复报警间隔时间
receiver: 'web.hook'
receivers:
- name: 'web.hook'
webhook_configs:
- url: 'http://10.211.55.2:8888/open/test'
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
equal: ['alertname', 'dev', 'instance']
```