# prometheus-alerts **Repository Path**: aniseed/prometheus-alerts ## Basic Information - **Project Name**: prometheus-alerts - **Description**: prometheus的告警规则 - **Primary Language**: YAML - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: http://www.ansie.cloud - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2022-12-27 - **Last Updated**: 2023-02-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
# prometheus-alert 一些常用的prometheus告警规则
--- ### 介绍 一些常用的prometheus告警规则。 部分告警规则的阈值是根据业务系统的实际情况调整的,可能不适合你的业务场景,需要根据自己的实际情况调整。 告警规则的详细介绍请访问[wiki](www.baidu.com)/[官网](https://www.baidu.com). --- ### 告警规则 #### Prometheus 自身告警规则 监控指标:prometheus软件自身的监控指标 规则文件:[prometheus-rules.yml](https://gitee.com/aniseed/prometheus-alerts/blob/dev/prometheus/prometheus-rules.yml) 告警规则[详细介绍](www.baidu.com): - PrometheusDown ``` alert: PrometheusDown expr: up{job="prometheus"} == 0 for: 5m labels: severity: critical annotations: ``` - PrometheusNotificationQueueRunningOutOfCapacity ``` alert: PrometheusNotificationQueueRunningOutOfCapacity expr: predict_linear(prometheus_notifications_queue_capacity{job="prometheus"}[5m], 60 * 30) < prometheus_notifications_queue_length{job="prometheus"} for: 5m labels: severity: critical annotations: ``` - PrometheusTSDBReloadsFailing ```[config.yml](www.baidu.com) alert: PrometheusTSDBReloadsFailing expr: rate(prometheus_tsdb_reloads_failures_total{job="prometheus"}[5m]) > 0 for: 5m labels: severity: critical annotations: ``` 请访问[官网](www.baidu.com)查看详细介绍。 #### 告警规则列表 | 规则名称 | 规则描述 | 规则文件 | 详细介绍 | | :--- | :--- | :--- | :--- | | prometheus告警规则 | 基于prometheus自身的监控指标设置的告警规则 | [prometheus-rules.yml](www.baidu.com) | [DOC](www.baidu.com) | | node-exporter告警规则 | 基于node-exporter监控指标的设置的告警规则 | [node-exporter-rules.yml](www.baidu.com) | [DOC](www.baidu.com) | | mysqld-exporter告警规则 | 基于mysqld-exporter监控指标的设置的告警规则 | [mysqld-exporter-rules.yml](www.baidu.com) | [DOC](www.baidu.com) | | redis-exporter告警规则 | 基于redis-exporter监控指标的设置的告警规则 | [redis-exporter-rules.yml](www.baidu.com) | [DOC](www.baidu.com) | |持续更新中...| | | | --- ### 联系我们 微信 qq群