init prometheus监控配置文件

This commit is contained in:
2026-07-09 10:12:19 +08:00
commit 5e9088793c
55 changed files with 205440 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
global:
resolve_timeout: 5m
route:
group_by: ['alertname', 'job', 'instance', 'port', 'severity']
group_wait: 10s
group_interval: 10s
repeat_interval: 8760h
receiver: 'email-prometheusalert'
routes:
- match_re:
severity: .+
receiver: 'email-prometheusalert'
continue: true
- match_re:
severity: .+
receiver: 'db-webhook-only'
continue: true
receivers:
- name: 'email-prometheusalert'
webhook_configs:
- url: 'http://10.150.117.190:9094/prometheusalert?type=email&tpl=prometheus-email&email=hans.wang@ptn.advantest.com'
send_resolved: true
# MySQL入库接口(旧PHP方案注释保留)
# - url: "http://10.150.117.190:8080/api/webhook.php"
# send_resolved: true
- name: 'db-webhook-only'
webhook_configs:
- url: "http://10.150.117.190:909/alert"
send_resolved: true
+32
View File
@@ -0,0 +1,32 @@
global:
resolve_timeout: 5m
route:
group_by: ['alertname', 'job', 'instance', 'port', 'severity']
group_wait: 10s
group_interval: 10s
repeat_interval: 8760h
receiver: 'email-prometheusalert'
routes:
- match_re:
severity: .+
receiver: 'email-prometheusalert'
continue: true
- match_re:
severity: .+
receiver: 'db-webhook-only'
continue: true
receivers:
- name: 'email-prometheusalert'
webhook_configs:
- url: 'http://10.150.117.190:9094/prometheusalert?type=email&tpl=prometheus-email&email=hans.wang@ptn.advantest.com'
send_resolved: true
# MySQL入库接口(旧PHP方案注释保留)
# - url: "http://10.150.117.190:8080/api/webhook.php"
# send_resolved: true
- name: 'db-webhook-only'
webhook_configs:
- url: "http://10.150.117.190:909/alert"
send_resolved: true
+29
View File
@@ -0,0 +1,29 @@
global:
resolve_timeout: 5m
route:
group_by: ['alertname', 'job', 'instance', 'port', 'severity']
group_wait: 10s
group_interval: 10s
repeat_interval: 8760h
receiver: 'email-prometheusalert'
routes:
- match_re:
severity: .+
receiver: 'db-webhook-only'
continue: true
receivers:
- name: 'email-prometheusalert'
webhook_configs:
# 原有邮件通知
- url: 'http://10.150.117.190:9094/prometheusalert?type=email&tpl=prometheus-email&email=lyudream@163.com'
send_resolved: true
# MySQL入库接口(已废弃,保留注释)
# - url: "http://10.150.117.190:8080/api/webhook.php"
# send_resolved: true
- name: 'db-webhook-only'
webhook_configs:
- url: "http://10.150.117.190:909/alert"
send_resolved: true
+7
View File
@@ -0,0 +1,7 @@
nohup: ignoring input
* Serving Flask app "webhook" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://0.0.0.0:909/ (Press CTRL+C to quit)