1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
| groups: - name: defaultStatsAlert rules: - alert: cpuUsageAlert expr: (100 - (avg by (instance,hostname,hosttype,responsibility)(irate(node_cpu_seconds_total{job="consul_sd_node_exporter",mode="idle"}[3m])) * 100)) > 95 for: 10m labels: team: node organization: ops
annotations: summary: "{{ $labels.host }} CPU usgae high" description: "{{ $labels.host }} CPU usage above 95% (current value: {{ $value }})"
- alert: cpuIOwaitAlert expr: (avg by (hostname,instance,hosttype,responsibility)(irate(node_cpu_seconds_total{business=~'bzl|aws|hy',job="consul_sd_node_exporter",mode="iowait"}[3m])) * 100) > 45 for: 10m labels: team: node organization: ops annotations: summary: "{{ $labels.instance }} CPU iowait high" description: "{{ $labels.host }} CPU iowait above 45% (current value: {{ $value }})"
- alert: sysLoadAlert expr: sum by(hostname, instance,business,hosttype,responsibility) (node_load5{job="consul_sd_node_exporter"}) / count by(hostname, instance,business,hosttype,responsibility) (count by(cpu, hostname, instance,business,hosttype,responsibility) (node_cpu_seconds_total{job="consul_sd_node_exporter"})) > 3.85 for: 10m labels: team: node organization: ops annotations: description: "{{ $labels.host }} CPU load5m is greater than cpu core number(current value: cpu 核数的{{ $value }}倍 )"
- alert: sys-time-Alert expr: time() - node_time_seconds{job="consul_sd_node_exporter"} > 125 for: 10m labels: team: node organization: ops annotations: description: "{{ $labels.host }} system time is inconsistent (current value: {{ $value }}s)" - alert: sys-time-Alert1 expr: time() - node_time_seconds{job="consul_sd_node_exporter"} < -125 for: 10m labels: team: node organization: ops annotations: description: "{{ $labels.host }} system time is inconsistent (current value: {{ $value }}s)"
- alert: memUsageAlert expr: ((node_memory_MemTotal_bytes{job="consul_sd_node_exporter"} - (node_memory_MemFree_bytes{job="consul_sd_node_exporter"}+node_memory_Buffers_bytes{job="consul_sd_node_exporter"}+node_memory_Cached_bytes{job="consul_sd_node_exporter"}+node_memory_SReclaimable_bytes{job="consul_sd_node_exporter"}))/node_memory_MemTotal_bytes{job="consul_sd_node_exporter"}) * 100 > 95 for: 15m labels: team: mem organization: ops
annotations: summary: "{{ $labels.host }} MEM usgae high" description: "{{ $labels.host }} MEM usage above 95% (current value: {{ $value }})"
- alert: NodeDown expr: up{job="consul_sd_node_exporter"} == 0 for: 5m labels: team: down organization: ops
annotations: description: '{{ $labels.host}} has been down for 5m'
- alert: disk_utilization_rate expr: 100 - ((node_filesystem_avail_bytes{business=~'bzl|aws|hy',fstype!~"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|fuse.lxcfs|iso9660",mountpoint!~"/boot",job="consul_sd_node_exporter"} * 100) / node_filesystem_size_bytes {business=~'bzl|aws|hy',fstype!~"rootfs|selinuxfs|autofs|rpc_pipefs|tmpfs|fuse.lxcfs|iso9660",mountpoint!~"/boot",job="consul_sd_node_exporter"}) > 80 for: 10m labels: team: disk organization: ops annotations: description: '{{$labels.host}} {{$labels.mountpoint}} excess 90% --> {{$value}}'
- alert: network_receive_bytes expr: irate(node_network_receive_bytes_total{business=~'bzl|aws|hy',device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*|eth*|eno*',job="consul_sd_node_exporter"}[15m])*8/1024/1024 > 1000 for: 5m labels: team: node organization: ops annotations: description: '{{$labels.host}} network receive bytes reach to {{$value}} MB/s'
- alert: network_transmit_bytes expr: irate(node_network_transmit_bytes_total{business=~'bzl|aws|hy',device!~'tap.*|veth.*|br.*|docker.*|virbr*|lo*|eth*|eno*',job="consul_sd_node_exporter"}[15m])*8/1024/1024 > 1000 for: 5m labels: team: node organization: ops annotations: description: '{{$labels.host}} network transmit bytes reach to {{$value}} MB/s'
- alert: frame-alert expr: node_network_receive_frame_total{device!~"tap.*|veth.*|br.*|docker.*|virbr*|lo*"} - min_over_time(node_network_receive_frame_total{device!~"tap.*|veth.*|br.*|docker.*|virbr*|lo*"}[1h]) >= 5 for: 10s labels: team: node organization: ops annotations: description: '{{$labels.host}} network frame growth {{$value}}'
- alert: time_zone-alert expr: time_zone{tz!="CST"} == 0 for: 10s labels: team: node organization: ops annotations: description: '{{$labels.host}} time zone is not CST'
groups: - name: rocketmq-delay rules: - alert: rocketmq-delay warning1 expr: rocketmq_group_diff{topic="machine_work_log",group="machine_work_log_roketmq2doris"} >2000 for: 20s labels: group: bigdata severity: bigdata annotations: description: Topic:{{$labels.topic}} , Group:{{$labels.group}} 出现积压,积压量为:{{$value}} - alert: rocketmq-delay warning2 expr: rocketmq_group_diff{topic="pro_canal_producer",group="pro_canal_producer_roketmq2doris"} >10 for: 20s labels: group: bigdata severity: bigdata annotations: description: Topic:{{$labels.topic}} , Group:{{$labels.group}} 出现积压,积压量为:{{$value}}
groups: - name: doris_instance_down rules: - alert: Doris Backends Down expr: up {group="be", job="doris_job"} == 0 for: 20s labels: user: doris severity: bigdata annotations: summary: "doris Instance {{ $labels.instance }} down" description: "doris {{ $labels.instance }} of job {{ $labels.job }} has been down for more than 20s." - alert: Doris Frontends Down expr: up {group="fe", job="doris_job"} == 0 for: 20s labels: user: doris severity: bigdata annotations: summary: "doris Instance {{ $labels.instance }} down" description: "doris {{ $labels.instance }} of job {{ $labels.job }} has been down for more than 20s."
|