├── README.md ├── rocketmq_alert.yml ├── LICENSE ├── grafana.json └── rocketmq-grafana.json /README.md: -------------------------------------------------------------------------------- 1 | # rocketmq-monitor 2 | 拿来即用的rocketmq监控、告警配置 3 | 4 | ## 监控配置 5 | 6 | ### 配置Prometheus 7 | 8 | prometheus.yml增加如下示例配置: 9 | 10 | ```yaml 11 | - job_name: 'rocketmq-exporter' 12 | static_configs: 13 | - targets: ['localhost:5557'] 14 | labels: 15 | Env: '开发' 16 | Cluster: 'dev-rmq' 17 | ``` 18 | 19 | 注意增加的两个额外标签:Env和Cluster 20 | 21 | ### 配置Grafana 22 | 23 | 将目录下的rocketmq-grafana.json作Dashboard导入到grafana中。 24 | 25 | ## 告警配置 26 | 27 | ### 配置Prometheus 28 | 29 | prometheus.yml中告警规则处增加如下配置: 30 | 31 | ```yaml 32 | rule_files: 33 | - "rocketmq_alert.yml" 34 | ``` 35 | 36 | 将目录下的rocketmq_alert.yml和其它告警规则一样放到prometheus的安装目录。 37 | 38 | 注意,示例如下,在告警规则中,使用了前面增加的Env和Cluster两个标签,注意将规则中使用该标签的值修改为自己配置的这两个标签的值: 39 | 40 | ```yaml 41 | - alert: "RocketMQ集群,磁盘空间不足" 42 | expr: rocketmq_brokeruntime_commitlog_disk_ratio{Cluster="dev-rmq",Env="开发"} * 100 > 70 43 | for: 1m 44 | labels: 45 | severity: warning 46 | annotations: 47 | description: '{{$labels.Env}}环境, {{$labels.Cluster}}集群, broker: {{$labels.brokerIP}}, 磁盘可用空间即将不足预警, 当前空间使用率为:{{$value}}%' 48 | summary: '磁盘可用空间即将不足' 49 | ``` 50 | 51 | -------------------------------------------------------------------------------- /rocketmq_alert.yml: -------------------------------------------------------------------------------- 1 | groups: 2 | - name: RocketMQ告警 3 | rules: 4 | - alert: "RocketMQ集群,磁盘空间不足" 5 | expr: rocketmq_brokeruntime_commitlog_disk_ratio{Cluster="dev-rmq",Env="开发"} * 100 > 70 6 | for: 1m 7 | labels: 8 | severity: warning 9 | annotations: 10 | description: '{{$labels.Env}}环境, {{$labels.Cluster}}集群, broker: {{$labels.brokerIP}}, 磁盘可用空间即将不足预警, 当前空间使用率为:{{$value}}%' 11 | summary: '磁盘可用空间即将不足' 12 | - alert: "RocketMQ集群,broker busy告警" 13 | expr: rocketmq_brokeruntime_send_threadpoolqueue_headwait_timemills{Cluster="dev-rmq",Env="开发"} > 200 14 | for: 0m 15 | labels: 16 | severity: warning 17 | annotations: 18 | description: '{{$labels.Env}}环境, {{$labels.Cluster}}集群, broker: {{$labels.brokerIP}}, 消息等待处理时间已经超过200ms' 19 | summary: 'broker压力大' 20 | - alert: "RocketMQ集群, 出现消息积压" 21 | expr: sum(rocketmq_group_diff{Cluster="dev-rmq",Env="开发"}) by (Env, Cluster, group,topic) > 1000 22 | for: 0m 23 | labels: 24 | severity: warning 25 | annotations: 26 | description: '{{$labels.Env}}环境, {{$labels.Cluster}}集群, 消费组{{$labels.group}}消费{{$labels.topic}}的消息时出现消息积压, 积压量为{{$value}}' 27 | summary: 'RocketMQ生产环境,iot_rt_ebike_event_topic_consumer出现消息积压' 28 | - alert: "RocketMQ集群, broker节点挂了" 29 | expr: count(rocketmq_broker_tps{Cluster="dev-rmq",Env="开发"}) by (Env, Cluster) < 2 30 | for: 0m 31 | labels: 32 | severity: warning 33 | annotations: 34 | description: '{{$labels.Env}}环境, {{$labels.Cluster}}集群, broker存活节点个数不足, 当前活跃节点数: {{$value}}' 35 | summary: 'broker节点挂了' 36 | - alert: "RocketMQ集群, 消息提交耗时太久" 37 | expr: rocketmq_brokeruntime_pmdt_1to2s{Cluster="dev-rmq",Env="开发"} + on(Env, Cluster, brokerIP) rocketmq_brokeruntime_pmdt_2to3s{Cluster="dev-rmq",Env="开发"} + on(Env, Cluster, brokerIP) rocketmq_brokeruntime_pmdt_3to4s{Cluster="dev-rmq",Env="开发"} + on(Env, Cluster, brokerIP) rocketmq_brokeruntime_pmdt_4to5s{Cluster="dev-rmq",Env="开发"} + on (Env, Cluster, brokerIP) rocketmq_brokeruntime_pmdt_5to10s{Cluster="dev-rmq",Env="开发"} + on(Env, Cluster, brokerIP) rocketmq_brokeruntime_pmdt_10stomore{Cluster="dev-rmq",Env="开发"} > 0 38 | for: 0m 39 | labels: 40 | severity: warning 41 | annotations: 42 | description: '{{$labels.Env}}环境, {{$labels.Cluster}}集群, broker: {{$labels.brokerIP}}, 最近1分钟消息提交耗时大于1s的有{{$value}}条' 43 | summary: '最近1分钟存在消息提交耗时太久' 44 | - alert: "RocketMQ集群,发送tps激增" 45 | expr: sum(rocketmq_broker_tps{Cluster="dev-rmq",Env="开发"} - rocketmq_broker_tps{Cluster="dev-rmq",Env="开发"} offset 30s) by (Env, Cluster) > 1000 46 | for: 0m 47 | labels: 48 | severity: warning 49 | annotations: 50 | description: '{{$labels.Env}}环境, {{$labels.Cluster}}集群, 发送tps在过去30s内出现激增, 当前增加量:{{$value}}' 51 | summary: '集群发送tps激增' 52 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /grafana.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [ 3 | { 4 | "name": "DS_PROMETHEUS", 5 | "label": "Prometheus", 6 | "description": "", 7 | "type": "datasource", 8 | "pluginId": "prometheus", 9 | "pluginName": "Prometheus" 10 | } 11 | ], 12 | "annotations": { 13 | "list": [ 14 | { 15 | "builtIn": 1, 16 | "datasource": "-- Grafana --", 17 | "enable": true, 18 | "hide": true, 19 | "iconColor": "rgba(0, 211, 255, 1)", 20 | "name": "Annotations & Alerts", 21 | "type": "dashboard" 22 | } 23 | ] 24 | }, 25 | "editable": true, 26 | "gnetId": null, 27 | "graphTooltip": 0, 28 | "id": 14, 29 | "iteration": 1644395262260, 30 | "links": [], 31 | "panels": [ 32 | { 33 | "aliasColors": {}, 34 | "bars": false, 35 | "dashLength": 10, 36 | "dashes": false, 37 | "datasource": "${DS_PROMETHEUS}", 38 | "fieldConfig": { 39 | "defaults": { 40 | "custom": {} 41 | }, 42 | "overrides": [] 43 | }, 44 | "fill": 1, 45 | "fillGradient": 0, 46 | "gridPos": { 47 | "h": 7, 48 | "w": 11, 49 | "x": 0, 50 | "y": 0 51 | }, 52 | "hiddenSeries": false, 53 | "id": 12, 54 | "legend": { 55 | "avg": false, 56 | "current": false, 57 | "max": false, 58 | "min": false, 59 | "rightSide": true, 60 | "show": false, 61 | "total": false, 62 | "values": false 63 | }, 64 | "lines": true, 65 | "linewidth": 1, 66 | "links": [], 67 | "nullPointMode": "null", 68 | "options": { 69 | "alertThreshold": true, 70 | "dataLinks": [] 71 | }, 72 | "percentage": false, 73 | "pluginVersion": "7.3.1", 74 | "pointradius": 5, 75 | "points": false, 76 | "renderer": "flot", 77 | "seriesOverrides": [], 78 | "spaceLength": 10, 79 | "stack": false, 80 | "steppedLine": false, 81 | "targets": [ 82 | { 83 | "expr": "rocketmq_broker_tps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\"}", 84 | "interval": "", 85 | "legendFormat": "{{broker}}", 86 | "refId": "A" 87 | } 88 | ], 89 | "thresholds": [], 90 | "timeFrom": null, 91 | "timeRegions": [], 92 | "timeShift": null, 93 | "title": "broker发送tps", 94 | "tooltip": { 95 | "shared": true, 96 | "sort": 0, 97 | "value_type": "individual" 98 | }, 99 | "type": "graph", 100 | "xaxis": { 101 | "buckets": null, 102 | "mode": "time", 103 | "name": null, 104 | "show": true, 105 | "values": [] 106 | }, 107 | "yaxes": [ 108 | { 109 | "format": "short", 110 | "label": null, 111 | "logBase": 1, 112 | "max": null, 113 | "min": null, 114 | "show": true 115 | }, 116 | { 117 | "format": "short", 118 | "label": null, 119 | "logBase": 1, 120 | "max": null, 121 | "min": null, 122 | "show": true 123 | } 124 | ], 125 | "yaxis": { 126 | "align": false, 127 | "alignLevel": null 128 | } 129 | }, 130 | { 131 | "aliasColors": {}, 132 | "bars": false, 133 | "dashLength": 10, 134 | "dashes": false, 135 | "datasource": "${DS_PROMETHEUS}", 136 | "fieldConfig": { 137 | "defaults": { 138 | "custom": {} 139 | }, 140 | "overrides": [] 141 | }, 142 | "fill": 1, 143 | "fillGradient": 0, 144 | "gridPos": { 145 | "h": 7, 146 | "w": 13, 147 | "x": 11, 148 | "y": 0 149 | }, 150 | "hiddenSeries": false, 151 | "id": 31, 152 | "legend": { 153 | "avg": false, 154 | "current": false, 155 | "max": false, 156 | "min": false, 157 | "rightSide": true, 158 | "show": false, 159 | "total": false, 160 | "values": false 161 | }, 162 | "lines": true, 163 | "linewidth": 1, 164 | "links": [], 165 | "nullPointMode": "null", 166 | "options": { 167 | "alertThreshold": true, 168 | "dataLinks": [] 169 | }, 170 | "percentage": false, 171 | "pluginVersion": "7.3.1", 172 | "pointradius": 5, 173 | "points": false, 174 | "renderer": "flot", 175 | "seriesOverrides": [], 176 | "spaceLength": 10, 177 | "stack": false, 178 | "steppedLine": false, 179 | "targets": [ 180 | { 181 | "expr": "rocketmq_broker_qps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\"}", 182 | "interval": "", 183 | "legendFormat": " {{broker}}", 184 | "refId": "B" 185 | } 186 | ], 187 | "thresholds": [], 188 | "timeFrom": null, 189 | "timeRegions": [], 190 | "timeShift": null, 191 | "title": "broker消费tps", 192 | "tooltip": { 193 | "shared": true, 194 | "sort": 0, 195 | "value_type": "individual" 196 | }, 197 | "type": "graph", 198 | "xaxis": { 199 | "buckets": null, 200 | "mode": "time", 201 | "name": null, 202 | "show": true, 203 | "values": [] 204 | }, 205 | "yaxes": [ 206 | { 207 | "format": "short", 208 | "label": null, 209 | "logBase": 1, 210 | "max": null, 211 | "min": null, 212 | "show": true 213 | }, 214 | { 215 | "format": "short", 216 | "label": null, 217 | "logBase": 1, 218 | "max": null, 219 | "min": null, 220 | "show": true 221 | } 222 | ], 223 | "yaxis": { 224 | "align": false, 225 | "alignLevel": null 226 | } 227 | }, 228 | { 229 | "aliasColors": {}, 230 | "bars": false, 231 | "dashLength": 10, 232 | "dashes": false, 233 | "datasource": "${DS_PROMETHEUS}", 234 | "fieldConfig": { 235 | "defaults": { 236 | "custom": {} 237 | }, 238 | "overrides": [] 239 | }, 240 | "fill": 1, 241 | "fillGradient": 0, 242 | "gridPos": { 243 | "h": 10, 244 | "w": 15, 245 | "x": 0, 246 | "y": 7 247 | }, 248 | "hiddenSeries": false, 249 | "id": 2, 250 | "legend": { 251 | "alignAsTable": true, 252 | "avg": true, 253 | "current": true, 254 | "hideEmpty": true, 255 | "hideZero": true, 256 | "max": true, 257 | "min": true, 258 | "rightSide": true, 259 | "show": true, 260 | "sort": "current", 261 | "sortDesc": true, 262 | "total": false, 263 | "values": true 264 | }, 265 | "lines": true, 266 | "linewidth": 1, 267 | "links": [], 268 | "nullPointMode": "null", 269 | "options": { 270 | "alertThreshold": true, 271 | "dataLinks": [] 272 | }, 273 | "percentage": false, 274 | "pluginVersion": "7.3.1", 275 | "pointradius": 5, 276 | "points": false, 277 | "renderer": "flot", 278 | "seriesOverrides": [], 279 | "spaceLength": 10, 280 | "stack": false, 281 | "steppedLine": false, 282 | "targets": [ 283 | { 284 | "expr": "rocketmq_producer_tps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\"}", 285 | "format": "time_series", 286 | "hide": false, 287 | "instant": false, 288 | "interval": "", 289 | "intervalFactor": 1, 290 | "legendFormat": "{{broker}}-{{topic}}", 291 | "refId": "A" 292 | } 293 | ], 294 | "thresholds": [], 295 | "timeFrom": null, 296 | "timeRegions": [], 297 | "timeShift": null, 298 | "title": "客户端发送tps", 299 | "tooltip": { 300 | "shared": true, 301 | "sort": 2, 302 | "value_type": "individual" 303 | }, 304 | "type": "graph", 305 | "xaxis": { 306 | "buckets": null, 307 | "mode": "time", 308 | "name": null, 309 | "show": true, 310 | "values": [] 311 | }, 312 | "yaxes": [ 313 | { 314 | "format": "short", 315 | "label": null, 316 | "logBase": 1, 317 | "max": null, 318 | "min": null, 319 | "show": true 320 | }, 321 | { 322 | "format": "short", 323 | "label": null, 324 | "logBase": 1, 325 | "max": null, 326 | "min": null, 327 | "show": true 328 | } 329 | ], 330 | "yaxis": { 331 | "align": false, 332 | "alignLevel": null 333 | } 334 | }, 335 | { 336 | "aliasColors": {}, 337 | "bars": false, 338 | "dashLength": 10, 339 | "dashes": false, 340 | "datasource": "${DS_PROMETHEUS}", 341 | "fieldConfig": { 342 | "defaults": { 343 | "custom": {} 344 | }, 345 | "overrides": [] 346 | }, 347 | "fill": 1, 348 | "fillGradient": 0, 349 | "gridPos": { 350 | "h": 10, 351 | "w": 9, 352 | "x": 15, 353 | "y": 7 354 | }, 355 | "hiddenSeries": false, 356 | "id": 32, 357 | "legend": { 358 | "alignAsTable": true, 359 | "avg": false, 360 | "current": true, 361 | "hideEmpty": true, 362 | "hideZero": true, 363 | "max": false, 364 | "min": false, 365 | "rightSide": true, 366 | "show": true, 367 | "sort": "current", 368 | "sortDesc": true, 369 | "total": false, 370 | "values": true 371 | }, 372 | "lines": true, 373 | "linewidth": 1, 374 | "links": [], 375 | "nullPointMode": "null", 376 | "options": { 377 | "alertThreshold": true, 378 | "dataLinks": [] 379 | }, 380 | "percentage": false, 381 | "pluginVersion": "7.3.1", 382 | "pointradius": 5, 383 | "points": false, 384 | "renderer": "flot", 385 | "seriesOverrides": [], 386 | "spaceLength": 10, 387 | "stack": false, 388 | "steppedLine": false, 389 | "targets": [ 390 | { 391 | "expr": "sum by(topic)(rocketmq_producer_tps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\"})", 392 | "format": "time_series", 393 | "hide": false, 394 | "instant": false, 395 | "interval": "", 396 | "intervalFactor": 1, 397 | "legendFormat": "{{topic}}", 398 | "refId": "A" 399 | } 400 | ], 401 | "thresholds": [], 402 | "timeFrom": null, 403 | "timeRegions": [], 404 | "timeShift": null, 405 | "title": "客户端发送total tps", 406 | "tooltip": { 407 | "shared": true, 408 | "sort": 2, 409 | "value_type": "individual" 410 | }, 411 | "type": "graph", 412 | "xaxis": { 413 | "buckets": null, 414 | "mode": "time", 415 | "name": null, 416 | "show": true, 417 | "values": [] 418 | }, 419 | "yaxes": [ 420 | { 421 | "format": "short", 422 | "label": null, 423 | "logBase": 1, 424 | "max": null, 425 | "min": null, 426 | "show": true 427 | }, 428 | { 429 | "format": "short", 430 | "label": null, 431 | "logBase": 1, 432 | "max": null, 433 | "min": null, 434 | "show": true 435 | } 436 | ], 437 | "yaxis": { 438 | "align": false, 439 | "alignLevel": null 440 | } 441 | }, 442 | { 443 | "aliasColors": {}, 444 | "bars": false, 445 | "dashLength": 10, 446 | "dashes": false, 447 | "datasource": "${DS_PROMETHEUS}", 448 | "description": "消费tps", 449 | "fieldConfig": { 450 | "defaults": { 451 | "custom": {} 452 | }, 453 | "overrides": [] 454 | }, 455 | "fill": 1, 456 | "fillGradient": 0, 457 | "gridPos": { 458 | "h": 9, 459 | "w": 15, 460 | "x": 0, 461 | "y": 17 462 | }, 463 | "hiddenSeries": false, 464 | "id": 4, 465 | "legend": { 466 | "alignAsTable": true, 467 | "avg": true, 468 | "current": true, 469 | "hideEmpty": true, 470 | "hideZero": true, 471 | "max": true, 472 | "min": true, 473 | "rightSide": true, 474 | "show": true, 475 | "sort": "current", 476 | "sortDesc": true, 477 | "total": false, 478 | "values": true 479 | }, 480 | "lines": true, 481 | "linewidth": 1, 482 | "links": [], 483 | "nullPointMode": "null", 484 | "options": { 485 | "alertThreshold": true, 486 | "dataLinks": [] 487 | }, 488 | "percentage": false, 489 | "pluginVersion": "7.3.1", 490 | "pointradius": 5, 491 | "points": false, 492 | "renderer": "flot", 493 | "seriesOverrides": [], 494 | "spaceLength": 10, 495 | "stack": false, 496 | "steppedLine": false, 497 | "targets": [ 498 | { 499 | "expr": "rocketmq_consumer_tps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\",group=~\"$group\"}", 500 | "format": "time_series", 501 | "interval": "", 502 | "intervalFactor": 1, 503 | "legendFormat": "{{broker}}-{{topic}}@{{group}}", 504 | "refId": "A" 505 | } 506 | ], 507 | "thresholds": [], 508 | "timeFrom": null, 509 | "timeRegions": [], 510 | "timeShift": null, 511 | "title": "客户端消费tps", 512 | "tooltip": { 513 | "shared": true, 514 | "sort": 2, 515 | "value_type": "individual" 516 | }, 517 | "type": "graph", 518 | "xaxis": { 519 | "buckets": null, 520 | "mode": "time", 521 | "name": null, 522 | "show": true, 523 | "values": [] 524 | }, 525 | "yaxes": [ 526 | { 527 | "format": "short", 528 | "label": null, 529 | "logBase": 1, 530 | "max": null, 531 | "min": null, 532 | "show": true 533 | }, 534 | { 535 | "format": "short", 536 | "label": null, 537 | "logBase": 1, 538 | "max": null, 539 | "min": null, 540 | "show": true 541 | } 542 | ], 543 | "yaxis": { 544 | "align": false, 545 | "alignLevel": null 546 | } 547 | }, 548 | { 549 | "aliasColors": {}, 550 | "bars": false, 551 | "dashLength": 10, 552 | "dashes": false, 553 | "datasource": "${DS_PROMETHEUS}", 554 | "description": "消费tps", 555 | "fieldConfig": { 556 | "defaults": { 557 | "custom": {} 558 | }, 559 | "overrides": [] 560 | }, 561 | "fill": 1, 562 | "fillGradient": 0, 563 | "gridPos": { 564 | "h": 9, 565 | "w": 9, 566 | "x": 15, 567 | "y": 17 568 | }, 569 | "hiddenSeries": false, 570 | "id": 33, 571 | "legend": { 572 | "alignAsTable": true, 573 | "avg": false, 574 | "current": true, 575 | "hideEmpty": true, 576 | "hideZero": true, 577 | "max": false, 578 | "min": false, 579 | "rightSide": true, 580 | "show": true, 581 | "sort": "current", 582 | "sortDesc": true, 583 | "total": false, 584 | "values": true 585 | }, 586 | "lines": true, 587 | "linewidth": 1, 588 | "links": [], 589 | "nullPointMode": "null", 590 | "options": { 591 | "alertThreshold": true, 592 | "dataLinks": [] 593 | }, 594 | "percentage": false, 595 | "pluginVersion": "7.3.1", 596 | "pointradius": 5, 597 | "points": false, 598 | "renderer": "flot", 599 | "seriesOverrides": [], 600 | "spaceLength": 10, 601 | "stack": false, 602 | "steppedLine": false, 603 | "targets": [ 604 | { 605 | "expr": "sum by(group)(rocketmq_consumer_tps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\",group=~\"$group\"})", 606 | "format": "time_series", 607 | "interval": "", 608 | "intervalFactor": 1, 609 | "legendFormat": "{{group}}", 610 | "refId": "A" 611 | } 612 | ], 613 | "thresholds": [], 614 | "timeFrom": null, 615 | "timeRegions": [], 616 | "timeShift": null, 617 | "title": "客户端消费(consumer group)total tps", 618 | "tooltip": { 619 | "shared": true, 620 | "sort": 2, 621 | "value_type": "individual" 622 | }, 623 | "type": "graph", 624 | "xaxis": { 625 | "buckets": null, 626 | "mode": "time", 627 | "name": null, 628 | "show": true, 629 | "values": [] 630 | }, 631 | "yaxes": [ 632 | { 633 | "format": "short", 634 | "label": null, 635 | "logBase": 1, 636 | "max": null, 637 | "min": null, 638 | "show": true 639 | }, 640 | { 641 | "format": "short", 642 | "label": null, 643 | "logBase": 1, 644 | "max": null, 645 | "min": null, 646 | "show": true 647 | } 648 | ], 649 | "yaxis": { 650 | "align": false, 651 | "alignLevel": null 652 | } 653 | }, 654 | { 655 | "aliasColors": {}, 656 | "bars": false, 657 | "dashLength": 10, 658 | "dashes": false, 659 | "datasource": "${DS_PROMETHEUS}", 660 | "fieldConfig": { 661 | "defaults": { 662 | "custom": {} 663 | }, 664 | "overrides": [] 665 | }, 666 | "fill": 1, 667 | "fillGradient": 0, 668 | "gridPos": { 669 | "h": 9, 670 | "w": 24, 671 | "x": 0, 672 | "y": 26 673 | }, 674 | "hiddenSeries": false, 675 | "id": 18, 676 | "legend": { 677 | "alignAsTable": true, 678 | "avg": false, 679 | "current": true, 680 | "hideEmpty": true, 681 | "hideZero": true, 682 | "max": false, 683 | "min": false, 684 | "rightSide": true, 685 | "show": true, 686 | "sort": "current", 687 | "sortDesc": true, 688 | "total": false, 689 | "values": true 690 | }, 691 | "lines": true, 692 | "linewidth": 1, 693 | "links": [], 694 | "nullPointMode": "null", 695 | "options": { 696 | "alertThreshold": true, 697 | "dataLinks": [] 698 | }, 699 | "percentage": false, 700 | "pluginVersion": "7.3.1", 701 | "pointradius": 5, 702 | "points": false, 703 | "renderer": "flot", 704 | "seriesOverrides": [], 705 | "spaceLength": 10, 706 | "stack": false, 707 | "steppedLine": false, 708 | "targets": [ 709 | { 710 | "expr": " sum(rocketmq_group_diff{Cluster=\"$cluster\",Env=\"$env\",topic=~\"$topic\",group=~\"$group\"}) by (group,topic)", 711 | "interval": "", 712 | "legendFormat": "{{topic}}@{{group}}", 713 | "refId": "A" 714 | } 715 | ], 716 | "thresholds": [], 717 | "timeFrom": null, 718 | "timeRegions": [], 719 | "timeShift": null, 720 | "title": "消息积压", 721 | "tooltip": { 722 | "shared": true, 723 | "sort": 2, 724 | "value_type": "individual" 725 | }, 726 | "type": "graph", 727 | "xaxis": { 728 | "buckets": null, 729 | "mode": "time", 730 | "name": null, 731 | "show": true, 732 | "values": [] 733 | }, 734 | "yaxes": [ 735 | { 736 | "format": "none", 737 | "label": null, 738 | "logBase": 1, 739 | "max": null, 740 | "min": null, 741 | "show": true 742 | }, 743 | { 744 | "format": "short", 745 | "label": null, 746 | "logBase": 1, 747 | "max": null, 748 | "min": null, 749 | "show": true 750 | } 751 | ], 752 | "yaxis": { 753 | "align": false, 754 | "alignLevel": null 755 | } 756 | }, 757 | { 758 | "aliasColors": {}, 759 | "bars": false, 760 | "dashLength": 10, 761 | "dashes": false, 762 | "datasource": "${DS_PROMETHEUS}", 763 | "fieldConfig": { 764 | "defaults": { 765 | "custom": {} 766 | }, 767 | "overrides": [] 768 | }, 769 | "fill": 1, 770 | "fillGradient": 0, 771 | "gridPos": { 772 | "h": 8, 773 | "w": 11, 774 | "x": 0, 775 | "y": 35 776 | }, 777 | "hiddenSeries": false, 778 | "id": 14, 779 | "legend": { 780 | "alignAsTable": true, 781 | "avg": false, 782 | "current": true, 783 | "hideEmpty": true, 784 | "hideZero": true, 785 | "max": false, 786 | "min": false, 787 | "rightSide": true, 788 | "show": true, 789 | "sort": "current", 790 | "sortDesc": true, 791 | "total": false, 792 | "values": true 793 | }, 794 | "lines": true, 795 | "linewidth": 1, 796 | "links": [], 797 | "nullPointMode": "null", 798 | "options": { 799 | "alertThreshold": true, 800 | "dataLinks": [] 801 | }, 802 | "percentage": false, 803 | "pluginVersion": "7.3.1", 804 | "pointradius": 5, 805 | "points": false, 806 | "renderer": "flot", 807 | "seriesOverrides": [], 808 | "spaceLength": 10, 809 | "stack": false, 810 | "steppedLine": false, 811 | "targets": [ 812 | { 813 | "expr": "sum(rocketmq_producer_message_size{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\"}) by(topic)", 814 | "interval": "", 815 | "legendFormat": "{{topic}}", 816 | "refId": "A" 817 | } 818 | ], 819 | "thresholds": [], 820 | "timeFrom": null, 821 | "timeRegions": [], 822 | "timeShift": null, 823 | "title": "每秒发送消息大小", 824 | "tooltip": { 825 | "shared": true, 826 | "sort": 2, 827 | "value_type": "individual" 828 | }, 829 | "type": "graph", 830 | "xaxis": { 831 | "buckets": null, 832 | "mode": "time", 833 | "name": null, 834 | "show": true, 835 | "values": [] 836 | }, 837 | "yaxes": [ 838 | { 839 | "format": "bytes", 840 | "label": null, 841 | "logBase": 1, 842 | "max": null, 843 | "min": null, 844 | "show": true 845 | }, 846 | { 847 | "format": "short", 848 | "label": null, 849 | "logBase": 1, 850 | "max": null, 851 | "min": null, 852 | "show": true 853 | } 854 | ], 855 | "yaxis": { 856 | "align": false, 857 | "alignLevel": null 858 | } 859 | }, 860 | { 861 | "aliasColors": {}, 862 | "bars": false, 863 | "dashLength": 10, 864 | "dashes": false, 865 | "datasource": "${DS_PROMETHEUS}", 866 | "fieldConfig": { 867 | "defaults": { 868 | "custom": {} 869 | }, 870 | "overrides": [] 871 | }, 872 | "fill": 1, 873 | "fillGradient": 0, 874 | "gridPos": { 875 | "h": 8, 876 | "w": 13, 877 | "x": 11, 878 | "y": 35 879 | }, 880 | "hiddenSeries": false, 881 | "id": 16, 882 | "legend": { 883 | "alignAsTable": true, 884 | "avg": false, 885 | "current": true, 886 | "hideEmpty": true, 887 | "hideZero": true, 888 | "max": false, 889 | "min": false, 890 | "rightSide": true, 891 | "show": true, 892 | "sort": "current", 893 | "sortDesc": true, 894 | "total": false, 895 | "values": true 896 | }, 897 | "lines": true, 898 | "linewidth": 1, 899 | "links": [], 900 | "nullPointMode": "null", 901 | "options": { 902 | "alertThreshold": true, 903 | "dataLinks": [] 904 | }, 905 | "percentage": false, 906 | "pluginVersion": "7.3.1", 907 | "pointradius": 5, 908 | "points": false, 909 | "renderer": "flot", 910 | "seriesOverrides": [], 911 | "spaceLength": 10, 912 | "stack": false, 913 | "steppedLine": false, 914 | "targets": [ 915 | { 916 | "expr": "sum(rocketmq_consumer_message_size{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\",group=~\"$group\"}) by (topic, group)", 917 | "interval": "", 918 | "legendFormat": "{{broker}}-{{topic}}@{{group}}", 919 | "refId": "A" 920 | } 921 | ], 922 | "thresholds": [], 923 | "timeFrom": null, 924 | "timeRegions": [], 925 | "timeShift": null, 926 | "title": "每秒消费消息大小", 927 | "tooltip": { 928 | "shared": true, 929 | "sort": 2, 930 | "value_type": "individual" 931 | }, 932 | "type": "graph", 933 | "xaxis": { 934 | "buckets": null, 935 | "mode": "time", 936 | "name": null, 937 | "show": true, 938 | "values": [] 939 | }, 940 | "yaxes": [ 941 | { 942 | "format": "bytes", 943 | "label": null, 944 | "logBase": 1, 945 | "max": null, 946 | "min": null, 947 | "show": true 948 | }, 949 | { 950 | "format": "short", 951 | "label": null, 952 | "logBase": 1, 953 | "max": null, 954 | "min": null, 955 | "show": true 956 | } 957 | ], 958 | "yaxis": { 959 | "align": false, 960 | "alignLevel": null 961 | } 962 | }, 963 | { 964 | "aliasColors": {}, 965 | "bars": false, 966 | "dashLength": 10, 967 | "dashes": false, 968 | "datasource": "${DS_PROMETHEUS}", 969 | "fieldConfig": { 970 | "defaults": { 971 | "custom": {} 972 | }, 973 | "overrides": [] 974 | }, 975 | "fill": 1, 976 | "fillGradient": 0, 977 | "gridPos": { 978 | "h": 10, 979 | "w": 24, 980 | "x": 0, 981 | "y": 43 982 | }, 983 | "hiddenSeries": false, 984 | "id": 20, 985 | "legend": { 986 | "alignAsTable": false, 987 | "avg": false, 988 | "current": false, 989 | "max": false, 990 | "min": false, 991 | "show": true, 992 | "total": false, 993 | "values": false 994 | }, 995 | "lines": true, 996 | "linewidth": 1, 997 | "links": [], 998 | "nullPointMode": "null", 999 | "options": { 1000 | "alertThreshold": true, 1001 | "dataLinks": [] 1002 | }, 1003 | "percentage": false, 1004 | "pluginVersion": "7.3.1", 1005 | "pointradius": 5, 1006 | "points": false, 1007 | "renderer": "flot", 1008 | "seriesOverrides": [], 1009 | "spaceLength": 10, 1010 | "stack": false, 1011 | "steppedLine": false, 1012 | "targets": [ 1013 | { 1014 | "expr": "sum(rocketmq_brokeruntime_pmdt_0ms{Cluster=\"$cluster\",Env=\"$env\"})", 1015 | "instant": false, 1016 | "interval": "", 1017 | "legendFormat": "0ms", 1018 | "refId": "A" 1019 | }, 1020 | { 1021 | "expr": "sum(rocketmq_brokeruntime_pmdt_0to10ms{Cluster=\"$cluster\",Env=\"$env\"})", 1022 | "interval": "", 1023 | "legendFormat": "0-10ms", 1024 | "refId": "B" 1025 | }, 1026 | { 1027 | "expr": "sum(rocketmq_brokeruntime_pmdt_10to50ms{Cluster=\"$cluster\",Env=\"$env\"})", 1028 | "interval": "", 1029 | "legendFormat": "10-50ms", 1030 | "refId": "C" 1031 | }, 1032 | { 1033 | "expr": "sum(rocketmq_brokeruntime_pmdt_50to100ms{Cluster=\"$cluster\",Env=\"$env\"})", 1034 | "interval": "", 1035 | "legendFormat": "50-100ms", 1036 | "refId": "D" 1037 | }, 1038 | { 1039 | "expr": "sum(rocketmq_brokeruntime_pmdt_100to200ms{Cluster=\"$cluster\",Env=\"$env\"})", 1040 | "interval": "", 1041 | "legendFormat": "100-200ms", 1042 | "refId": "E" 1043 | }, 1044 | { 1045 | "expr": "sum(rocketmq_brokeruntime_pmdt_200to500ms{Cluster=\"$cluster\",Env=\"$env\"})", 1046 | "interval": "", 1047 | "legendFormat": "200-500ms", 1048 | "refId": "F" 1049 | }, 1050 | { 1051 | "expr": "sum(rocketmq_brokeruntime_pmdt_500to1s{Cluster=\"$cluster\",Env=\"$env\"})", 1052 | "interval": "", 1053 | "legendFormat": "500ms-1s", 1054 | "refId": "G" 1055 | }, 1056 | { 1057 | "expr": "sum(rocketmq_brokeruntime_pmdt_1to2s{Cluster=\"$cluster\",Env=\"$env\"})", 1058 | "interval": "", 1059 | "legendFormat": "1-2s", 1060 | "refId": "H" 1061 | }, 1062 | { 1063 | "expr": "sum(rocketmq_brokeruntime_pmdt_2to3s{Cluster=\"$cluster\",Env=\"$env\"})", 1064 | "interval": "", 1065 | "legendFormat": "2-3s", 1066 | "refId": "I" 1067 | }, 1068 | { 1069 | "expr": "sum(rocketmq_brokeruntime_pmdt_3to4s{Cluster=\"$cluster\",Env=\"$env\"})+sum(rocketmq_brokeruntime_pmdt_4to5s{Cluster=\"$cluster\",Env=\"$env\"})+sum(rocketmq_brokeruntime_pmdt_5to10s{Cluster=\"$cluster\",Env=\"$env\"})+sum(rocketmq_brokeruntime_pmdt_10stomore{Cluster=\"$cluster\",Env=\"$env\"})", 1070 | "interval": "", 1071 | "legendFormat": ">3s", 1072 | "refId": "J" 1073 | } 1074 | ], 1075 | "thresholds": [], 1076 | "timeFrom": null, 1077 | "timeRegions": [], 1078 | "timeShift": null, 1079 | "title": "broker每分钟写入消息不同耗时区间趋势", 1080 | "tooltip": { 1081 | "shared": true, 1082 | "sort": 0, 1083 | "value_type": "individual" 1084 | }, 1085 | "type": "graph", 1086 | "xaxis": { 1087 | "buckets": null, 1088 | "mode": "time", 1089 | "name": null, 1090 | "show": true, 1091 | "values": [] 1092 | }, 1093 | "yaxes": [ 1094 | { 1095 | "decimals": null, 1096 | "format": "none", 1097 | "label": "", 1098 | "logBase": 1, 1099 | "max": null, 1100 | "min": null, 1101 | "show": true 1102 | }, 1103 | { 1104 | "format": "none", 1105 | "label": null, 1106 | "logBase": 1, 1107 | "max": null, 1108 | "min": null, 1109 | "show": true 1110 | } 1111 | ], 1112 | "yaxis": { 1113 | "align": false, 1114 | "alignLevel": null 1115 | } 1116 | }, 1117 | { 1118 | "datasource": "${DS_PROMETHEUS}", 1119 | "description": "", 1120 | "fieldConfig": { 1121 | "defaults": { 1122 | "color": { 1123 | "mode": "thresholds" 1124 | }, 1125 | "custom": {}, 1126 | "mappings": [], 1127 | "max": 100, 1128 | "min": 0, 1129 | "thresholds": { 1130 | "mode": "absolute", 1131 | "steps": [ 1132 | { 1133 | "color": "purple", 1134 | "value": null 1135 | }, 1136 | { 1137 | "color": "green", 1138 | "value": 0 1139 | }, 1140 | { 1141 | "color": "blue", 1142 | "value": 60 1143 | }, 1144 | { 1145 | "color": "yellow", 1146 | "value": 70 1147 | }, 1148 | { 1149 | "color": "red", 1150 | "value": 85 1151 | } 1152 | ] 1153 | }, 1154 | "unit": "percent" 1155 | }, 1156 | "overrides": [] 1157 | }, 1158 | "gridPos": { 1159 | "h": 7, 1160 | "w": 24, 1161 | "x": 0, 1162 | "y": 53 1163 | }, 1164 | "id": 24, 1165 | "interval": "", 1166 | "links": [], 1167 | "options": { 1168 | "orientation": "auto", 1169 | "reduceOptions": { 1170 | "calcs": [ 1171 | "mean" 1172 | ], 1173 | "fields": "", 1174 | "values": false 1175 | }, 1176 | "showThresholdLabels": true, 1177 | "showThresholdMarkers": true 1178 | }, 1179 | "pluginVersion": "7.3.1", 1180 | "targets": [ 1181 | { 1182 | "expr": "rocketmq_brokeruntime_commitlog_disk_ratio{Cluster=\"$cluster\",Env=\"$env\"}*100", 1183 | "instant": true, 1184 | "interval": "", 1185 | "legendFormat": "{{brokerIP}}", 1186 | "refId": "A" 1187 | } 1188 | ], 1189 | "timeFrom": null, 1190 | "timeShift": null, 1191 | "title": "磁盘空间使用百分比", 1192 | "type": "gauge" 1193 | }, 1194 | { 1195 | "aliasColors": {}, 1196 | "bars": false, 1197 | "dashLength": 10, 1198 | "dashes": false, 1199 | "datasource": "${DS_PROMETHEUS}", 1200 | "fieldConfig": { 1201 | "defaults": { 1202 | "custom": {} 1203 | }, 1204 | "overrides": [] 1205 | }, 1206 | "fill": 1, 1207 | "fillGradient": 0, 1208 | "gridPos": { 1209 | "h": 10, 1210 | "w": 24, 1211 | "x": 0, 1212 | "y": 60 1213 | }, 1214 | "hiddenSeries": false, 1215 | "id": 10, 1216 | "legend": { 1217 | "alignAsTable": true, 1218 | "avg": false, 1219 | "current": true, 1220 | "hideEmpty": true, 1221 | "hideZero": true, 1222 | "max": false, 1223 | "min": false, 1224 | "rightSide": true, 1225 | "show": true, 1226 | "sort": "current", 1227 | "sortDesc": true, 1228 | "total": false, 1229 | "values": true 1230 | }, 1231 | "lines": true, 1232 | "linewidth": 1, 1233 | "links": [], 1234 | "nullPointMode": "null", 1235 | "options": { 1236 | "alertThreshold": true, 1237 | "dataLinks": [] 1238 | }, 1239 | "percentage": false, 1240 | "pluginVersion": "7.3.1", 1241 | "pointradius": 5, 1242 | "points": false, 1243 | "renderer": "flot", 1244 | "seriesOverrides": [], 1245 | "spaceLength": 10, 1246 | "stack": true, 1247 | "steppedLine": false, 1248 | "targets": [ 1249 | { 1250 | "expr": "max(rocketmq_group_get_latency_by_storetime{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",group=~\"$group\",topic=~\"$topic\"}) by(group, topic, broker)", 1251 | "interval": "", 1252 | "legendFormat": "{{broker}}-{{topic}}@{{group}}", 1253 | "refId": "A" 1254 | } 1255 | ], 1256 | "thresholds": [], 1257 | "timeFrom": null, 1258 | "timeRegions": [], 1259 | "timeShift": null, 1260 | "title": "消息消费的滞后时间(存了多久才还没被消费,ms)", 1261 | "tooltip": { 1262 | "shared": true, 1263 | "sort": 2, 1264 | "value_type": "individual" 1265 | }, 1266 | "type": "graph", 1267 | "xaxis": { 1268 | "buckets": null, 1269 | "mode": "time", 1270 | "name": null, 1271 | "show": true, 1272 | "values": [] 1273 | }, 1274 | "yaxes": [ 1275 | { 1276 | "format": "none", 1277 | "label": null, 1278 | "logBase": 1, 1279 | "max": null, 1280 | "min": null, 1281 | "show": true 1282 | }, 1283 | { 1284 | "format": "none", 1285 | "label": null, 1286 | "logBase": 1, 1287 | "max": null, 1288 | "min": null, 1289 | "show": true 1290 | } 1291 | ], 1292 | "yaxis": { 1293 | "align": false, 1294 | "alignLevel": null 1295 | } 1296 | }, 1297 | { 1298 | "aliasColors": {}, 1299 | "bars": false, 1300 | "dashLength": 10, 1301 | "dashes": false, 1302 | "datasource": "${DS_PROMETHEUS}", 1303 | "fieldConfig": { 1304 | "defaults": { 1305 | "custom": {} 1306 | }, 1307 | "overrides": [] 1308 | }, 1309 | "fill": 1, 1310 | "fillGradient": 0, 1311 | "gridPos": { 1312 | "h": 8, 1313 | "w": 24, 1314 | "x": 0, 1315 | "y": 70 1316 | }, 1317 | "hiddenSeries": false, 1318 | "id": 28, 1319 | "legend": { 1320 | "alignAsTable": true, 1321 | "avg": false, 1322 | "current": true, 1323 | "hideEmpty": true, 1324 | "hideZero": false, 1325 | "max": false, 1326 | "min": false, 1327 | "rightSide": true, 1328 | "show": false, 1329 | "total": false, 1330 | "values": true 1331 | }, 1332 | "lines": true, 1333 | "linewidth": 1, 1334 | "links": [], 1335 | "nullPointMode": "null", 1336 | "options": { 1337 | "alertThreshold": true, 1338 | "dataLinks": [] 1339 | }, 1340 | "percentage": false, 1341 | "pluginVersion": "7.3.1", 1342 | "pointradius": 5, 1343 | "points": false, 1344 | "renderer": "flot", 1345 | "repeat": null, 1346 | "repeatDirection": "h", 1347 | "seriesOverrides": [], 1348 | "spaceLength": 10, 1349 | "stack": false, 1350 | "steppedLine": false, 1351 | "targets": [ 1352 | { 1353 | "expr": "rocketmq_brokeruntime_send_threadpoolqueue_headwait_timemills{Cluster=\"$cluster\",Env=\"$env\"}", 1354 | "instant": false, 1355 | "interval": "", 1356 | "legendFormat": "broker(slow time)", 1357 | "refId": "C" 1358 | } 1359 | ], 1360 | "thresholds": [], 1361 | "timeFrom": null, 1362 | "timeRegions": [], 1363 | "timeShift": null, 1364 | "title": "消息发送等待处理耗时", 1365 | "tooltip": { 1366 | "shared": true, 1367 | "sort": 0, 1368 | "value_type": "individual" 1369 | }, 1370 | "type": "graph", 1371 | "xaxis": { 1372 | "buckets": null, 1373 | "mode": "time", 1374 | "name": null, 1375 | "show": true, 1376 | "values": [] 1377 | }, 1378 | "yaxes": [ 1379 | { 1380 | "format": "none", 1381 | "label": null, 1382 | "logBase": 1, 1383 | "max": null, 1384 | "min": null, 1385 | "show": true 1386 | }, 1387 | { 1388 | "format": "short", 1389 | "label": null, 1390 | "logBase": 1, 1391 | "max": null, 1392 | "min": null, 1393 | "show": true 1394 | } 1395 | ], 1396 | "yaxis": { 1397 | "align": false, 1398 | "alignLevel": null 1399 | } 1400 | } 1401 | ], 1402 | "refresh": "10s", 1403 | "schemaVersion": 26, 1404 | "style": "dark", 1405 | "tags": [], 1406 | "templating": { 1407 | "list": [ 1408 | { 1409 | "allValue": null, 1410 | "current": { 1411 | "selected": false, 1412 | "text": "测试", 1413 | "value": "测试" 1414 | }, 1415 | "datasource": "${DS_PROMETHEUS}", 1416 | "definition": "label_values(rocketmq_broker_tps,Env)", 1417 | "error": null, 1418 | "hide": 0, 1419 | "includeAll": false, 1420 | "label": "环境", 1421 | "multi": false, 1422 | "name": "env", 1423 | "options": [], 1424 | "query": "label_values(rocketmq_broker_tps,Env)", 1425 | "refresh": 2, 1426 | "regex": "", 1427 | "skipUrlSync": false, 1428 | "sort": 0, 1429 | "tagValuesQuery": "", 1430 | "tags": [], 1431 | "tagsQuery": "", 1432 | "type": "query", 1433 | "useTags": false 1434 | }, 1435 | { 1436 | "allValue": null, 1437 | "current": { 1438 | "selected": false, 1439 | "text": "test-2m-2s", 1440 | "value": "test-2m-2s" 1441 | }, 1442 | "datasource": "${DS_PROMETHEUS}", 1443 | "definition": "label_values(rocketmq_broker_tps{Env=~\"$env\"},Cluster)", 1444 | "error": null, 1445 | "hide": 0, 1446 | "includeAll": false, 1447 | "label": "集群", 1448 | "multi": false, 1449 | "name": "cluster", 1450 | "options": [], 1451 | "query": "label_values(rocketmq_broker_tps{Env=~\"$env\"},Cluster)", 1452 | "refresh": 2, 1453 | "regex": "", 1454 | "skipUrlSync": false, 1455 | "sort": 2, 1456 | "tagValuesQuery": "", 1457 | "tags": [], 1458 | "tagsQuery": "", 1459 | "type": "query", 1460 | "useTags": false 1461 | }, 1462 | { 1463 | "allValue": null, 1464 | "current": { 1465 | "selected": false, 1466 | "text": "All", 1467 | "value": "$__all" 1468 | }, 1469 | "datasource": "${DS_PROMETHEUS}", 1470 | "definition": "label_values(rocketmq_broker_tps{Cluster=~\"$cluster\"},broker)", 1471 | "error": null, 1472 | "hide": 0, 1473 | "includeAll": true, 1474 | "label": "Broker名称", 1475 | "multi": true, 1476 | "name": "broker", 1477 | "options": [], 1478 | "query": "label_values(rocketmq_broker_tps{Cluster=~\"$cluster\"},broker)", 1479 | "refresh": 2, 1480 | "regex": "", 1481 | "skipUrlSync": false, 1482 | "sort": 0, 1483 | "tagValuesQuery": "", 1484 | "tags": [], 1485 | "tagsQuery": "", 1486 | "type": "query", 1487 | "useTags": false 1488 | }, 1489 | { 1490 | "allValue": null, 1491 | "current": { 1492 | "selected": true, 1493 | "text": [ 1494 | "All" 1495 | ], 1496 | "value": [ 1497 | "$__all" 1498 | ] 1499 | }, 1500 | "datasource": "${DS_PROMETHEUS}", 1501 | "definition": "label_values( rocketmq_producer_tps{Cluster=~\"$cluster\"}, topic)", 1502 | "error": null, 1503 | "hide": 0, 1504 | "includeAll": true, 1505 | "label": "主题", 1506 | "multi": true, 1507 | "name": "topic", 1508 | "options": [], 1509 | "query": "label_values( rocketmq_producer_tps{Cluster=~\"$cluster\"}, topic)", 1510 | "refresh": 2, 1511 | "regex": "/^(?!.*?SYS).*$/", 1512 | "skipUrlSync": false, 1513 | "sort": 0, 1514 | "tagValuesQuery": "", 1515 | "tags": [], 1516 | "tagsQuery": "", 1517 | "type": "query", 1518 | "useTags": false 1519 | }, 1520 | { 1521 | "allValue": null, 1522 | "current": { 1523 | "selected": true, 1524 | "text": [ 1525 | "All" 1526 | ], 1527 | "value": [ 1528 | "$__all" 1529 | ] 1530 | }, 1531 | "datasource": "${DS_PROMETHEUS}", 1532 | "definition": "label_values(rocketmq_consumer_tps{Cluster=~\"$cluster\"}, group)", 1533 | "error": null, 1534 | "hide": 0, 1535 | "includeAll": true, 1536 | "label": "消费组", 1537 | "multi": true, 1538 | "name": "group", 1539 | "options": [], 1540 | "query": "label_values(rocketmq_consumer_tps{Cluster=~\"$cluster\"}, group)", 1541 | "refresh": 2, 1542 | "regex": "/^(?!.*?SYS).*$/", 1543 | "skipUrlSync": false, 1544 | "sort": 0, 1545 | "tagValuesQuery": "", 1546 | "tags": [], 1547 | "tagsQuery": "", 1548 | "type": "query", 1549 | "useTags": false 1550 | } 1551 | ] 1552 | }, 1553 | "time": { 1554 | "from": "now-1h", 1555 | "to": "now" 1556 | }, 1557 | "timepicker": { 1558 | "refresh_intervals": [ 1559 | "5s", 1560 | "10s", 1561 | "30s", 1562 | "1m", 1563 | "5m", 1564 | "15m", 1565 | "30m", 1566 | "1h", 1567 | "2h", 1568 | "1d" 1569 | ], 1570 | "time_options": [ 1571 | "5m", 1572 | "15m", 1573 | "1h", 1574 | "6h", 1575 | "12h", 1576 | "24h", 1577 | "2d", 1578 | "7d", 1579 | "30d" 1580 | ] 1581 | }, 1582 | "timezone": "", 1583 | "title": "rocketmq", 1584 | "uid": "zkVx1w_iz", 1585 | "version": 2 1586 | } 1587 | -------------------------------------------------------------------------------- /rocketmq-grafana.json: -------------------------------------------------------------------------------- 1 | { 2 | "__inputs": [ 3 | { 4 | "name": "DS_PROMETHEUS", 5 | "label": "Prometheus", 6 | "description": "", 7 | "type": "datasource", 8 | "pluginId": "prometheus", 9 | "pluginName": "Prometheus" 10 | } 11 | ], 12 | "__requires": [ 13 | { 14 | "type": "panel", 15 | "id": "bargauge", 16 | "name": "Bar gauge", 17 | "version": "" 18 | }, 19 | { 20 | "type": "grafana", 21 | "id": "grafana", 22 | "name": "Grafana", 23 | "version": "" 24 | }, 25 | { 26 | "type": "panel", 27 | "id": "graph", 28 | "name": "Graph", 29 | "version": "" 30 | }, 31 | { 32 | "type": "datasource", 33 | "id": "prometheus", 34 | "name": "Prometheus", 35 | "version": "1.0.0" 36 | }, 37 | { 38 | "type": "panel", 39 | "id": "stat", 40 | "name": "Stat", 41 | "version": "" 42 | }, 43 | { 44 | "type": "panel", 45 | "id": "table-old", 46 | "name": "Table (old)", 47 | "version": "" 48 | } 49 | ], 50 | "annotations": { 51 | "list": [ 52 | { 53 | "builtIn": 1, 54 | "datasource": "-- Grafana --", 55 | "enable": true, 56 | "hide": true, 57 | "iconColor": "rgba(0, 211, 255, 1)", 58 | "name": "Annotations & Alerts", 59 | "type": "dashboard" 60 | } 61 | ] 62 | }, 63 | "editable": true, 64 | "gnetId": null, 65 | "graphTooltip": 0, 66 | "id": 9, 67 | "iteration": 1646363608714, 68 | "links": [], 69 | "panels": [ 70 | { 71 | "collapsed": true, 72 | "datasource": null, 73 | "gridPos": { 74 | "h": 1, 75 | "w": 24, 76 | "x": 0, 77 | "y": 0 78 | }, 79 | "id": 71, 80 | "panels": [ 81 | { 82 | "columns": [], 83 | "datasource": "${DS_PROMETHEUS}", 84 | "description": "", 85 | "fieldConfig": { 86 | "defaults": { 87 | "custom": {} 88 | }, 89 | "overrides": [] 90 | }, 91 | "fontSize": "80%", 92 | "gridPos": { 93 | "h": 4, 94 | "w": 24, 95 | "x": 0, 96 | "y": 1 97 | }, 98 | "id": 69, 99 | "pageSize": 20, 100 | "showHeader": true, 101 | "sort": { 102 | "col": null, 103 | "desc": false 104 | }, 105 | "styles": [ 106 | { 107 | "$$hashKey": "object:11326", 108 | "alias": "Broker 名称", 109 | "align": "auto", 110 | "colorMode": null, 111 | "colors": [ 112 | "rgba(245, 54, 54, 0.9)", 113 | "rgba(237, 129, 40, 0.89)", 114 | "rgba(50, 172, 45, 0.97)" 115 | ], 116 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 117 | "decimals": 2, 118 | "link": false, 119 | "linkTargetBlank": false, 120 | "linkTooltip": "消费端明细", 121 | "linkUrl": "d/zkVx1w_iz/rocketmq?orgId=1&var-env=${Env}&var-cluster=${Cluster}&var-broker=${broker}&var-topic=All&var-group=$group", 122 | "mappingType": 1, 123 | "pattern": "broker", 124 | "preserveFormat": false, 125 | "thresholds": [], 126 | "type": "string", 127 | "unit": "short" 128 | }, 129 | { 130 | "$$hashKey": "object:11327", 131 | "alias": "broker IP", 132 | "align": "auto", 133 | "colorMode": null, 134 | "colors": [ 135 | "rgba(50, 172, 45, 0.97)", 136 | "rgba(237, 129, 40, 0.89)", 137 | "rgba(245, 54, 54, 0.9)" 138 | ], 139 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 140 | "decimals": null, 141 | "mappingType": 1, 142 | "pattern": "brokerIP", 143 | "thresholds": [ 144 | "1", 145 | "100" 146 | ], 147 | "type": "number", 148 | "unit": "none" 149 | }, 150 | { 151 | "$$hashKey": "object:11328", 152 | "alias": "集群", 153 | "align": "auto", 154 | "colorMode": null, 155 | "colors": [ 156 | "rgba(245, 54, 54, 0.9)", 157 | "rgba(237, 129, 40, 0.89)", 158 | "rgba(50, 172, 45, 0.97)" 159 | ], 160 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 161 | "decimals": 2, 162 | "mappingType": 1, 163 | "pattern": "cluster", 164 | "thresholds": [], 165 | "type": "string", 166 | "unit": "short" 167 | }, 168 | { 169 | "$$hashKey": "object:11794", 170 | "alias": "最早的消息时间", 171 | "align": "auto", 172 | "colorMode": null, 173 | "colors": [ 174 | "rgba(245, 54, 54, 0.9)", 175 | "rgba(237, 129, 40, 0.89)", 176 | "rgba(50, 172, 45, 0.97)" 177 | ], 178 | "dateFormat": "YYYY-MM-DD HH:mm:ss.SSS", 179 | "decimals": 2, 180 | "mappingType": 1, 181 | "pattern": "Value #B", 182 | "thresholds": [], 183 | "type": "date", 184 | "unit": "short" 185 | }, 186 | { 187 | "$$hashKey": "object:11329", 188 | "alias": "", 189 | "align": "auto", 190 | "colorMode": null, 191 | "colors": [ 192 | "rgba(245, 54, 54, 0.9)", 193 | "rgba(237, 129, 40, 0.89)", 194 | "rgba(50, 172, 45, 0.97)" 195 | ], 196 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 197 | "decimals": 2, 198 | "mappingType": 1, 199 | "pattern": "/.*/", 200 | "thresholds": [], 201 | "type": "hidden", 202 | "unit": "short" 203 | } 204 | ], 205 | "targets": [ 206 | { 207 | "expr": "rocketmq_broker_tps{Cluster=\"$cluster\",Env=\"$env\"}", 208 | "format": "table", 209 | "instant": true, 210 | "interval": "", 211 | "legendFormat": "集群信息", 212 | "refId": "A" 213 | } 214 | ], 215 | "timeFrom": null, 216 | "timeShift": null, 217 | "title": "集群信息", 218 | "transform": "table", 219 | "type": "table-old" 220 | } 221 | ], 222 | "title": "集群信息", 223 | "type": "row" 224 | }, 225 | { 226 | "collapsed": true, 227 | "datasource": null, 228 | "gridPos": { 229 | "h": 1, 230 | "w": 24, 231 | "x": 0, 232 | "y": 1 233 | }, 234 | "id": 41, 235 | "panels": [ 236 | { 237 | "datasource": "${DS_PROMETHEUS}", 238 | "description": "", 239 | "fieldConfig": { 240 | "defaults": { 241 | "color": { 242 | "mode": "thresholds" 243 | }, 244 | "custom": {}, 245 | "mappings": [], 246 | "max": 100, 247 | "min": 0, 248 | "thresholds": { 249 | "mode": "absolute", 250 | "steps": [ 251 | { 252 | "color": "purple", 253 | "value": null 254 | }, 255 | { 256 | "color": "green", 257 | "value": 0 258 | }, 259 | { 260 | "color": "blue", 261 | "value": 60 262 | }, 263 | { 264 | "color": "yellow", 265 | "value": 70 266 | }, 267 | { 268 | "color": "red", 269 | "value": 85 270 | } 271 | ] 272 | }, 273 | "unit": "percent" 274 | }, 275 | "overrides": [] 276 | }, 277 | "gridPos": { 278 | "h": 7, 279 | "w": 24, 280 | "x": 0, 281 | "y": 2 282 | }, 283 | "id": 24, 284 | "interval": "", 285 | "links": [], 286 | "options": { 287 | "orientation": "auto", 288 | "reduceOptions": { 289 | "calcs": [ 290 | "mean" 291 | ], 292 | "fields": "", 293 | "values": false 294 | }, 295 | "showThresholdLabels": true, 296 | "showThresholdMarkers": true 297 | }, 298 | "pluginVersion": "7.3.1", 299 | "targets": [ 300 | { 301 | "expr": "rocketmq_brokeruntime_commitlog_disk_ratio{Cluster=\"$cluster\",Env=\"$env\"}*100", 302 | "instant": true, 303 | "interval": "", 304 | "legendFormat": "{{brokerIP}}", 305 | "refId": "A" 306 | } 307 | ], 308 | "timeFrom": null, 309 | "timeShift": null, 310 | "title": "磁盘空间使用百分比", 311 | "type": "gauge" 312 | }, 313 | { 314 | "aliasColors": {}, 315 | "bars": false, 316 | "dashLength": 10, 317 | "dashes": false, 318 | "datasource": "${DS_PROMETHEUS}", 319 | "decimals": 0, 320 | "description": "", 321 | "fieldConfig": { 322 | "defaults": { 323 | "custom": {} 324 | }, 325 | "overrides": [] 326 | }, 327 | "fill": 1, 328 | "fillGradient": 0, 329 | "gridPos": { 330 | "h": 9, 331 | "w": 12, 332 | "x": 0, 333 | "y": 9 334 | }, 335 | "hiddenSeries": false, 336 | "id": 20, 337 | "legend": { 338 | "alignAsTable": false, 339 | "avg": false, 340 | "current": false, 341 | "max": false, 342 | "min": false, 343 | "show": true, 344 | "total": false, 345 | "values": false 346 | }, 347 | "lines": true, 348 | "linewidth": 1, 349 | "links": [], 350 | "nullPointMode": "null", 351 | "options": { 352 | "alertThreshold": true, 353 | "dataLinks": [] 354 | }, 355 | "percentage": false, 356 | "pluginVersion": "7.3.1", 357 | "pointradius": 5, 358 | "points": false, 359 | "renderer": "flot", 360 | "seriesOverrides": [], 361 | "spaceLength": 10, 362 | "stack": false, 363 | "steppedLine": false, 364 | "targets": [ 365 | { 366 | "expr": "sum(rocketmq_brokeruntime_pmdt_0ms{Cluster=\"$cluster\",Env=\"$env\"})", 367 | "instant": false, 368 | "interval": "", 369 | "legendFormat": "0ms", 370 | "refId": "A" 371 | }, 372 | { 373 | "expr": "sum(rocketmq_brokeruntime_pmdt_0to10ms{Cluster=\"$cluster\",Env=\"$env\"})", 374 | "interval": "", 375 | "legendFormat": "0-10ms", 376 | "refId": "B" 377 | }, 378 | { 379 | "expr": "sum(rocketmq_brokeruntime_pmdt_10to50ms{Cluster=\"$cluster\",Env=\"$env\"})", 380 | "interval": "", 381 | "legendFormat": "10-50ms", 382 | "refId": "C" 383 | }, 384 | { 385 | "expr": "sum(rocketmq_brokeruntime_pmdt_50to100ms{Cluster=\"$cluster\",Env=\"$env\"})", 386 | "interval": "", 387 | "legendFormat": "50-100ms", 388 | "refId": "D" 389 | }, 390 | { 391 | "expr": "sum(rocketmq_brokeruntime_pmdt_100to200ms{Cluster=\"$cluster\",Env=\"$env\"})", 392 | "interval": "", 393 | "legendFormat": "100-200ms", 394 | "refId": "E" 395 | }, 396 | { 397 | "expr": "sum(rocketmq_brokeruntime_pmdt_200to500ms{Cluster=\"$cluster\",Env=\"$env\"})", 398 | "interval": "", 399 | "legendFormat": "200-500ms", 400 | "refId": "F" 401 | }, 402 | { 403 | "expr": "sum(rocketmq_brokeruntime_pmdt_500to1s{Cluster=\"$cluster\",Env=\"$env\"})", 404 | "interval": "", 405 | "legendFormat": "500ms-1s", 406 | "refId": "G" 407 | }, 408 | { 409 | "expr": "sum(rocketmq_brokeruntime_pmdt_1to2s{Cluster=\"$cluster\",Env=\"$env\"})", 410 | "interval": "", 411 | "legendFormat": "1-2s", 412 | "refId": "H" 413 | }, 414 | { 415 | "expr": "sum(rocketmq_brokeruntime_pmdt_2to3s{Cluster=\"$cluster\",Env=\"$env\"})", 416 | "interval": "", 417 | "legendFormat": "2-3s", 418 | "refId": "I" 419 | }, 420 | { 421 | "expr": "sum(rocketmq_brokeruntime_pmdt_3to4s{Cluster=\"$cluster\",Env=\"$env\"})+sum(rocketmq_brokeruntime_pmdt_4to5s{Cluster=\"$cluster\",Env=\"$env\"})+sum(rocketmq_brokeruntime_pmdt_5to10s{Cluster=\"$cluster\",Env=\"$env\"})+sum(rocketmq_brokeruntime_pmdt_10stomore{Cluster=\"$cluster\",Env=\"$env\"})", 422 | "interval": "", 423 | "legendFormat": ">3s", 424 | "refId": "J" 425 | } 426 | ], 427 | "thresholds": [], 428 | "timeFrom": null, 429 | "timeRegions": [], 430 | "timeShift": null, 431 | "title": "集群每分钟写入消息不同耗时区间趋势", 432 | "tooltip": { 433 | "shared": true, 434 | "sort": 0, 435 | "value_type": "individual" 436 | }, 437 | "type": "graph", 438 | "xaxis": { 439 | "buckets": null, 440 | "mode": "time", 441 | "name": null, 442 | "show": true, 443 | "values": [] 444 | }, 445 | "yaxes": [ 446 | { 447 | "decimals": 0, 448 | "format": "none", 449 | "label": "", 450 | "logBase": 1, 451 | "max": null, 452 | "min": null, 453 | "show": true 454 | }, 455 | { 456 | "decimals": -1, 457 | "format": "none", 458 | "label": null, 459 | "logBase": 1, 460 | "max": null, 461 | "min": null, 462 | "show": true 463 | } 464 | ], 465 | "yaxis": { 466 | "align": false, 467 | "alignLevel": null 468 | } 469 | }, 470 | { 471 | "aliasColors": {}, 472 | "bars": false, 473 | "dashLength": 10, 474 | "dashes": false, 475 | "datasource": "${DS_PROMETHEUS}", 476 | "decimals": 0, 477 | "description": "", 478 | "fieldConfig": { 479 | "defaults": { 480 | "custom": {} 481 | }, 482 | "overrides": [] 483 | }, 484 | "fill": 1, 485 | "fillGradient": 0, 486 | "gridPos": { 487 | "h": 9, 488 | "w": 12, 489 | "x": 12, 490 | "y": 9 491 | }, 492 | "hiddenSeries": false, 493 | "id": 57, 494 | "legend": { 495 | "alignAsTable": true, 496 | "avg": false, 497 | "current": true, 498 | "max": true, 499 | "min": false, 500 | "rightSide": true, 501 | "show": true, 502 | "sort": "current", 503 | "sortDesc": true, 504 | "total": false, 505 | "values": true 506 | }, 507 | "lines": true, 508 | "linewidth": 1, 509 | "links": [], 510 | "nullPointMode": "null", 511 | "options": { 512 | "alertThreshold": true, 513 | "dataLinks": [] 514 | }, 515 | "percentage": false, 516 | "pluginVersion": "7.3.1", 517 | "pointradius": 5, 518 | "points": false, 519 | "renderer": "flot", 520 | "seriesOverrides": [], 521 | "spaceLength": 10, 522 | "stack": false, 523 | "steppedLine": false, 524 | "targets": [ 525 | { 526 | "expr": "sum(rocketmq_brokeruntime_pmdt_200to500ms{Cluster=\"$cluster\",Env=\"$env\"}) by (brokerIP) + sum(rocketmq_brokeruntime_pmdt_500to1s{Cluster=\"$cluster\",Env=\"$env\"}) by (brokerIP)+sum(rocketmq_brokeruntime_pmdt_1to2s{Cluster=\"$cluster\",Env=\"$env\"}) by (brokerIP)+sum(rocketmq_brokeruntime_pmdt_2to3s{Cluster=\"$cluster\",Env=\"$env\"}) by (brokerIP)+sum(rocketmq_brokeruntime_pmdt_3to4s{Cluster=\"$cluster\",Env=\"$env\"}) by (brokerIP)+sum(rocketmq_brokeruntime_pmdt_4to5s{Cluster=\"$cluster\",Env=\"$env\"}) by (brokerIP)+sum(rocketmq_brokeruntime_pmdt_5to10s{Cluster=\"$cluster\",Env=\"$env\"}) by (brokerIP)+sum(rocketmq_brokeruntime_pmdt_10stomore{Cluster=\"$cluster\",Env=\"$env\"}) by (brokerIP)", 527 | "interval": "", 528 | "legendFormat": "{{brokerIP}}", 529 | "refId": "F" 530 | } 531 | ], 532 | "thresholds": [], 533 | "timeFrom": null, 534 | "timeRegions": [], 535 | "timeShift": null, 536 | "title": "可能限流的broker(写入耗时超过200ms的消息数大于0)", 537 | "tooltip": { 538 | "shared": true, 539 | "sort": 0, 540 | "value_type": "individual" 541 | }, 542 | "type": "graph", 543 | "xaxis": { 544 | "buckets": null, 545 | "mode": "time", 546 | "name": null, 547 | "show": true, 548 | "values": [] 549 | }, 550 | "yaxes": [ 551 | { 552 | "decimals": -2, 553 | "format": "none", 554 | "label": "", 555 | "logBase": 1, 556 | "max": null, 557 | "min": null, 558 | "show": true 559 | }, 560 | { 561 | "decimals": 0, 562 | "format": "none", 563 | "label": null, 564 | "logBase": 1, 565 | "max": null, 566 | "min": null, 567 | "show": true 568 | } 569 | ], 570 | "yaxis": { 571 | "align": false, 572 | "alignLevel": null 573 | } 574 | }, 575 | { 576 | "aliasColors": {}, 577 | "bars": false, 578 | "dashLength": 10, 579 | "dashes": false, 580 | "datasource": "${DS_PROMETHEUS}", 581 | "decimals": 0, 582 | "description": "broker收到请求后暂存队列,经过多久后才进行处理,反映broker此时的繁忙程度", 583 | "fieldConfig": { 584 | "defaults": { 585 | "custom": {} 586 | }, 587 | "overrides": [] 588 | }, 589 | "fill": 1, 590 | "fillGradient": 0, 591 | "gridPos": { 592 | "h": 8, 593 | "w": 12, 594 | "x": 0, 595 | "y": 18 596 | }, 597 | "hiddenSeries": false, 598 | "id": 28, 599 | "legend": { 600 | "alignAsTable": true, 601 | "avg": false, 602 | "current": true, 603 | "hideEmpty": true, 604 | "hideZero": false, 605 | "max": true, 606 | "min": false, 607 | "rightSide": true, 608 | "show": true, 609 | "total": false, 610 | "values": true 611 | }, 612 | "lines": true, 613 | "linewidth": 1, 614 | "links": [], 615 | "nullPointMode": "null", 616 | "options": { 617 | "alertThreshold": true, 618 | "dataLinks": [] 619 | }, 620 | "percentage": false, 621 | "pluginVersion": "7.3.1", 622 | "pointradius": 5, 623 | "points": false, 624 | "renderer": "flot", 625 | "repeat": null, 626 | "repeatDirection": "h", 627 | "seriesOverrides": [], 628 | "spaceLength": 10, 629 | "stack": false, 630 | "steppedLine": false, 631 | "targets": [ 632 | { 633 | "expr": "rocketmq_brokeruntime_send_threadpoolqueue_headwait_timemills{Cluster=\"$cluster\",Env=\"$env\"}", 634 | "instant": false, 635 | "interval": "", 636 | "legendFormat": "{{brokerIP}}-发送请求", 637 | "refId": "C" 638 | }, 639 | { 640 | "expr": "rocketmq_brokeruntime_pull_threadpoolqueue_headwait_timemills{Cluster=\"$cluster\",Env=\"$env\"}", 641 | "instant": false, 642 | "interval": "", 643 | "legendFormat": "{{brokerIP}}-拉取请求", 644 | "refId": "A" 645 | }, 646 | { 647 | "expr": "rocketmq_brokeruntime_query_threadpoolqueue_headwait_timemills{Cluster=\"$cluster\",Env=\"$env\"}", 648 | "instant": false, 649 | "interval": "", 650 | "legendFormat": "{{brokerIP}}-查询请求", 651 | "refId": "B" 652 | } 653 | ], 654 | "thresholds": [], 655 | "timeFrom": null, 656 | "timeRegions": [], 657 | "timeShift": null, 658 | "title": "请求等待处理耗时", 659 | "tooltip": { 660 | "shared": true, 661 | "sort": 0, 662 | "value_type": "individual" 663 | }, 664 | "type": "graph", 665 | "xaxis": { 666 | "buckets": null, 667 | "mode": "time", 668 | "name": null, 669 | "show": true, 670 | "values": [] 671 | }, 672 | "yaxes": [ 673 | { 674 | "decimals": 0, 675 | "format": "ms", 676 | "label": null, 677 | "logBase": 1, 678 | "max": null, 679 | "min": null, 680 | "show": true 681 | }, 682 | { 683 | "decimals": 0, 684 | "format": "short", 685 | "label": null, 686 | "logBase": 1, 687 | "max": null, 688 | "min": null, 689 | "show": true 690 | } 691 | ], 692 | "yaxis": { 693 | "align": false, 694 | "alignLevel": null 695 | } 696 | }, 697 | { 698 | "aliasColors": {}, 699 | "bars": false, 700 | "dashLength": 10, 701 | "dashes": false, 702 | "datasource": "${DS_PROMETHEUS}", 703 | "decimals": 0, 704 | "description": "broker收到请求后暂存队列,经过多久后才进行处理,反映broker此时的繁忙程度", 705 | "fieldConfig": { 706 | "defaults": { 707 | "custom": {} 708 | }, 709 | "overrides": [] 710 | }, 711 | "fill": 1, 712 | "fillGradient": 0, 713 | "gridPos": { 714 | "h": 8, 715 | "w": 12, 716 | "x": 12, 717 | "y": 18 718 | }, 719 | "hiddenSeries": false, 720 | "id": 68, 721 | "legend": { 722 | "alignAsTable": true, 723 | "avg": true, 724 | "current": true, 725 | "hideEmpty": true, 726 | "hideZero": false, 727 | "max": true, 728 | "min": false, 729 | "rightSide": true, 730 | "show": true, 731 | "total": false, 732 | "values": true 733 | }, 734 | "lines": true, 735 | "linewidth": 1, 736 | "links": [], 737 | "nullPointMode": "null", 738 | "options": { 739 | "alertThreshold": true, 740 | "dataLinks": [] 741 | }, 742 | "percentage": false, 743 | "pluginVersion": "7.3.1", 744 | "pointradius": 5, 745 | "points": false, 746 | "renderer": "flot", 747 | "repeatDirection": "h", 748 | "seriesOverrides": [], 749 | "spaceLength": 10, 750 | "stack": false, 751 | "steppedLine": false, 752 | "targets": [ 753 | { 754 | "expr": "rocketmq_brokeruntime_dispatch_behind_bytes{Cluster=\"$cluster\",Env=\"$env\"}", 755 | "instant": false, 756 | "interval": "", 757 | "legendFormat": "{{brokerIP}}", 758 | "refId": "C" 759 | } 760 | ], 761 | "thresholds": [], 762 | "timeFrom": null, 763 | "timeRegions": [], 764 | "timeShift": null, 765 | "title": "已提交commit log等待构建消费队列的消息大小", 766 | "tooltip": { 767 | "shared": true, 768 | "sort": 0, 769 | "value_type": "individual" 770 | }, 771 | "type": "graph", 772 | "xaxis": { 773 | "buckets": null, 774 | "mode": "time", 775 | "name": null, 776 | "show": true, 777 | "values": [] 778 | }, 779 | "yaxes": [ 780 | { 781 | "decimals": 2, 782 | "format": "bytes", 783 | "label": null, 784 | "logBase": 1, 785 | "max": null, 786 | "min": null, 787 | "show": true 788 | }, 789 | { 790 | "decimals": 0, 791 | "format": "short", 792 | "label": null, 793 | "logBase": 1, 794 | "max": null, 795 | "min": null, 796 | "show": false 797 | } 798 | ], 799 | "yaxis": { 800 | "align": false, 801 | "alignLevel": null 802 | } 803 | }, 804 | { 805 | "aliasColors": {}, 806 | "bars": false, 807 | "dashLength": 10, 808 | "dashes": false, 809 | "datasource": "${DS_PROMETHEUS}", 810 | "fieldConfig": { 811 | "defaults": { 812 | "custom": {} 813 | }, 814 | "overrides": [] 815 | }, 816 | "fill": 1, 817 | "fillGradient": 0, 818 | "gridPos": { 819 | "h": 10, 820 | "w": 24, 821 | "x": 0, 822 | "y": 26 823 | }, 824 | "hiddenSeries": false, 825 | "id": 10, 826 | "legend": { 827 | "alignAsTable": true, 828 | "avg": false, 829 | "current": true, 830 | "hideEmpty": true, 831 | "hideZero": true, 832 | "max": false, 833 | "min": false, 834 | "rightSide": true, 835 | "show": true, 836 | "sort": "current", 837 | "sortDesc": true, 838 | "total": false, 839 | "values": true 840 | }, 841 | "lines": true, 842 | "linewidth": 1, 843 | "links": [], 844 | "nullPointMode": "null", 845 | "options": { 846 | "alertThreshold": true, 847 | "dataLinks": [] 848 | }, 849 | "percentage": false, 850 | "pluginVersion": "7.3.1", 851 | "pointradius": 5, 852 | "points": false, 853 | "renderer": "flot", 854 | "seriesOverrides": [], 855 | "spaceLength": 10, 856 | "stack": true, 857 | "steppedLine": false, 858 | "targets": [ 859 | { 860 | "expr": "max(rocketmq_group_get_latency_by_storetime{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",group=~\"$group\",topic=~\"$topic\"}) by(group, topic, broker)", 861 | "interval": "", 862 | "legendFormat": "{{broker}}-{{topic}}@{{group}}", 863 | "refId": "A" 864 | } 865 | ], 866 | "thresholds": [], 867 | "timeFrom": null, 868 | "timeRegions": [], 869 | "timeShift": null, 870 | "title": "消息消费的滞后时间(发送到broker经过多少时间还未消费)", 871 | "tooltip": { 872 | "shared": true, 873 | "sort": 2, 874 | "value_type": "individual" 875 | }, 876 | "type": "graph", 877 | "xaxis": { 878 | "buckets": null, 879 | "mode": "time", 880 | "name": null, 881 | "show": true, 882 | "values": [] 883 | }, 884 | "yaxes": [ 885 | { 886 | "format": "ms", 887 | "label": null, 888 | "logBase": 1, 889 | "max": null, 890 | "min": null, 891 | "show": true 892 | }, 893 | { 894 | "format": "none", 895 | "label": null, 896 | "logBase": 1, 897 | "max": null, 898 | "min": null, 899 | "show": true 900 | } 901 | ], 902 | "yaxis": { 903 | "align": false, 904 | "alignLevel": null 905 | } 906 | }, 907 | { 908 | "columns": [], 909 | "datasource": "${DS_PROMETHEUS}", 910 | "description": "", 911 | "fieldConfig": { 912 | "defaults": { 913 | "custom": {} 914 | }, 915 | "overrides": [] 916 | }, 917 | "fontSize": "80%", 918 | "gridPos": { 919 | "h": 4, 920 | "w": 24, 921 | "x": 0, 922 | "y": 36 923 | }, 924 | "id": 72, 925 | "pageSize": 20, 926 | "showHeader": true, 927 | "sort": { 928 | "col": null, 929 | "desc": false 930 | }, 931 | "styles": [ 932 | { 933 | "$$hashKey": "object:5172", 934 | "alias": "broker IP", 935 | "align": "auto", 936 | "colorMode": null, 937 | "colors": [ 938 | "rgba(50, 172, 45, 0.97)", 939 | "rgba(237, 129, 40, 0.89)", 940 | "rgba(245, 54, 54, 0.9)" 941 | ], 942 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 943 | "decimals": null, 944 | "mappingType": 1, 945 | "pattern": "brokerIP", 946 | "thresholds": [ 947 | "1", 948 | "100" 949 | ], 950 | "type": "string", 951 | "unit": "none" 952 | }, 953 | { 954 | "$$hashKey": "object:5173", 955 | "alias": "昨天生产消息数", 956 | "align": "auto", 957 | "colorMode": null, 958 | "colors": [ 959 | "rgba(245, 54, 54, 0.9)", 960 | "rgba(237, 129, 40, 0.89)", 961 | "rgba(50, 172, 45, 0.97)" 962 | ], 963 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 964 | "decimals": 0, 965 | "mappingType": 1, 966 | "pattern": "Value #A", 967 | "thresholds": [], 968 | "type": "number", 969 | "unit": "none" 970 | }, 971 | { 972 | "$$hashKey": "object:5174", 973 | "alias": "今天生产消息数", 974 | "align": "auto", 975 | "colorMode": null, 976 | "colors": [ 977 | "rgba(245, 54, 54, 0.9)", 978 | "rgba(237, 129, 40, 0.89)", 979 | "rgba(50, 172, 45, 0.97)" 980 | ], 981 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 982 | "decimals": 0, 983 | "mappingType": 1, 984 | "pattern": "Value #B", 985 | "thresholds": [], 986 | "type": "number", 987 | "unit": "none" 988 | }, 989 | { 990 | "$$hashKey": "object:5413", 991 | "alias": "昨天消费消息数", 992 | "align": "auto", 993 | "colorMode": null, 994 | "colors": [ 995 | "rgba(245, 54, 54, 0.9)", 996 | "rgba(237, 129, 40, 0.89)", 997 | "rgba(50, 172, 45, 0.97)" 998 | ], 999 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 1000 | "decimals": 0, 1001 | "mappingType": 1, 1002 | "pattern": "Value #C", 1003 | "thresholds": [], 1004 | "type": "number", 1005 | "unit": "none" 1006 | }, 1007 | { 1008 | "$$hashKey": "object:9276", 1009 | "alias": "今天消费消息数", 1010 | "align": "auto", 1011 | "colorMode": null, 1012 | "colors": [ 1013 | "rgba(245, 54, 54, 0.9)", 1014 | "rgba(237, 129, 40, 0.89)", 1015 | "rgba(50, 172, 45, 0.97)" 1016 | ], 1017 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 1018 | "decimals": 0, 1019 | "mappingType": 1, 1020 | "pattern": "Value #D", 1021 | "thresholds": [], 1022 | "type": "number", 1023 | "unit": "none" 1024 | }, 1025 | { 1026 | "$$hashKey": "object:17774", 1027 | "alias": "最早的有效消息时间", 1028 | "align": "auto", 1029 | "colorMode": null, 1030 | "colors": [ 1031 | "rgba(245, 54, 54, 0.9)", 1032 | "rgba(237, 129, 40, 0.89)", 1033 | "rgba(50, 172, 45, 0.97)" 1034 | ], 1035 | "dateFormat": "YYYY-MM-DD HH:mm:ss.SSS", 1036 | "decimals": 2, 1037 | "mappingType": 1, 1038 | "pattern": "Value #E", 1039 | "thresholds": [], 1040 | "type": "date", 1041 | "unit": "short" 1042 | }, 1043 | { 1044 | "$$hashKey": "object:5175", 1045 | "alias": "", 1046 | "align": "auto", 1047 | "colorMode": null, 1048 | "colors": [ 1049 | "rgba(245, 54, 54, 0.9)", 1050 | "rgba(237, 129, 40, 0.89)", 1051 | "rgba(50, 172, 45, 0.97)" 1052 | ], 1053 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 1054 | "decimals": 2, 1055 | "mappingType": 1, 1056 | "pattern": "/.*/", 1057 | "thresholds": [], 1058 | "type": "hidden", 1059 | "unit": "short" 1060 | } 1061 | ], 1062 | "targets": [ 1063 | { 1064 | "expr": "rocketmq_brokeruntime_msg_puttotal_todaymorning{Cluster=\"$cluster\",Env=\"$env\"}-rocketmq_brokeruntime_msg_puttotal_yesterdaymorning{Cluster=\"$cluster\",Env=\"$env\"}", 1065 | "format": "table", 1066 | "hide": false, 1067 | "instant": true, 1068 | "interval": "", 1069 | "legendFormat": "昨天写入", 1070 | "refId": "A" 1071 | }, 1072 | { 1073 | "expr": "rocketmq_brokeruntime_msg_put_total_today_now{Cluster=\"$cluster\",Env=\"$env\"} - rocketmq_brokeruntime_msg_puttotal_todaymorning{Cluster=\"$cluster\",Env=\"$env\"}", 1074 | "format": "table", 1075 | "hide": false, 1076 | "instant": true, 1077 | "interval": "", 1078 | "legendFormat": "今天写入", 1079 | "refId": "B" 1080 | }, 1081 | { 1082 | "expr": "rocketmq_brokeruntime_msg_gettotal_todaymorning{Cluster=\"$cluster\",Env=\"$env\"}-rocketmq_brokeruntime_msg_gettotal_yesterdaymorning{Cluster=\"$cluster\",Env=\"$env\"}", 1083 | "format": "table", 1084 | "hide": false, 1085 | "instant": true, 1086 | "interval": "", 1087 | "legendFormat": "昨天读出", 1088 | "refId": "C" 1089 | }, 1090 | { 1091 | "expr": "rocketmq_brokeruntime_msg_gettotal_today_now{Cluster=\"$cluster\",Env=\"$env\"} - rocketmq_brokeruntime_msg_gettotal_todaymorning{Cluster=\"$cluster\",Env=\"$env\"}", 1092 | "format": "table", 1093 | "hide": false, 1094 | "instant": true, 1095 | "interval": "", 1096 | "legendFormat": "今天读出", 1097 | "refId": "D" 1098 | }, 1099 | { 1100 | "expr": "rocketmq_brokeruntime_earliest_message_timestamp{Cluster=\"$cluster\",Env=\"$env\"}", 1101 | "format": "table", 1102 | "hide": false, 1103 | "instant": true, 1104 | "interval": "", 1105 | "legendFormat": "min消息时间", 1106 | "refId": "E" 1107 | } 1108 | ], 1109 | "timeFrom": null, 1110 | "timeShift": null, 1111 | "title": "消息状态", 1112 | "transform": "table", 1113 | "transformations": [], 1114 | "type": "table-old" 1115 | } 1116 | ], 1117 | "title": "集群运行状态", 1118 | "type": "row" 1119 | }, 1120 | { 1121 | "collapsed": true, 1122 | "datasource": null, 1123 | "gridPos": { 1124 | "h": 1, 1125 | "w": 24, 1126 | "x": 0, 1127 | "y": 2 1128 | }, 1129 | "id": 35, 1130 | "panels": [ 1131 | { 1132 | "aliasColors": {}, 1133 | "bars": false, 1134 | "dashLength": 10, 1135 | "dashes": false, 1136 | "datasource": "${DS_PROMETHEUS}", 1137 | "fieldConfig": { 1138 | "defaults": { 1139 | "custom": {} 1140 | }, 1141 | "overrides": [] 1142 | }, 1143 | "fill": 1, 1144 | "fillGradient": 0, 1145 | "gridPos": { 1146 | "h": 7, 1147 | "w": 11, 1148 | "x": 0, 1149 | "y": 3 1150 | }, 1151 | "hiddenSeries": false, 1152 | "id": 12, 1153 | "legend": { 1154 | "avg": false, 1155 | "current": false, 1156 | "max": false, 1157 | "min": false, 1158 | "rightSide": true, 1159 | "show": false, 1160 | "total": false, 1161 | "values": false 1162 | }, 1163 | "lines": true, 1164 | "linewidth": 1, 1165 | "links": [], 1166 | "nullPointMode": "null", 1167 | "options": { 1168 | "alertThreshold": true, 1169 | "dataLinks": [] 1170 | }, 1171 | "percentage": false, 1172 | "pluginVersion": "7.3.1", 1173 | "pointradius": 5, 1174 | "points": false, 1175 | "renderer": "flot", 1176 | "seriesOverrides": [], 1177 | "spaceLength": 10, 1178 | "stack": false, 1179 | "steppedLine": false, 1180 | "targets": [ 1181 | { 1182 | "expr": "rocketmq_broker_tps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\"}", 1183 | "interval": "", 1184 | "legendFormat": "{{broker}}", 1185 | "refId": "A" 1186 | } 1187 | ], 1188 | "thresholds": [], 1189 | "timeFrom": null, 1190 | "timeRegions": [], 1191 | "timeShift": null, 1192 | "title": "broker发送tps", 1193 | "tooltip": { 1194 | "shared": true, 1195 | "sort": 0, 1196 | "value_type": "individual" 1197 | }, 1198 | "type": "graph", 1199 | "xaxis": { 1200 | "buckets": null, 1201 | "mode": "time", 1202 | "name": null, 1203 | "show": true, 1204 | "values": [] 1205 | }, 1206 | "yaxes": [ 1207 | { 1208 | "$$hashKey": "object:16195", 1209 | "format": "short", 1210 | "label": null, 1211 | "logBase": 1, 1212 | "max": null, 1213 | "min": null, 1214 | "show": true 1215 | }, 1216 | { 1217 | "$$hashKey": "object:16196", 1218 | "format": "short", 1219 | "label": null, 1220 | "logBase": 1, 1221 | "max": null, 1222 | "min": null, 1223 | "show": true 1224 | } 1225 | ], 1226 | "yaxis": { 1227 | "align": false, 1228 | "alignLevel": null 1229 | } 1230 | }, 1231 | { 1232 | "aliasColors": {}, 1233 | "bars": false, 1234 | "dashLength": 10, 1235 | "dashes": false, 1236 | "datasource": "${DS_PROMETHEUS}", 1237 | "fieldConfig": { 1238 | "defaults": { 1239 | "custom": {} 1240 | }, 1241 | "overrides": [] 1242 | }, 1243 | "fill": 1, 1244 | "fillGradient": 0, 1245 | "gridPos": { 1246 | "h": 7, 1247 | "w": 13, 1248 | "x": 11, 1249 | "y": 3 1250 | }, 1251 | "hiddenSeries": false, 1252 | "id": 31, 1253 | "legend": { 1254 | "avg": false, 1255 | "current": false, 1256 | "max": false, 1257 | "min": false, 1258 | "rightSide": true, 1259 | "show": false, 1260 | "total": false, 1261 | "values": false 1262 | }, 1263 | "lines": true, 1264 | "linewidth": 1, 1265 | "links": [], 1266 | "nullPointMode": "null", 1267 | "options": { 1268 | "alertThreshold": true, 1269 | "dataLinks": [] 1270 | }, 1271 | "percentage": false, 1272 | "pluginVersion": "7.3.1", 1273 | "pointradius": 5, 1274 | "points": false, 1275 | "renderer": "flot", 1276 | "seriesOverrides": [], 1277 | "spaceLength": 10, 1278 | "stack": false, 1279 | "steppedLine": false, 1280 | "targets": [ 1281 | { 1282 | "expr": "rocketmq_broker_qps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\"}", 1283 | "interval": "", 1284 | "legendFormat": " {{broker}}", 1285 | "refId": "B" 1286 | } 1287 | ], 1288 | "thresholds": [], 1289 | "timeFrom": null, 1290 | "timeRegions": [], 1291 | "timeShift": null, 1292 | "title": "broker消费tps", 1293 | "tooltip": { 1294 | "shared": true, 1295 | "sort": 0, 1296 | "value_type": "individual" 1297 | }, 1298 | "type": "graph", 1299 | "xaxis": { 1300 | "buckets": null, 1301 | "mode": "time", 1302 | "name": null, 1303 | "show": true, 1304 | "values": [] 1305 | }, 1306 | "yaxes": [ 1307 | { 1308 | "format": "short", 1309 | "label": null, 1310 | "logBase": 1, 1311 | "max": null, 1312 | "min": null, 1313 | "show": true 1314 | }, 1315 | { 1316 | "format": "short", 1317 | "label": null, 1318 | "logBase": 1, 1319 | "max": null, 1320 | "min": null, 1321 | "show": true 1322 | } 1323 | ], 1324 | "yaxis": { 1325 | "align": false, 1326 | "alignLevel": null 1327 | } 1328 | }, 1329 | { 1330 | "aliasColors": {}, 1331 | "bars": false, 1332 | "dashLength": 10, 1333 | "dashes": false, 1334 | "datasource": "${DS_PROMETHEUS}", 1335 | "fieldConfig": { 1336 | "defaults": { 1337 | "custom": {} 1338 | }, 1339 | "overrides": [] 1340 | }, 1341 | "fill": 1, 1342 | "fillGradient": 0, 1343 | "gridPos": { 1344 | "h": 10, 1345 | "w": 15, 1346 | "x": 0, 1347 | "y": 10 1348 | }, 1349 | "hiddenSeries": false, 1350 | "id": 2, 1351 | "legend": { 1352 | "alignAsTable": true, 1353 | "avg": true, 1354 | "current": true, 1355 | "hideEmpty": true, 1356 | "hideZero": true, 1357 | "max": true, 1358 | "min": true, 1359 | "rightSide": true, 1360 | "show": true, 1361 | "sort": "current", 1362 | "sortDesc": true, 1363 | "total": false, 1364 | "values": true 1365 | }, 1366 | "lines": true, 1367 | "linewidth": 1, 1368 | "links": [], 1369 | "nullPointMode": "null", 1370 | "options": { 1371 | "alertThreshold": true, 1372 | "dataLinks": [] 1373 | }, 1374 | "percentage": false, 1375 | "pluginVersion": "7.3.1", 1376 | "pointradius": 5, 1377 | "points": false, 1378 | "renderer": "flot", 1379 | "seriesOverrides": [], 1380 | "spaceLength": 10, 1381 | "stack": false, 1382 | "steppedLine": false, 1383 | "targets": [ 1384 | { 1385 | "expr": "rocketmq_producer_tps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\"}", 1386 | "format": "time_series", 1387 | "hide": false, 1388 | "instant": false, 1389 | "interval": "", 1390 | "intervalFactor": 1, 1391 | "legendFormat": "{{broker}}-{{topic}}", 1392 | "refId": "A" 1393 | } 1394 | ], 1395 | "thresholds": [], 1396 | "timeFrom": null, 1397 | "timeRegions": [], 1398 | "timeShift": null, 1399 | "title": "客户端发送tps", 1400 | "tooltip": { 1401 | "shared": true, 1402 | "sort": 2, 1403 | "value_type": "individual" 1404 | }, 1405 | "type": "graph", 1406 | "xaxis": { 1407 | "buckets": null, 1408 | "mode": "time", 1409 | "name": null, 1410 | "show": true, 1411 | "values": [] 1412 | }, 1413 | "yaxes": [ 1414 | { 1415 | "format": "short", 1416 | "label": null, 1417 | "logBase": 1, 1418 | "max": null, 1419 | "min": null, 1420 | "show": true 1421 | }, 1422 | { 1423 | "format": "short", 1424 | "label": null, 1425 | "logBase": 1, 1426 | "max": null, 1427 | "min": null, 1428 | "show": true 1429 | } 1430 | ], 1431 | "yaxis": { 1432 | "align": false, 1433 | "alignLevel": null 1434 | } 1435 | }, 1436 | { 1437 | "aliasColors": {}, 1438 | "bars": false, 1439 | "dashLength": 10, 1440 | "dashes": false, 1441 | "datasource": "${DS_PROMETHEUS}", 1442 | "fieldConfig": { 1443 | "defaults": { 1444 | "custom": {} 1445 | }, 1446 | "overrides": [] 1447 | }, 1448 | "fill": 1, 1449 | "fillGradient": 0, 1450 | "gridPos": { 1451 | "h": 10, 1452 | "w": 9, 1453 | "x": 15, 1454 | "y": 10 1455 | }, 1456 | "hiddenSeries": false, 1457 | "id": 32, 1458 | "legend": { 1459 | "alignAsTable": true, 1460 | "avg": false, 1461 | "current": true, 1462 | "hideEmpty": true, 1463 | "hideZero": true, 1464 | "max": false, 1465 | "min": false, 1466 | "rightSide": true, 1467 | "show": true, 1468 | "sort": "current", 1469 | "sortDesc": true, 1470 | "total": false, 1471 | "values": true 1472 | }, 1473 | "lines": true, 1474 | "linewidth": 1, 1475 | "links": [], 1476 | "nullPointMode": "null", 1477 | "options": { 1478 | "alertThreshold": true, 1479 | "dataLinks": [] 1480 | }, 1481 | "percentage": false, 1482 | "pluginVersion": "7.3.1", 1483 | "pointradius": 5, 1484 | "points": false, 1485 | "renderer": "flot", 1486 | "seriesOverrides": [], 1487 | "spaceLength": 10, 1488 | "stack": false, 1489 | "steppedLine": false, 1490 | "targets": [ 1491 | { 1492 | "expr": "sum by(topic)(rocketmq_producer_tps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\"})", 1493 | "format": "time_series", 1494 | "hide": false, 1495 | "instant": false, 1496 | "interval": "", 1497 | "intervalFactor": 1, 1498 | "legendFormat": "{{topic}}", 1499 | "refId": "A" 1500 | } 1501 | ], 1502 | "thresholds": [], 1503 | "timeFrom": null, 1504 | "timeRegions": [], 1505 | "timeShift": null, 1506 | "title": "客户端发送total tps", 1507 | "tooltip": { 1508 | "shared": true, 1509 | "sort": 2, 1510 | "value_type": "individual" 1511 | }, 1512 | "type": "graph", 1513 | "xaxis": { 1514 | "buckets": null, 1515 | "mode": "time", 1516 | "name": null, 1517 | "show": true, 1518 | "values": [] 1519 | }, 1520 | "yaxes": [ 1521 | { 1522 | "format": "short", 1523 | "label": null, 1524 | "logBase": 1, 1525 | "max": null, 1526 | "min": null, 1527 | "show": true 1528 | }, 1529 | { 1530 | "format": "short", 1531 | "label": null, 1532 | "logBase": 1, 1533 | "max": null, 1534 | "min": null, 1535 | "show": true 1536 | } 1537 | ], 1538 | "yaxis": { 1539 | "align": false, 1540 | "alignLevel": null 1541 | } 1542 | }, 1543 | { 1544 | "aliasColors": {}, 1545 | "bars": false, 1546 | "dashLength": 10, 1547 | "dashes": false, 1548 | "datasource": "${DS_PROMETHEUS}", 1549 | "description": "消费tps", 1550 | "fieldConfig": { 1551 | "defaults": { 1552 | "custom": {} 1553 | }, 1554 | "overrides": [] 1555 | }, 1556 | "fill": 1, 1557 | "fillGradient": 0, 1558 | "gridPos": { 1559 | "h": 9, 1560 | "w": 15, 1561 | "x": 0, 1562 | "y": 20 1563 | }, 1564 | "hiddenSeries": false, 1565 | "id": 4, 1566 | "legend": { 1567 | "alignAsTable": true, 1568 | "avg": true, 1569 | "current": true, 1570 | "hideEmpty": true, 1571 | "hideZero": true, 1572 | "max": true, 1573 | "min": true, 1574 | "rightSide": true, 1575 | "show": true, 1576 | "sort": "current", 1577 | "sortDesc": true, 1578 | "total": false, 1579 | "values": true 1580 | }, 1581 | "lines": true, 1582 | "linewidth": 1, 1583 | "links": [], 1584 | "nullPointMode": "null", 1585 | "options": { 1586 | "alertThreshold": true, 1587 | "dataLinks": [] 1588 | }, 1589 | "percentage": false, 1590 | "pluginVersion": "7.3.1", 1591 | "pointradius": 5, 1592 | "points": false, 1593 | "renderer": "flot", 1594 | "seriesOverrides": [], 1595 | "spaceLength": 10, 1596 | "stack": false, 1597 | "steppedLine": false, 1598 | "targets": [ 1599 | { 1600 | "expr": "rocketmq_consumer_tps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\",group=~\"$group\"}", 1601 | "format": "time_series", 1602 | "interval": "", 1603 | "intervalFactor": 1, 1604 | "legendFormat": "{{broker}}-{{topic}}@{{group}}", 1605 | "refId": "A" 1606 | } 1607 | ], 1608 | "thresholds": [], 1609 | "timeFrom": null, 1610 | "timeRegions": [], 1611 | "timeShift": null, 1612 | "title": "客户端消费tps", 1613 | "tooltip": { 1614 | "shared": true, 1615 | "sort": 2, 1616 | "value_type": "individual" 1617 | }, 1618 | "type": "graph", 1619 | "xaxis": { 1620 | "buckets": null, 1621 | "mode": "time", 1622 | "name": null, 1623 | "show": true, 1624 | "values": [] 1625 | }, 1626 | "yaxes": [ 1627 | { 1628 | "format": "short", 1629 | "label": null, 1630 | "logBase": 1, 1631 | "max": null, 1632 | "min": null, 1633 | "show": true 1634 | }, 1635 | { 1636 | "format": "short", 1637 | "label": null, 1638 | "logBase": 1, 1639 | "max": null, 1640 | "min": null, 1641 | "show": true 1642 | } 1643 | ], 1644 | "yaxis": { 1645 | "align": false, 1646 | "alignLevel": null 1647 | } 1648 | }, 1649 | { 1650 | "aliasColors": {}, 1651 | "bars": false, 1652 | "dashLength": 10, 1653 | "dashes": false, 1654 | "datasource": "${DS_PROMETHEUS}", 1655 | "description": "消费tps", 1656 | "fieldConfig": { 1657 | "defaults": { 1658 | "custom": {} 1659 | }, 1660 | "overrides": [] 1661 | }, 1662 | "fill": 1, 1663 | "fillGradient": 0, 1664 | "gridPos": { 1665 | "h": 9, 1666 | "w": 9, 1667 | "x": 15, 1668 | "y": 20 1669 | }, 1670 | "hiddenSeries": false, 1671 | "id": 33, 1672 | "legend": { 1673 | "alignAsTable": true, 1674 | "avg": false, 1675 | "current": true, 1676 | "hideEmpty": true, 1677 | "hideZero": true, 1678 | "max": false, 1679 | "min": false, 1680 | "rightSide": true, 1681 | "show": true, 1682 | "sort": "current", 1683 | "sortDesc": true, 1684 | "total": false, 1685 | "values": true 1686 | }, 1687 | "lines": true, 1688 | "linewidth": 1, 1689 | "links": [], 1690 | "nullPointMode": "null", 1691 | "options": { 1692 | "alertThreshold": true, 1693 | "dataLinks": [] 1694 | }, 1695 | "percentage": false, 1696 | "pluginVersion": "7.3.1", 1697 | "pointradius": 5, 1698 | "points": false, 1699 | "renderer": "flot", 1700 | "seriesOverrides": [], 1701 | "spaceLength": 10, 1702 | "stack": false, 1703 | "steppedLine": false, 1704 | "targets": [ 1705 | { 1706 | "expr": "sum by(group)(rocketmq_consumer_tps{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\",group=~\"$group\"})", 1707 | "format": "time_series", 1708 | "interval": "", 1709 | "intervalFactor": 1, 1710 | "legendFormat": "{{group}}", 1711 | "refId": "A" 1712 | } 1713 | ], 1714 | "thresholds": [], 1715 | "timeFrom": null, 1716 | "timeRegions": [], 1717 | "timeShift": null, 1718 | "title": "客户端消费total tps", 1719 | "tooltip": { 1720 | "shared": true, 1721 | "sort": 2, 1722 | "value_type": "individual" 1723 | }, 1724 | "type": "graph", 1725 | "xaxis": { 1726 | "buckets": null, 1727 | "mode": "time", 1728 | "name": null, 1729 | "show": true, 1730 | "values": [] 1731 | }, 1732 | "yaxes": [ 1733 | { 1734 | "format": "short", 1735 | "label": null, 1736 | "logBase": 1, 1737 | "max": null, 1738 | "min": null, 1739 | "show": true 1740 | }, 1741 | { 1742 | "format": "short", 1743 | "label": null, 1744 | "logBase": 1, 1745 | "max": null, 1746 | "min": null, 1747 | "show": true 1748 | } 1749 | ], 1750 | "yaxis": { 1751 | "align": false, 1752 | "alignLevel": null 1753 | } 1754 | } 1755 | ], 1756 | "title": "消息吞吐量", 1757 | "type": "row" 1758 | }, 1759 | { 1760 | "collapsed": true, 1761 | "datasource": null, 1762 | "gridPos": { 1763 | "h": 1, 1764 | "w": 24, 1765 | "x": 0, 1766 | "y": 3 1767 | }, 1768 | "id": 37, 1769 | "panels": [ 1770 | { 1771 | "aliasColors": {}, 1772 | "bars": false, 1773 | "dashLength": 10, 1774 | "dashes": false, 1775 | "datasource": "${DS_PROMETHEUS}", 1776 | "fieldConfig": { 1777 | "defaults": { 1778 | "custom": {} 1779 | }, 1780 | "overrides": [] 1781 | }, 1782 | "fill": 1, 1783 | "fillGradient": 0, 1784 | "gridPos": { 1785 | "h": 8, 1786 | "w": 11, 1787 | "x": 0, 1788 | "y": 4 1789 | }, 1790 | "hiddenSeries": false, 1791 | "id": 42, 1792 | "legend": { 1793 | "alignAsTable": false, 1794 | "avg": false, 1795 | "current": false, 1796 | "hideEmpty": true, 1797 | "hideZero": true, 1798 | "max": false, 1799 | "min": false, 1800 | "rightSide": false, 1801 | "show": true, 1802 | "sort": "current", 1803 | "sortDesc": true, 1804 | "total": false, 1805 | "values": false 1806 | }, 1807 | "lines": true, 1808 | "linewidth": 1, 1809 | "links": [], 1810 | "nullPointMode": "null", 1811 | "options": { 1812 | "alertThreshold": true, 1813 | "dataLinks": [] 1814 | }, 1815 | "percentage": false, 1816 | "pluginVersion": "7.3.1", 1817 | "pointradius": 5, 1818 | "points": false, 1819 | "renderer": "flot", 1820 | "seriesOverrides": [], 1821 | "spaceLength": 10, 1822 | "stack": false, 1823 | "steppedLine": false, 1824 | "targets": [ 1825 | { 1826 | "expr": "sum(rocketmq_producer_message_size{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\"}) by (broker)", 1827 | "interval": "", 1828 | "legendFormat": "{{broker}}", 1829 | "refId": "A" 1830 | } 1831 | ], 1832 | "thresholds": [], 1833 | "timeFrom": null, 1834 | "timeRegions": [], 1835 | "timeShift": null, 1836 | "title": "broker每秒发送消息流量大小", 1837 | "tooltip": { 1838 | "shared": true, 1839 | "sort": 2, 1840 | "value_type": "individual" 1841 | }, 1842 | "type": "graph", 1843 | "xaxis": { 1844 | "buckets": null, 1845 | "mode": "time", 1846 | "name": null, 1847 | "show": true, 1848 | "values": [] 1849 | }, 1850 | "yaxes": [ 1851 | { 1852 | "format": "bytes", 1853 | "label": null, 1854 | "logBase": 1, 1855 | "max": null, 1856 | "min": null, 1857 | "show": true 1858 | }, 1859 | { 1860 | "format": "short", 1861 | "label": null, 1862 | "logBase": 1, 1863 | "max": null, 1864 | "min": null, 1865 | "show": true 1866 | } 1867 | ], 1868 | "yaxis": { 1869 | "align": false, 1870 | "alignLevel": null 1871 | } 1872 | }, 1873 | { 1874 | "aliasColors": {}, 1875 | "bars": false, 1876 | "dashLength": 10, 1877 | "dashes": false, 1878 | "datasource": "${DS_PROMETHEUS}", 1879 | "fieldConfig": { 1880 | "defaults": { 1881 | "custom": {} 1882 | }, 1883 | "overrides": [] 1884 | }, 1885 | "fill": 1, 1886 | "fillGradient": 0, 1887 | "gridPos": { 1888 | "h": 8, 1889 | "w": 13, 1890 | "x": 11, 1891 | "y": 4 1892 | }, 1893 | "hiddenSeries": false, 1894 | "id": 43, 1895 | "legend": { 1896 | "alignAsTable": false, 1897 | "avg": false, 1898 | "current": false, 1899 | "hideEmpty": true, 1900 | "hideZero": true, 1901 | "max": false, 1902 | "min": false, 1903 | "rightSide": false, 1904 | "show": true, 1905 | "sort": "current", 1906 | "sortDesc": true, 1907 | "total": false, 1908 | "values": false 1909 | }, 1910 | "lines": true, 1911 | "linewidth": 1, 1912 | "links": [], 1913 | "nullPointMode": "null", 1914 | "options": { 1915 | "alertThreshold": true, 1916 | "dataLinks": [] 1917 | }, 1918 | "percentage": false, 1919 | "pluginVersion": "7.3.1", 1920 | "pointradius": 5, 1921 | "points": false, 1922 | "renderer": "flot", 1923 | "seriesOverrides": [], 1924 | "spaceLength": 10, 1925 | "stack": false, 1926 | "steppedLine": false, 1927 | "targets": [ 1928 | { 1929 | "expr": "sum(rocketmq_consumer_message_size{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\"}) by (broker)", 1930 | "interval": "", 1931 | "legendFormat": "{{broker}}", 1932 | "refId": "A" 1933 | } 1934 | ], 1935 | "thresholds": [], 1936 | "timeFrom": null, 1937 | "timeRegions": [], 1938 | "timeShift": null, 1939 | "title": "broker每秒消费消息流量大小", 1940 | "tooltip": { 1941 | "shared": true, 1942 | "sort": 2, 1943 | "value_type": "individual" 1944 | }, 1945 | "type": "graph", 1946 | "xaxis": { 1947 | "buckets": null, 1948 | "mode": "time", 1949 | "name": null, 1950 | "show": true, 1951 | "values": [] 1952 | }, 1953 | "yaxes": [ 1954 | { 1955 | "format": "bytes", 1956 | "label": null, 1957 | "logBase": 1, 1958 | "max": null, 1959 | "min": null, 1960 | "show": true 1961 | }, 1962 | { 1963 | "format": "short", 1964 | "label": null, 1965 | "logBase": 1, 1966 | "max": null, 1967 | "min": null, 1968 | "show": true 1969 | } 1970 | ], 1971 | "yaxis": { 1972 | "align": false, 1973 | "alignLevel": null 1974 | } 1975 | }, 1976 | { 1977 | "aliasColors": {}, 1978 | "bars": false, 1979 | "dashLength": 10, 1980 | "dashes": false, 1981 | "datasource": "${DS_PROMETHEUS}", 1982 | "fieldConfig": { 1983 | "defaults": { 1984 | "custom": {} 1985 | }, 1986 | "overrides": [] 1987 | }, 1988 | "fill": 1, 1989 | "fillGradient": 0, 1990 | "gridPos": { 1991 | "h": 8, 1992 | "w": 11, 1993 | "x": 0, 1994 | "y": 12 1995 | }, 1996 | "hiddenSeries": false, 1997 | "id": 14, 1998 | "legend": { 1999 | "alignAsTable": true, 2000 | "avg": false, 2001 | "current": true, 2002 | "hideEmpty": true, 2003 | "hideZero": true, 2004 | "max": false, 2005 | "min": false, 2006 | "rightSide": true, 2007 | "show": true, 2008 | "sort": "current", 2009 | "sortDesc": true, 2010 | "total": false, 2011 | "values": true 2012 | }, 2013 | "lines": true, 2014 | "linewidth": 1, 2015 | "links": [], 2016 | "nullPointMode": "null", 2017 | "options": { 2018 | "alertThreshold": true, 2019 | "dataLinks": [] 2020 | }, 2021 | "percentage": false, 2022 | "pluginVersion": "7.3.1", 2023 | "pointradius": 5, 2024 | "points": false, 2025 | "renderer": "flot", 2026 | "seriesOverrides": [], 2027 | "spaceLength": 10, 2028 | "stack": false, 2029 | "steppedLine": false, 2030 | "targets": [ 2031 | { 2032 | "expr": "sum(rocketmq_producer_message_size{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\"}) by(topic)", 2033 | "interval": "", 2034 | "legendFormat": "{{topic}}", 2035 | "refId": "A" 2036 | } 2037 | ], 2038 | "thresholds": [], 2039 | "timeFrom": null, 2040 | "timeRegions": [], 2041 | "timeShift": null, 2042 | "title": "Topic每秒发送消息大小", 2043 | "tooltip": { 2044 | "shared": true, 2045 | "sort": 2, 2046 | "value_type": "individual" 2047 | }, 2048 | "type": "graph", 2049 | "xaxis": { 2050 | "buckets": null, 2051 | "mode": "time", 2052 | "name": null, 2053 | "show": true, 2054 | "values": [] 2055 | }, 2056 | "yaxes": [ 2057 | { 2058 | "format": "bytes", 2059 | "label": null, 2060 | "logBase": 1, 2061 | "max": null, 2062 | "min": null, 2063 | "show": true 2064 | }, 2065 | { 2066 | "format": "short", 2067 | "label": null, 2068 | "logBase": 1, 2069 | "max": null, 2070 | "min": null, 2071 | "show": true 2072 | } 2073 | ], 2074 | "yaxis": { 2075 | "align": false, 2076 | "alignLevel": null 2077 | } 2078 | }, 2079 | { 2080 | "aliasColors": {}, 2081 | "bars": false, 2082 | "dashLength": 10, 2083 | "dashes": false, 2084 | "datasource": "${DS_PROMETHEUS}", 2085 | "fieldConfig": { 2086 | "defaults": { 2087 | "custom": {} 2088 | }, 2089 | "overrides": [] 2090 | }, 2091 | "fill": 1, 2092 | "fillGradient": 0, 2093 | "gridPos": { 2094 | "h": 8, 2095 | "w": 13, 2096 | "x": 11, 2097 | "y": 12 2098 | }, 2099 | "hiddenSeries": false, 2100 | "id": 16, 2101 | "legend": { 2102 | "alignAsTable": true, 2103 | "avg": false, 2104 | "current": true, 2105 | "hideEmpty": true, 2106 | "hideZero": true, 2107 | "max": false, 2108 | "min": false, 2109 | "rightSide": true, 2110 | "show": true, 2111 | "sort": "current", 2112 | "sortDesc": true, 2113 | "total": false, 2114 | "values": true 2115 | }, 2116 | "lines": true, 2117 | "linewidth": 1, 2118 | "links": [], 2119 | "nullPointMode": "null", 2120 | "options": { 2121 | "alertThreshold": true, 2122 | "dataLinks": [] 2123 | }, 2124 | "percentage": false, 2125 | "pluginVersion": "7.3.1", 2126 | "pointradius": 5, 2127 | "points": false, 2128 | "renderer": "flot", 2129 | "seriesOverrides": [], 2130 | "spaceLength": 10, 2131 | "stack": false, 2132 | "steppedLine": false, 2133 | "targets": [ 2134 | { 2135 | "expr": "sum(rocketmq_consumer_message_size{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\",group=~\"$group\"}) by (topic, group)", 2136 | "interval": "", 2137 | "legendFormat": "{{broker}}-{{topic}}@{{group}}", 2138 | "refId": "A" 2139 | } 2140 | ], 2141 | "thresholds": [], 2142 | "timeFrom": null, 2143 | "timeRegions": [], 2144 | "timeShift": null, 2145 | "title": "消费组每秒消费消息大小", 2146 | "tooltip": { 2147 | "shared": true, 2148 | "sort": 2, 2149 | "value_type": "individual" 2150 | }, 2151 | "type": "graph", 2152 | "xaxis": { 2153 | "buckets": null, 2154 | "mode": "time", 2155 | "name": null, 2156 | "show": true, 2157 | "values": [] 2158 | }, 2159 | "yaxes": [ 2160 | { 2161 | "format": "bytes", 2162 | "label": null, 2163 | "logBase": 1, 2164 | "max": null, 2165 | "min": null, 2166 | "show": true 2167 | }, 2168 | { 2169 | "format": "short", 2170 | "label": null, 2171 | "logBase": 1, 2172 | "max": null, 2173 | "min": null, 2174 | "show": true 2175 | } 2176 | ], 2177 | "yaxis": { 2178 | "align": false, 2179 | "alignLevel": null 2180 | } 2181 | } 2182 | ], 2183 | "title": "流量大小", 2184 | "type": "row" 2185 | }, 2186 | { 2187 | "collapsed": true, 2188 | "datasource": null, 2189 | "gridPos": { 2190 | "h": 1, 2191 | "w": 24, 2192 | "x": 0, 2193 | "y": 4 2194 | }, 2195 | "id": 39, 2196 | "panels": [ 2197 | { 2198 | "aliasColors": {}, 2199 | "bars": false, 2200 | "dashLength": 10, 2201 | "dashes": false, 2202 | "datasource": "${DS_PROMETHEUS}", 2203 | "fieldConfig": { 2204 | "defaults": { 2205 | "custom": {} 2206 | }, 2207 | "overrides": [] 2208 | }, 2209 | "fill": 1, 2210 | "fillGradient": 0, 2211 | "gridPos": { 2212 | "h": 9, 2213 | "w": 24, 2214 | "x": 0, 2215 | "y": 5 2216 | }, 2217 | "hiddenSeries": false, 2218 | "id": 44, 2219 | "legend": { 2220 | "alignAsTable": true, 2221 | "avg": false, 2222 | "current": true, 2223 | "hideEmpty": true, 2224 | "hideZero": true, 2225 | "max": false, 2226 | "min": false, 2227 | "rightSide": true, 2228 | "show": true, 2229 | "sort": "current", 2230 | "sortDesc": true, 2231 | "total": false, 2232 | "values": true 2233 | }, 2234 | "lines": true, 2235 | "linewidth": 1, 2236 | "links": [], 2237 | "nullPointMode": "null", 2238 | "options": { 2239 | "alertThreshold": true, 2240 | "dataLinks": [] 2241 | }, 2242 | "percentage": false, 2243 | "pluginVersion": "7.3.1", 2244 | "pointradius": 5, 2245 | "points": false, 2246 | "renderer": "flot", 2247 | "seriesOverrides": [], 2248 | "spaceLength": 10, 2249 | "stack": false, 2250 | "steppedLine": false, 2251 | "targets": [ 2252 | { 2253 | "expr": " sum(rocketmq_group_diff{Cluster=\"$cluster\",Env=\"$env\",topic=~\"$topic\",group=~\"$group\"}) by (group,topic) >= 0 and sum(rocketmq_group_diff{Cluster=\"$cluster\",Env=\"$env\",topic=~\"$topic\",group=~\"$group\"}) by (group,topic) <= 100000", 2254 | "interval": "", 2255 | "legendFormat": "{{topic}}@{{group}}", 2256 | "refId": "A" 2257 | } 2258 | ], 2259 | "thresholds": [], 2260 | "timeFrom": null, 2261 | "timeRegions": [], 2262 | "timeShift": null, 2263 | "title": "消息积压(积压量: [0, 10W])", 2264 | "tooltip": { 2265 | "shared": true, 2266 | "sort": 2, 2267 | "value_type": "individual" 2268 | }, 2269 | "type": "graph", 2270 | "xaxis": { 2271 | "buckets": null, 2272 | "mode": "time", 2273 | "name": null, 2274 | "show": true, 2275 | "values": [] 2276 | }, 2277 | "yaxes": [ 2278 | { 2279 | "format": "none", 2280 | "label": null, 2281 | "logBase": 1, 2282 | "max": null, 2283 | "min": null, 2284 | "show": true 2285 | }, 2286 | { 2287 | "format": "short", 2288 | "label": null, 2289 | "logBase": 1, 2290 | "max": null, 2291 | "min": null, 2292 | "show": true 2293 | } 2294 | ], 2295 | "yaxis": { 2296 | "align": false, 2297 | "alignLevel": null 2298 | } 2299 | }, 2300 | { 2301 | "aliasColors": {}, 2302 | "bars": false, 2303 | "dashLength": 10, 2304 | "dashes": false, 2305 | "datasource": "${DS_PROMETHEUS}", 2306 | "fieldConfig": { 2307 | "defaults": { 2308 | "custom": {} 2309 | }, 2310 | "overrides": [] 2311 | }, 2312 | "fill": 1, 2313 | "fillGradient": 0, 2314 | "gridPos": { 2315 | "h": 8, 2316 | "w": 11, 2317 | "x": 0, 2318 | "y": 14 2319 | }, 2320 | "hiddenSeries": false, 2321 | "id": 18, 2322 | "legend": { 2323 | "alignAsTable": true, 2324 | "avg": false, 2325 | "current": true, 2326 | "hideEmpty": true, 2327 | "hideZero": true, 2328 | "max": false, 2329 | "min": false, 2330 | "rightSide": true, 2331 | "show": true, 2332 | "sort": "current", 2333 | "sortDesc": true, 2334 | "total": false, 2335 | "values": true 2336 | }, 2337 | "lines": true, 2338 | "linewidth": 1, 2339 | "links": [], 2340 | "nullPointMode": "null", 2341 | "options": { 2342 | "alertThreshold": true, 2343 | "dataLinks": [] 2344 | }, 2345 | "percentage": false, 2346 | "pluginVersion": "7.3.1", 2347 | "pointradius": 5, 2348 | "points": false, 2349 | "renderer": "flot", 2350 | "seriesOverrides": [], 2351 | "spaceLength": 10, 2352 | "stack": false, 2353 | "steppedLine": false, 2354 | "targets": [ 2355 | { 2356 | "expr": " sum(rocketmq_group_diff{Cluster=\"$cluster\",Env=\"$env\",topic=~\"$topic\",group=~\"$group\"}) by (group,topic) < 0", 2357 | "interval": "", 2358 | "legendFormat": "{{topic}}@{{group}}", 2359 | "refId": "A" 2360 | } 2361 | ], 2362 | "thresholds": [], 2363 | "timeFrom": null, 2364 | "timeRegions": [], 2365 | "timeShift": null, 2366 | "title": "异常积压(积压量<0)", 2367 | "tooltip": { 2368 | "shared": true, 2369 | "sort": 2, 2370 | "value_type": "individual" 2371 | }, 2372 | "type": "graph", 2373 | "xaxis": { 2374 | "buckets": null, 2375 | "mode": "time", 2376 | "name": null, 2377 | "show": true, 2378 | "values": [] 2379 | }, 2380 | "yaxes": [ 2381 | { 2382 | "format": "short", 2383 | "label": null, 2384 | "logBase": 1, 2385 | "max": null, 2386 | "min": null, 2387 | "show": true 2388 | }, 2389 | { 2390 | "format": "short", 2391 | "label": null, 2392 | "logBase": 1, 2393 | "max": null, 2394 | "min": null, 2395 | "show": false 2396 | } 2397 | ], 2398 | "yaxis": { 2399 | "align": false, 2400 | "alignLevel": null 2401 | } 2402 | }, 2403 | { 2404 | "aliasColors": {}, 2405 | "bars": false, 2406 | "dashLength": 10, 2407 | "dashes": false, 2408 | "datasource": "${DS_PROMETHEUS}", 2409 | "fieldConfig": { 2410 | "defaults": { 2411 | "custom": {} 2412 | }, 2413 | "overrides": [] 2414 | }, 2415 | "fill": 1, 2416 | "fillGradient": 0, 2417 | "gridPos": { 2418 | "h": 8, 2419 | "w": 13, 2420 | "x": 11, 2421 | "y": 14 2422 | }, 2423 | "hiddenSeries": false, 2424 | "id": 45, 2425 | "legend": { 2426 | "alignAsTable": true, 2427 | "avg": false, 2428 | "current": true, 2429 | "hideEmpty": true, 2430 | "hideZero": true, 2431 | "max": false, 2432 | "min": false, 2433 | "rightSide": true, 2434 | "show": true, 2435 | "sort": "current", 2436 | "sortDesc": true, 2437 | "total": false, 2438 | "values": true 2439 | }, 2440 | "lines": true, 2441 | "linewidth": 1, 2442 | "links": [], 2443 | "nullPointMode": "null", 2444 | "options": { 2445 | "alertThreshold": true, 2446 | "dataLinks": [] 2447 | }, 2448 | "percentage": false, 2449 | "pluginVersion": "7.3.1", 2450 | "pointradius": 5, 2451 | "points": false, 2452 | "renderer": "flot", 2453 | "seriesOverrides": [], 2454 | "spaceLength": 10, 2455 | "stack": false, 2456 | "steppedLine": false, 2457 | "targets": [ 2458 | { 2459 | "expr": " sum(rocketmq_group_diff{Cluster=\"$cluster\",Env=\"$env\",topic=~\"$topic\",group=~\"$group\"}) by (group,topic) > 100000", 2460 | "interval": "", 2461 | "legendFormat": "{{topic}}@{{group}}", 2462 | "refId": "A" 2463 | } 2464 | ], 2465 | "thresholds": [], 2466 | "timeFrom": null, 2467 | "timeRegions": [], 2468 | "timeShift": null, 2469 | "title": "大量积压(积压量>10W)", 2470 | "tooltip": { 2471 | "shared": true, 2472 | "sort": 2, 2473 | "value_type": "individual" 2474 | }, 2475 | "type": "graph", 2476 | "xaxis": { 2477 | "buckets": null, 2478 | "mode": "time", 2479 | "name": null, 2480 | "show": true, 2481 | "values": [] 2482 | }, 2483 | "yaxes": [ 2484 | { 2485 | "format": "short", 2486 | "label": null, 2487 | "logBase": 1, 2488 | "max": null, 2489 | "min": null, 2490 | "show": true 2491 | }, 2492 | { 2493 | "format": "none", 2494 | "label": null, 2495 | "logBase": 1, 2496 | "max": null, 2497 | "min": null, 2498 | "show": false 2499 | } 2500 | ], 2501 | "yaxis": { 2502 | "align": false, 2503 | "alignLevel": null 2504 | } 2505 | }, 2506 | { 2507 | "aliasColors": {}, 2508 | "bars": false, 2509 | "dashLength": 10, 2510 | "dashes": false, 2511 | "datasource": "${DS_PROMETHEUS}", 2512 | "decimals": 0, 2513 | "fieldConfig": { 2514 | "defaults": { 2515 | "custom": {} 2516 | }, 2517 | "overrides": [] 2518 | }, 2519 | "fill": 1, 2520 | "fillGradient": 0, 2521 | "gridPos": { 2522 | "h": 7, 2523 | "w": 24, 2524 | "x": 0, 2525 | "y": 22 2526 | }, 2527 | "hiddenSeries": false, 2528 | "id": 47, 2529 | "legend": { 2530 | "alignAsTable": true, 2531 | "avg": false, 2532 | "current": true, 2533 | "hideEmpty": false, 2534 | "hideZero": false, 2535 | "max": false, 2536 | "min": false, 2537 | "rightSide": true, 2538 | "show": true, 2539 | "sort": "current", 2540 | "sortDesc": true, 2541 | "total": false, 2542 | "values": true 2543 | }, 2544 | "lines": true, 2545 | "linewidth": 1, 2546 | "links": [], 2547 | "nullPointMode": "null", 2548 | "options": { 2549 | "alertThreshold": true, 2550 | "dataLinks": [] 2551 | }, 2552 | "percentage": false, 2553 | "pluginVersion": "7.3.1", 2554 | "pointradius": 5, 2555 | "points": false, 2556 | "renderer": "flot", 2557 | "seriesOverrides": [], 2558 | "spaceLength": 10, 2559 | "stack": false, 2560 | "steppedLine": false, 2561 | "targets": [ 2562 | { 2563 | "expr": "sum(rocketmq_group_retrydiff{Cluster=\"$cluster\",Env=\"$env\",group=~\"$group\"}) by (group)", 2564 | "interval": "", 2565 | "legendFormat": "{{group}}", 2566 | "refId": "A" 2567 | } 2568 | ], 2569 | "thresholds": [], 2570 | "timeFrom": null, 2571 | "timeRegions": [], 2572 | "timeShift": null, 2573 | "title": "重试队列积压", 2574 | "tooltip": { 2575 | "shared": true, 2576 | "sort": 2, 2577 | "value_type": "individual" 2578 | }, 2579 | "type": "graph", 2580 | "xaxis": { 2581 | "buckets": null, 2582 | "mode": "time", 2583 | "name": null, 2584 | "show": true, 2585 | "values": [] 2586 | }, 2587 | "yaxes": [ 2588 | { 2589 | "format": "none", 2590 | "label": null, 2591 | "logBase": 1, 2592 | "max": null, 2593 | "min": null, 2594 | "show": true 2595 | }, 2596 | { 2597 | "format": "short", 2598 | "label": null, 2599 | "logBase": 1, 2600 | "max": null, 2601 | "min": null, 2602 | "show": true 2603 | } 2604 | ], 2605 | "yaxis": { 2606 | "align": false, 2607 | "alignLevel": null 2608 | } 2609 | } 2610 | ], 2611 | "title": "积压情况", 2612 | "type": "row" 2613 | }, 2614 | { 2615 | "collapsed": true, 2616 | "datasource": null, 2617 | "gridPos": { 2618 | "h": 1, 2619 | "w": 24, 2620 | "x": 0, 2621 | "y": 5 2622 | }, 2623 | "id": 49, 2624 | "panels": [ 2625 | { 2626 | "columns": [], 2627 | "datasource": "${DS_PROMETHEUS}", 2628 | "description": "", 2629 | "fieldConfig": { 2630 | "defaults": { 2631 | "custom": {} 2632 | }, 2633 | "overrides": [] 2634 | }, 2635 | "fontSize": "80%", 2636 | "gridPos": { 2637 | "h": 11, 2638 | "w": 24, 2639 | "x": 0, 2640 | "y": 6 2641 | }, 2642 | "id": 51, 2643 | "pageSize": 20, 2644 | "showHeader": true, 2645 | "sort": { 2646 | "col": 10, 2647 | "desc": true 2648 | }, 2649 | "styles": [ 2650 | { 2651 | "alias": "消费组", 2652 | "align": "auto", 2653 | "colorMode": null, 2654 | "colors": [ 2655 | "rgba(245, 54, 54, 0.9)", 2656 | "rgba(237, 129, 40, 0.89)", 2657 | "rgba(50, 172, 45, 0.97)" 2658 | ], 2659 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 2660 | "decimals": 2, 2661 | "link": false, 2662 | "linkTargetBlank": false, 2663 | "linkTooltip": "消费端明细", 2664 | "linkUrl": "d/zkVx1w_iz/rocketmq?orgId=1&var-env=${Env}&var-cluster=${Cluster}&var-broker=${broker}&var-topic=All&var-group=$group", 2665 | "mappingType": 1, 2666 | "pattern": "group", 2667 | "preserveFormat": false, 2668 | "thresholds": [], 2669 | "type": "string", 2670 | "unit": "short" 2671 | }, 2672 | { 2673 | "alias": "Topic", 2674 | "align": "auto", 2675 | "colorMode": null, 2676 | "colors": [ 2677 | "rgba(245, 54, 54, 0.9)", 2678 | "rgba(237, 129, 40, 0.89)", 2679 | "rgba(50, 172, 45, 0.97)" 2680 | ], 2681 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 2682 | "decimals": 2, 2683 | "link": false, 2684 | "mappingType": 1, 2685 | "pattern": "topic", 2686 | "thresholds": [], 2687 | "type": "string", 2688 | "unit": "bytes" 2689 | }, 2690 | { 2691 | "alias": "客户端地址", 2692 | "align": "auto", 2693 | "colorMode": "value", 2694 | "colors": [ 2695 | "rgba(245, 54, 54, 0.9)", 2696 | "rgba(237, 129, 40, 0.89)", 2697 | "#37872D" 2698 | ], 2699 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 2700 | "decimals": 2, 2701 | "mappingType": 1, 2702 | "pattern": "clientAddr", 2703 | "thresholds": [], 2704 | "type": "string", 2705 | "unit": "none" 2706 | }, 2707 | { 2708 | "alias": "客户端ID", 2709 | "align": "auto", 2710 | "colorMode": null, 2711 | "colors": [ 2712 | "rgba(245, 54, 54, 0.9)", 2713 | "rgba(237, 129, 40, 0.89)", 2714 | "#37872D" 2715 | ], 2716 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 2717 | "decimals": 2, 2718 | "mappingType": 1, 2719 | "pattern": "clientId", 2720 | "thresholds": [], 2721 | "type": "string", 2722 | "unit": "none" 2723 | }, 2724 | { 2725 | "alias": "消费失败量", 2726 | "align": "auto", 2727 | "colorMode": "cell", 2728 | "colors": [ 2729 | "rgba(50, 172, 45, 0.97)", 2730 | "rgba(237, 129, 40, 0.89)", 2731 | "rgba(245, 54, 54, 0.9)" 2732 | ], 2733 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 2734 | "decimals": 0, 2735 | "mappingType": 1, 2736 | "pattern": "Value", 2737 | "thresholds": [ 2738 | "1", 2739 | "100" 2740 | ], 2741 | "type": "number", 2742 | "unit": "short" 2743 | }, 2744 | { 2745 | "alias": "", 2746 | "align": "auto", 2747 | "colorMode": null, 2748 | "colors": [ 2749 | "rgba(245, 54, 54, 0.9)", 2750 | "rgba(237, 129, 40, 0.89)", 2751 | "rgba(50, 172, 45, 0.97)" 2752 | ], 2753 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 2754 | "decimals": 2, 2755 | "mappingType": 1, 2756 | "pattern": "/.*/", 2757 | "thresholds": [], 2758 | "type": "hidden", 2759 | "unit": "short" 2760 | } 2761 | ], 2762 | "targets": [ 2763 | { 2764 | "expr": "rocketmq_client_consume_fail_msg_count{Cluster=\"$cluster\",Env=\"$env\",group=~\"$group\",topic=~\"$topic\"}", 2765 | "format": "table", 2766 | "instant": true, 2767 | "interval": "", 2768 | "legendFormat": "消费失败", 2769 | "refId": "A" 2770 | } 2771 | ], 2772 | "timeFrom": null, 2773 | "timeShift": null, 2774 | "title": "消费端信息", 2775 | "transform": "table", 2776 | "type": "table-old" 2777 | }, 2778 | { 2779 | "aliasColors": {}, 2780 | "bars": false, 2781 | "dashLength": 10, 2782 | "dashes": false, 2783 | "datasource": "${DS_PROMETHEUS}", 2784 | "fieldConfig": { 2785 | "defaults": { 2786 | "custom": {} 2787 | }, 2788 | "overrides": [] 2789 | }, 2790 | "fill": 1, 2791 | "fillGradient": 0, 2792 | "gridPos": { 2793 | "h": 10, 2794 | "w": 24, 2795 | "x": 0, 2796 | "y": 17 2797 | }, 2798 | "hiddenSeries": false, 2799 | "id": 52, 2800 | "legend": { 2801 | "alignAsTable": true, 2802 | "avg": false, 2803 | "current": true, 2804 | "hideEmpty": false, 2805 | "hideZero": false, 2806 | "max": false, 2807 | "min": false, 2808 | "rightSide": true, 2809 | "show": true, 2810 | "sort": "current", 2811 | "sortDesc": true, 2812 | "total": false, 2813 | "values": true 2814 | }, 2815 | "lines": true, 2816 | "linewidth": 1, 2817 | "links": [], 2818 | "nullPointMode": "null", 2819 | "options": { 2820 | "alertThreshold": true, 2821 | "dataLinks": [] 2822 | }, 2823 | "percentage": false, 2824 | "pluginVersion": "7.3.1", 2825 | "pointradius": 5, 2826 | "points": false, 2827 | "renderer": "flot", 2828 | "seriesOverrides": [], 2829 | "spaceLength": 10, 2830 | "stack": false, 2831 | "steppedLine": false, 2832 | "targets": [ 2833 | { 2834 | "expr": "sum(rocketmq_client_consume_fail_msg_count{Cluster=\"$cluster\",Env=\"$env\",group=~\"$group\", topic=~\"$topic\"}) by (group)", 2835 | "interval": "", 2836 | "legendFormat": "{{group}}", 2837 | "refId": "A" 2838 | } 2839 | ], 2840 | "thresholds": [], 2841 | "timeFrom": null, 2842 | "timeRegions": [], 2843 | "timeShift": null, 2844 | "title": "消费组消费失败量变化趋势", 2845 | "tooltip": { 2846 | "shared": true, 2847 | "sort": 2, 2848 | "value_type": "individual" 2849 | }, 2850 | "type": "graph", 2851 | "xaxis": { 2852 | "buckets": null, 2853 | "mode": "time", 2854 | "name": null, 2855 | "show": true, 2856 | "values": [] 2857 | }, 2858 | "yaxes": [ 2859 | { 2860 | "format": "none", 2861 | "label": null, 2862 | "logBase": 1, 2863 | "max": null, 2864 | "min": null, 2865 | "show": true 2866 | }, 2867 | { 2868 | "format": "short", 2869 | "label": null, 2870 | "logBase": 1, 2871 | "max": null, 2872 | "min": null, 2873 | "show": true 2874 | } 2875 | ], 2876 | "yaxis": { 2877 | "align": false, 2878 | "alignLevel": null 2879 | } 2880 | }, 2881 | { 2882 | "aliasColors": {}, 2883 | "bars": false, 2884 | "dashLength": 10, 2885 | "dashes": false, 2886 | "datasource": "${DS_PROMETHEUS}", 2887 | "fieldConfig": { 2888 | "defaults": { 2889 | "custom": {} 2890 | }, 2891 | "overrides": [] 2892 | }, 2893 | "fill": 1, 2894 | "fillGradient": 0, 2895 | "gridPos": { 2896 | "h": 10, 2897 | "w": 12, 2898 | "x": 0, 2899 | "y": 27 2900 | }, 2901 | "hiddenSeries": false, 2902 | "id": 56, 2903 | "legend": { 2904 | "alignAsTable": true, 2905 | "avg": false, 2906 | "current": false, 2907 | "hideEmpty": false, 2908 | "hideZero": false, 2909 | "max": false, 2910 | "min": false, 2911 | "rightSide": true, 2912 | "show": false, 2913 | "sort": "current", 2914 | "sortDesc": true, 2915 | "total": false, 2916 | "values": false 2917 | }, 2918 | "lines": true, 2919 | "linewidth": 1, 2920 | "links": [], 2921 | "nullPointMode": "null", 2922 | "options": { 2923 | "alertThreshold": true, 2924 | "dataLinks": [] 2925 | }, 2926 | "percentage": false, 2927 | "pluginVersion": "7.3.1", 2928 | "pointradius": 5, 2929 | "points": false, 2930 | "renderer": "flot", 2931 | "seriesOverrides": [], 2932 | "spaceLength": 10, 2933 | "stack": false, 2934 | "steppedLine": false, 2935 | "targets": [ 2936 | { 2937 | "expr": "rocketmq_client_consumer_pull_tps{Cluster=\"$cluster\",Env=\"$env\",group=~\"$group\", topic=~\"$topic\"}", 2938 | "interval": "", 2939 | "legendFormat": "{{topic}}@{{group}}@{{clientId}}", 2940 | "refId": "A" 2941 | } 2942 | ], 2943 | "thresholds": [], 2944 | "timeFrom": null, 2945 | "timeRegions": [], 2946 | "timeShift": null, 2947 | "title": "消费端拉取tps", 2948 | "tooltip": { 2949 | "shared": true, 2950 | "sort": 2, 2951 | "value_type": "individual" 2952 | }, 2953 | "type": "graph", 2954 | "xaxis": { 2955 | "buckets": null, 2956 | "mode": "time", 2957 | "name": null, 2958 | "show": true, 2959 | "values": [] 2960 | }, 2961 | "yaxes": [ 2962 | { 2963 | "format": "none", 2964 | "label": null, 2965 | "logBase": 1, 2966 | "max": null, 2967 | "min": null, 2968 | "show": true 2969 | }, 2970 | { 2971 | "format": "short", 2972 | "label": null, 2973 | "logBase": 1, 2974 | "max": null, 2975 | "min": null, 2976 | "show": true 2977 | } 2978 | ], 2979 | "yaxis": { 2980 | "align": false, 2981 | "alignLevel": null 2982 | } 2983 | }, 2984 | { 2985 | "aliasColors": {}, 2986 | "bars": false, 2987 | "dashLength": 10, 2988 | "dashes": false, 2989 | "datasource": "${DS_PROMETHEUS}", 2990 | "fieldConfig": { 2991 | "defaults": { 2992 | "custom": {} 2993 | }, 2994 | "overrides": [] 2995 | }, 2996 | "fill": 1, 2997 | "fillGradient": 0, 2998 | "gridPos": { 2999 | "h": 10, 3000 | "w": 12, 3001 | "x": 12, 3002 | "y": 27 3003 | }, 3004 | "hiddenSeries": false, 3005 | "id": 54, 3006 | "legend": { 3007 | "alignAsTable": true, 3008 | "avg": false, 3009 | "current": false, 3010 | "hideEmpty": false, 3011 | "hideZero": false, 3012 | "max": false, 3013 | "min": false, 3014 | "rightSide": true, 3015 | "show": false, 3016 | "sort": "current", 3017 | "sortDesc": true, 3018 | "total": false, 3019 | "values": false 3020 | }, 3021 | "lines": true, 3022 | "linewidth": 1, 3023 | "links": [], 3024 | "nullPointMode": "null", 3025 | "options": { 3026 | "alertThreshold": true, 3027 | "dataLinks": [] 3028 | }, 3029 | "percentage": false, 3030 | "pluginVersion": "7.3.1", 3031 | "pointradius": 5, 3032 | "points": false, 3033 | "renderer": "flot", 3034 | "seriesOverrides": [], 3035 | "spaceLength": 10, 3036 | "stack": false, 3037 | "steppedLine": false, 3038 | "targets": [ 3039 | { 3040 | "expr": "rocketmq_client_consume_ok_msg_tps{Cluster=\"$cluster\",Env=\"$env\",group=~\"$group\", topic=~\"$topic\"}", 3041 | "interval": "", 3042 | "legendFormat": "{{topic}}@{{group}}@{{clientId}}", 3043 | "refId": "A" 3044 | } 3045 | ], 3046 | "thresholds": [], 3047 | "timeFrom": null, 3048 | "timeRegions": [], 3049 | "timeShift": null, 3050 | "title": "消费端消费成功tps", 3051 | "tooltip": { 3052 | "shared": true, 3053 | "sort": 2, 3054 | "value_type": "individual" 3055 | }, 3056 | "type": "graph", 3057 | "xaxis": { 3058 | "buckets": null, 3059 | "mode": "time", 3060 | "name": null, 3061 | "show": true, 3062 | "values": [] 3063 | }, 3064 | "yaxes": [ 3065 | { 3066 | "format": "none", 3067 | "label": null, 3068 | "logBase": 1, 3069 | "max": null, 3070 | "min": null, 3071 | "show": true 3072 | }, 3073 | { 3074 | "format": "short", 3075 | "label": null, 3076 | "logBase": 1, 3077 | "max": null, 3078 | "min": null, 3079 | "show": true 3080 | } 3081 | ], 3082 | "yaxis": { 3083 | "align": false, 3084 | "alignLevel": null 3085 | } 3086 | }, 3087 | { 3088 | "aliasColors": {}, 3089 | "bars": false, 3090 | "dashLength": 10, 3091 | "dashes": false, 3092 | "datasource": "${DS_PROMETHEUS}", 3093 | "fieldConfig": { 3094 | "defaults": { 3095 | "custom": {} 3096 | }, 3097 | "overrides": [] 3098 | }, 3099 | "fill": 1, 3100 | "fillGradient": 0, 3101 | "gridPos": { 3102 | "h": 10, 3103 | "w": 12, 3104 | "x": 0, 3105 | "y": 37 3106 | }, 3107 | "hiddenSeries": false, 3108 | "id": 53, 3109 | "legend": { 3110 | "alignAsTable": true, 3111 | "avg": false, 3112 | "current": false, 3113 | "hideEmpty": false, 3114 | "hideZero": false, 3115 | "max": false, 3116 | "min": false, 3117 | "rightSide": true, 3118 | "show": false, 3119 | "sort": "current", 3120 | "sortDesc": true, 3121 | "total": false, 3122 | "values": false 3123 | }, 3124 | "lines": true, 3125 | "linewidth": 1, 3126 | "links": [], 3127 | "nullPointMode": "null", 3128 | "options": { 3129 | "alertThreshold": true, 3130 | "dataLinks": [] 3131 | }, 3132 | "percentage": false, 3133 | "pluginVersion": "7.3.1", 3134 | "pointradius": 5, 3135 | "points": false, 3136 | "renderer": "flot", 3137 | "seriesOverrides": [], 3138 | "spaceLength": 10, 3139 | "stack": false, 3140 | "steppedLine": false, 3141 | "targets": [ 3142 | { 3143 | "expr": "rocketmq_client_consumer_pull_rt{Cluster=\"$cluster\",Env=\"$env\",group=~\"$group\", topic=~\"$topic\"}", 3144 | "interval": "", 3145 | "legendFormat": "{{topic}}@{{group}}@{{clientId}}", 3146 | "refId": "A" 3147 | } 3148 | ], 3149 | "thresholds": [], 3150 | "timeFrom": null, 3151 | "timeRegions": [], 3152 | "timeShift": null, 3153 | "title": "消费端拉取平均耗时", 3154 | "tooltip": { 3155 | "shared": true, 3156 | "sort": 2, 3157 | "value_type": "individual" 3158 | }, 3159 | "type": "graph", 3160 | "xaxis": { 3161 | "buckets": null, 3162 | "mode": "time", 3163 | "name": null, 3164 | "show": true, 3165 | "values": [] 3166 | }, 3167 | "yaxes": [ 3168 | { 3169 | "format": "ms", 3170 | "label": null, 3171 | "logBase": 1, 3172 | "max": null, 3173 | "min": null, 3174 | "show": true 3175 | }, 3176 | { 3177 | "format": "short", 3178 | "label": null, 3179 | "logBase": 1, 3180 | "max": null, 3181 | "min": null, 3182 | "show": true 3183 | } 3184 | ], 3185 | "yaxis": { 3186 | "align": false, 3187 | "alignLevel": null 3188 | } 3189 | }, 3190 | { 3191 | "aliasColors": {}, 3192 | "bars": false, 3193 | "dashLength": 10, 3194 | "dashes": false, 3195 | "datasource": "${DS_PROMETHEUS}", 3196 | "fieldConfig": { 3197 | "defaults": { 3198 | "custom": {} 3199 | }, 3200 | "overrides": [] 3201 | }, 3202 | "fill": 1, 3203 | "fillGradient": 0, 3204 | "gridPos": { 3205 | "h": 10, 3206 | "w": 12, 3207 | "x": 12, 3208 | "y": 37 3209 | }, 3210 | "hiddenSeries": false, 3211 | "id": 55, 3212 | "legend": { 3213 | "alignAsTable": true, 3214 | "avg": false, 3215 | "current": false, 3216 | "hideEmpty": false, 3217 | "hideZero": false, 3218 | "max": false, 3219 | "min": false, 3220 | "rightSide": true, 3221 | "show": false, 3222 | "sort": "current", 3223 | "sortDesc": true, 3224 | "total": false, 3225 | "values": false 3226 | }, 3227 | "lines": true, 3228 | "linewidth": 1, 3229 | "links": [], 3230 | "nullPointMode": "null", 3231 | "options": { 3232 | "alertThreshold": true, 3233 | "dataLinks": [] 3234 | }, 3235 | "percentage": false, 3236 | "pluginVersion": "7.3.1", 3237 | "pointradius": 5, 3238 | "points": false, 3239 | "renderer": "flot", 3240 | "seriesOverrides": [], 3241 | "spaceLength": 10, 3242 | "stack": false, 3243 | "steppedLine": false, 3244 | "targets": [ 3245 | { 3246 | "expr": "rocketmq_client_consume_rt{Cluster=\"$cluster\",Env=\"$env\",group=~\"$group\", topic=~\"$topic\"}", 3247 | "interval": "", 3248 | "legendFormat": "{{topic}}@{{group}}@{{clientId}}", 3249 | "refId": "A" 3250 | } 3251 | ], 3252 | "thresholds": [], 3253 | "timeFrom": null, 3254 | "timeRegions": [], 3255 | "timeShift": null, 3256 | "title": "消费端消费平均耗时", 3257 | "tooltip": { 3258 | "shared": true, 3259 | "sort": 2, 3260 | "value_type": "individual" 3261 | }, 3262 | "type": "graph", 3263 | "xaxis": { 3264 | "buckets": null, 3265 | "mode": "time", 3266 | "name": null, 3267 | "show": true, 3268 | "values": [] 3269 | }, 3270 | "yaxes": [ 3271 | { 3272 | "format": "ms", 3273 | "label": null, 3274 | "logBase": 1, 3275 | "max": null, 3276 | "min": null, 3277 | "show": true 3278 | }, 3279 | { 3280 | "format": "short", 3281 | "label": null, 3282 | "logBase": 1, 3283 | "max": null, 3284 | "min": null, 3285 | "show": true 3286 | } 3287 | ], 3288 | "yaxis": { 3289 | "align": false, 3290 | "alignLevel": null 3291 | } 3292 | } 3293 | ], 3294 | "title": "消费端运行状态", 3295 | "type": "row" 3296 | }, 3297 | { 3298 | "collapsed": true, 3299 | "datasource": null, 3300 | "gridPos": { 3301 | "h": 1, 3302 | "w": 24, 3303 | "x": 0, 3304 | "y": 6 3305 | }, 3306 | "id": 59, 3307 | "panels": [ 3308 | { 3309 | "datasource": "${DS_PROMETHEUS}", 3310 | "fieldConfig": { 3311 | "defaults": { 3312 | "custom": {}, 3313 | "mappings": [], 3314 | "thresholds": { 3315 | "mode": "absolute", 3316 | "steps": [ 3317 | { 3318 | "color": "green", 3319 | "value": null 3320 | }, 3321 | { 3322 | "color": "red", 3323 | "value": 80 3324 | } 3325 | ] 3326 | } 3327 | }, 3328 | "overrides": [] 3329 | }, 3330 | "gridPos": { 3331 | "h": 6, 3332 | "w": 8, 3333 | "x": 0, 3334 | "y": 7 3335 | }, 3336 | "id": 61, 3337 | "options": { 3338 | "displayMode": "lcd", 3339 | "orientation": "horizontal", 3340 | "reduceOptions": { 3341 | "calcs": [ 3342 | "lastNotNull" 3343 | ], 3344 | "fields": "", 3345 | "values": false 3346 | }, 3347 | "showUnfilled": true 3348 | }, 3349 | "pluginVersion": "7.3.1", 3350 | "targets": [ 3351 | { 3352 | "expr": "rocketmq_brokeruntime_commitlog_minoffset{Cluster=\"$cluster\",Env=\"$env\"}", 3353 | "instant": true, 3354 | "interval": "", 3355 | "legendFormat": "{{brokerIP}}", 3356 | "refId": "A" 3357 | } 3358 | ], 3359 | "timeFrom": null, 3360 | "timeShift": null, 3361 | "title": "commit log最小位点", 3362 | "type": "bargauge" 3363 | }, 3364 | { 3365 | "datasource": "${DS_PROMETHEUS}", 3366 | "fieldConfig": { 3367 | "defaults": { 3368 | "custom": {}, 3369 | "mappings": [], 3370 | "thresholds": { 3371 | "mode": "absolute", 3372 | "steps": [ 3373 | { 3374 | "color": "green", 3375 | "value": null 3376 | }, 3377 | { 3378 | "color": "red", 3379 | "value": 80 3380 | } 3381 | ] 3382 | } 3383 | }, 3384 | "overrides": [] 3385 | }, 3386 | "gridPos": { 3387 | "h": 6, 3388 | "w": 8, 3389 | "x": 8, 3390 | "y": 7 3391 | }, 3392 | "id": 63, 3393 | "options": { 3394 | "displayMode": "gradient", 3395 | "orientation": "horizontal", 3396 | "reduceOptions": { 3397 | "calcs": [ 3398 | "lastNotNull" 3399 | ], 3400 | "fields": "", 3401 | "values": false 3402 | }, 3403 | "showUnfilled": true 3404 | }, 3405 | "pluginVersion": "7.3.1", 3406 | "targets": [ 3407 | { 3408 | "expr": "rocketmq_brokeruntime_commitlog_maxoffset{Cluster=\"$cluster\",Env=\"$env\"} - rocketmq_brokeruntime_commitlog_minoffset{Cluster=\"$cluster\",Env=\"$env\"}", 3409 | "instant": true, 3410 | "interval": "", 3411 | "legendFormat": "{{brokerIP}}", 3412 | "refId": "A" 3413 | } 3414 | ], 3415 | "timeFrom": null, 3416 | "timeShift": null, 3417 | "title": "消息量", 3418 | "type": "bargauge" 3419 | }, 3420 | { 3421 | "datasource": "${DS_PROMETHEUS}", 3422 | "fieldConfig": { 3423 | "defaults": { 3424 | "custom": {}, 3425 | "mappings": [], 3426 | "thresholds": { 3427 | "mode": "absolute", 3428 | "steps": [ 3429 | { 3430 | "color": "green", 3431 | "value": null 3432 | }, 3433 | { 3434 | "color": "red", 3435 | "value": 80 3436 | } 3437 | ] 3438 | } 3439 | }, 3440 | "overrides": [] 3441 | }, 3442 | "gridPos": { 3443 | "h": 6, 3444 | "w": 8, 3445 | "x": 16, 3446 | "y": 7 3447 | }, 3448 | "id": 62, 3449 | "options": { 3450 | "displayMode": "lcd", 3451 | "orientation": "horizontal", 3452 | "reduceOptions": { 3453 | "calcs": [ 3454 | "lastNotNull" 3455 | ], 3456 | "fields": "", 3457 | "values": false 3458 | }, 3459 | "showUnfilled": true 3460 | }, 3461 | "pluginVersion": "7.3.1", 3462 | "targets": [ 3463 | { 3464 | "expr": "rocketmq_brokeruntime_commitlog_maxoffset{Cluster=\"$cluster\",Env=\"$env\"}", 3465 | "instant": true, 3466 | "interval": "", 3467 | "legendFormat": "{{brokerIP}}", 3468 | "refId": "A" 3469 | } 3470 | ], 3471 | "timeFrom": null, 3472 | "timeShift": null, 3473 | "title": "commit log最大位点", 3474 | "type": "bargauge" 3475 | }, 3476 | { 3477 | "columns": [], 3478 | "datasource": "${DS_PROMETHEUS}", 3479 | "description": "", 3480 | "fieldConfig": { 3481 | "defaults": { 3482 | "custom": {} 3483 | }, 3484 | "overrides": [] 3485 | }, 3486 | "fontSize": "80%", 3487 | "gridPos": { 3488 | "h": 8, 3489 | "w": 8, 3490 | "x": 0, 3491 | "y": 13 3492 | }, 3493 | "id": 64, 3494 | "pageSize": 20, 3495 | "showHeader": true, 3496 | "sort": { 3497 | "col": null, 3498 | "desc": false 3499 | }, 3500 | "styles": [ 3501 | { 3502 | "alias": "Topic", 3503 | "align": "auto", 3504 | "colorMode": null, 3505 | "colors": [ 3506 | "rgba(245, 54, 54, 0.9)", 3507 | "rgba(237, 129, 40, 0.89)", 3508 | "rgba(50, 172, 45, 0.97)" 3509 | ], 3510 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3511 | "decimals": 2, 3512 | "link": false, 3513 | "linkTargetBlank": false, 3514 | "linkTooltip": "消费端明细", 3515 | "linkUrl": "d/zkVx1w_iz/rocketmq?orgId=1&var-env=${Env}&var-cluster=${Cluster}&var-broker=${broker}&var-topic=All&var-group=$group", 3516 | "mappingType": 1, 3517 | "pattern": "topic", 3518 | "preserveFormat": false, 3519 | "thresholds": [], 3520 | "type": "string", 3521 | "unit": "short" 3522 | }, 3523 | { 3524 | "alias": "生产位点", 3525 | "align": "auto", 3526 | "colorMode": null, 3527 | "colors": [ 3528 | "rgba(50, 172, 45, 0.97)", 3529 | "rgba(237, 129, 40, 0.89)", 3530 | "rgba(245, 54, 54, 0.9)" 3531 | ], 3532 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3533 | "decimals": null, 3534 | "mappingType": 1, 3535 | "pattern": "Value", 3536 | "thresholds": [ 3537 | "1", 3538 | "100" 3539 | ], 3540 | "type": "number", 3541 | "unit": "none" 3542 | }, 3543 | { 3544 | "alias": "", 3545 | "align": "auto", 3546 | "colorMode": null, 3547 | "colors": [ 3548 | "rgba(245, 54, 54, 0.9)", 3549 | "rgba(237, 129, 40, 0.89)", 3550 | "rgba(50, 172, 45, 0.97)" 3551 | ], 3552 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3553 | "decimals": 2, 3554 | "mappingType": 1, 3555 | "pattern": "/.*/", 3556 | "thresholds": [], 3557 | "type": "hidden", 3558 | "unit": "short" 3559 | } 3560 | ], 3561 | "targets": [ 3562 | { 3563 | "expr": "rocketmq_producer_offset{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\"}", 3564 | "format": "table", 3565 | "instant": true, 3566 | "interval": "", 3567 | "legendFormat": "topic生产位点", 3568 | "refId": "A" 3569 | } 3570 | ], 3571 | "timeFrom": null, 3572 | "timeShift": null, 3573 | "title": "Topic生产位点", 3574 | "transform": "table", 3575 | "type": "table-old" 3576 | }, 3577 | { 3578 | "columns": [], 3579 | "datasource": "${DS_PROMETHEUS}", 3580 | "description": "", 3581 | "fieldConfig": { 3582 | "defaults": { 3583 | "custom": {} 3584 | }, 3585 | "overrides": [] 3586 | }, 3587 | "fontSize": "80%", 3588 | "gridPos": { 3589 | "h": 8, 3590 | "w": 8, 3591 | "x": 8, 3592 | "y": 13 3593 | }, 3594 | "id": 65, 3595 | "pageSize": 20, 3596 | "showHeader": true, 3597 | "sort": { 3598 | "col": null, 3599 | "desc": false 3600 | }, 3601 | "styles": [ 3602 | { 3603 | "alias": "Topic", 3604 | "align": "auto", 3605 | "colorMode": null, 3606 | "colors": [ 3607 | "rgba(245, 54, 54, 0.9)", 3608 | "rgba(237, 129, 40, 0.89)", 3609 | "rgba(50, 172, 45, 0.97)" 3610 | ], 3611 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3612 | "decimals": 2, 3613 | "link": false, 3614 | "linkTargetBlank": false, 3615 | "linkTooltip": "消费端明细", 3616 | "linkUrl": "d/zkVx1w_iz/rocketmq?orgId=1&var-env=${Env}&var-cluster=${Cluster}&var-broker=${broker}&var-topic=All&var-group=$group", 3617 | "mappingType": 1, 3618 | "pattern": "topic", 3619 | "preserveFormat": false, 3620 | "thresholds": [], 3621 | "type": "string", 3622 | "unit": "short" 3623 | }, 3624 | { 3625 | "alias": "生产位点", 3626 | "align": "auto", 3627 | "colorMode": null, 3628 | "colors": [ 3629 | "rgba(50, 172, 45, 0.97)", 3630 | "rgba(237, 129, 40, 0.89)", 3631 | "rgba(245, 54, 54, 0.9)" 3632 | ], 3633 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3634 | "decimals": null, 3635 | "mappingType": 1, 3636 | "pattern": "Value", 3637 | "thresholds": [ 3638 | "1", 3639 | "100" 3640 | ], 3641 | "type": "number", 3642 | "unit": "none" 3643 | }, 3644 | { 3645 | "alias": "", 3646 | "align": "auto", 3647 | "colorMode": null, 3648 | "colors": [ 3649 | "rgba(245, 54, 54, 0.9)", 3650 | "rgba(237, 129, 40, 0.89)", 3651 | "rgba(50, 172, 45, 0.97)" 3652 | ], 3653 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3654 | "decimals": 2, 3655 | "mappingType": 1, 3656 | "pattern": "/.*/", 3657 | "thresholds": [], 3658 | "type": "hidden", 3659 | "unit": "short" 3660 | } 3661 | ], 3662 | "targets": [ 3663 | { 3664 | "expr": "rocketmq_topic_retry_offset{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\"}", 3665 | "format": "table", 3666 | "instant": true, 3667 | "interval": "", 3668 | "legendFormat": "topic生产位点", 3669 | "refId": "A" 3670 | } 3671 | ], 3672 | "timeFrom": null, 3673 | "timeShift": null, 3674 | "title": "重试队列位点", 3675 | "transform": "table", 3676 | "type": "table-old" 3677 | }, 3678 | { 3679 | "columns": [], 3680 | "datasource": "${DS_PROMETHEUS}", 3681 | "description": "", 3682 | "fieldConfig": { 3683 | "defaults": { 3684 | "custom": {} 3685 | }, 3686 | "overrides": [] 3687 | }, 3688 | "fontSize": "80%", 3689 | "gridPos": { 3690 | "h": 8, 3691 | "w": 8, 3692 | "x": 16, 3693 | "y": 13 3694 | }, 3695 | "id": 66, 3696 | "pageSize": 20, 3697 | "showHeader": true, 3698 | "sort": { 3699 | "col": null, 3700 | "desc": false 3701 | }, 3702 | "styles": [ 3703 | { 3704 | "alias": "消费组", 3705 | "align": "auto", 3706 | "colorMode": null, 3707 | "colors": [ 3708 | "rgba(245, 54, 54, 0.9)", 3709 | "rgba(237, 129, 40, 0.89)", 3710 | "rgba(50, 172, 45, 0.97)" 3711 | ], 3712 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3713 | "decimals": 2, 3714 | "link": false, 3715 | "linkTargetBlank": false, 3716 | "linkTooltip": "消费端明细", 3717 | "linkUrl": "d/zkVx1w_iz/rocketmq?orgId=1&var-env=${Env}&var-cluster=${Cluster}&var-broker=${broker}&var-topic=All&var-group=$group", 3718 | "mappingType": 1, 3719 | "pattern": "group", 3720 | "preserveFormat": false, 3721 | "thresholds": [], 3722 | "type": "string", 3723 | "unit": "short" 3724 | }, 3725 | { 3726 | "alias": "生产位点", 3727 | "align": "auto", 3728 | "colorMode": null, 3729 | "colors": [ 3730 | "rgba(50, 172, 45, 0.97)", 3731 | "rgba(237, 129, 40, 0.89)", 3732 | "rgba(245, 54, 54, 0.9)" 3733 | ], 3734 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3735 | "decimals": null, 3736 | "mappingType": 1, 3737 | "pattern": "Value", 3738 | "thresholds": [ 3739 | "1", 3740 | "100" 3741 | ], 3742 | "type": "number", 3743 | "unit": "none" 3744 | }, 3745 | { 3746 | "alias": "", 3747 | "align": "auto", 3748 | "colorMode": null, 3749 | "colors": [ 3750 | "rgba(245, 54, 54, 0.9)", 3751 | "rgba(237, 129, 40, 0.89)", 3752 | "rgba(50, 172, 45, 0.97)" 3753 | ], 3754 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3755 | "decimals": 2, 3756 | "mappingType": 1, 3757 | "pattern": "/.*/", 3758 | "thresholds": [], 3759 | "type": "hidden", 3760 | "unit": "short" 3761 | } 3762 | ], 3763 | "targets": [ 3764 | { 3765 | "expr": "rocketmq_topic_dlq_offset{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\"}", 3766 | "format": "table", 3767 | "instant": true, 3768 | "interval": "", 3769 | "legendFormat": "topic生产位点", 3770 | "refId": "A" 3771 | } 3772 | ], 3773 | "timeFrom": null, 3774 | "timeShift": null, 3775 | "title": "死信队列位点", 3776 | "transform": "table", 3777 | "type": "table-old" 3778 | }, 3779 | { 3780 | "columns": [], 3781 | "datasource": "${DS_PROMETHEUS}", 3782 | "description": "", 3783 | "fieldConfig": { 3784 | "defaults": { 3785 | "custom": {} 3786 | }, 3787 | "overrides": [] 3788 | }, 3789 | "fontSize": "80%", 3790 | "gridPos": { 3791 | "h": 9, 3792 | "w": 24, 3793 | "x": 0, 3794 | "y": 21 3795 | }, 3796 | "id": 67, 3797 | "pageSize": 20, 3798 | "showHeader": true, 3799 | "sort": { 3800 | "col": null, 3801 | "desc": false 3802 | }, 3803 | "styles": [ 3804 | { 3805 | "alias": "消费组", 3806 | "align": "auto", 3807 | "colorMode": null, 3808 | "colors": [ 3809 | "rgba(245, 54, 54, 0.9)", 3810 | "rgba(237, 129, 40, 0.89)", 3811 | "rgba(50, 172, 45, 0.97)" 3812 | ], 3813 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3814 | "decimals": 2, 3815 | "link": false, 3816 | "linkTargetBlank": false, 3817 | "linkTooltip": "消费端明细", 3818 | "linkUrl": "d/zkVx1w_iz/rocketmq?orgId=1&var-env=${Env}&var-cluster=${Cluster}&var-broker=${broker}&var-topic=All&var-group=$group", 3819 | "mappingType": 1, 3820 | "pattern": "group", 3821 | "preserveFormat": false, 3822 | "thresholds": [], 3823 | "type": "string", 3824 | "unit": "short" 3825 | }, 3826 | { 3827 | "alias": "消费位点", 3828 | "align": "auto", 3829 | "colorMode": null, 3830 | "colors": [ 3831 | "rgba(50, 172, 45, 0.97)", 3832 | "rgba(237, 129, 40, 0.89)", 3833 | "rgba(245, 54, 54, 0.9)" 3834 | ], 3835 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3836 | "decimals": null, 3837 | "mappingType": 1, 3838 | "pattern": "Value", 3839 | "thresholds": [ 3840 | "1", 3841 | "100" 3842 | ], 3843 | "type": "number", 3844 | "unit": "none" 3845 | }, 3846 | { 3847 | "alias": "Topic", 3848 | "align": "auto", 3849 | "colorMode": null, 3850 | "colors": [ 3851 | "rgba(245, 54, 54, 0.9)", 3852 | "rgba(237, 129, 40, 0.89)", 3853 | "rgba(50, 172, 45, 0.97)" 3854 | ], 3855 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3856 | "decimals": 2, 3857 | "mappingType": 1, 3858 | "pattern": "topic", 3859 | "thresholds": [], 3860 | "type": "string", 3861 | "unit": "short" 3862 | }, 3863 | { 3864 | "alias": "Broker", 3865 | "align": "auto", 3866 | "colorMode": null, 3867 | "colors": [ 3868 | "rgba(245, 54, 54, 0.9)", 3869 | "rgba(237, 129, 40, 0.89)", 3870 | "rgba(50, 172, 45, 0.97)" 3871 | ], 3872 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3873 | "decimals": 2, 3874 | "mappingType": 1, 3875 | "pattern": "broker", 3876 | "thresholds": [], 3877 | "type": "string", 3878 | "unit": "short" 3879 | }, 3880 | { 3881 | "alias": "", 3882 | "align": "auto", 3883 | "colorMode": null, 3884 | "colors": [ 3885 | "rgba(245, 54, 54, 0.9)", 3886 | "rgba(237, 129, 40, 0.89)", 3887 | "rgba(50, 172, 45, 0.97)" 3888 | ], 3889 | "dateFormat": "YYYY-MM-DD HH:mm:ss", 3890 | "decimals": 2, 3891 | "mappingType": 1, 3892 | "pattern": "/.*/", 3893 | "thresholds": [], 3894 | "type": "hidden", 3895 | "unit": "short" 3896 | } 3897 | ], 3898 | "targets": [ 3899 | { 3900 | "expr": "rocketmq_consumer_offset{Cluster=\"$cluster\",Env=\"$env\",broker=~\"$broker\",topic=~\"$topic\"}", 3901 | "format": "table", 3902 | "instant": true, 3903 | "interval": "", 3904 | "legendFormat": "topic生产位点", 3905 | "refId": "A" 3906 | } 3907 | ], 3908 | "timeFrom": null, 3909 | "timeShift": null, 3910 | "title": "消费位点", 3911 | "transform": "table", 3912 | "type": "table-old" 3913 | } 3914 | ], 3915 | "title": "位点信息", 3916 | "type": "row" 3917 | } 3918 | ], 3919 | "refresh": "10s", 3920 | "schemaVersion": 26, 3921 | "style": "dark", 3922 | "tags": [], 3923 | "templating": { 3924 | "list": [ 3925 | { 3926 | "allValue": null, 3927 | "current": { 3928 | "selected": false, 3929 | "text": "开发", 3930 | "value": "开发" 3931 | }, 3932 | "datasource": "${DS_PROMETHEUS}", 3933 | "definition": "label_values(rocketmq_broker_tps,Env)", 3934 | "error": null, 3935 | "hide": 0, 3936 | "includeAll": false, 3937 | "label": "环境", 3938 | "multi": false, 3939 | "name": "env", 3940 | "options": [], 3941 | "query": "label_values(rocketmq_broker_tps,Env)", 3942 | "refresh": 2, 3943 | "regex": "", 3944 | "skipUrlSync": false, 3945 | "sort": 0, 3946 | "tagValuesQuery": "", 3947 | "tags": [], 3948 | "tagsQuery": "", 3949 | "type": "query", 3950 | "useTags": false 3951 | }, 3952 | { 3953 | "allValue": null, 3954 | "current": { 3955 | "selected": false, 3956 | "text": "local", 3957 | "value": "local" 3958 | }, 3959 | "datasource": "${DS_PROMETHEUS}", 3960 | "definition": "label_values(rocketmq_broker_tps{Env=~\"$env\"},Cluster)", 3961 | "error": null, 3962 | "hide": 0, 3963 | "includeAll": false, 3964 | "label": "集群", 3965 | "multi": false, 3966 | "name": "cluster", 3967 | "options": [], 3968 | "query": "label_values(rocketmq_broker_tps{Env=~\"$env\"},Cluster)", 3969 | "refresh": 2, 3970 | "regex": "", 3971 | "skipUrlSync": false, 3972 | "sort": 2, 3973 | "tagValuesQuery": "", 3974 | "tags": [], 3975 | "tagsQuery": "", 3976 | "type": "query", 3977 | "useTags": false 3978 | }, 3979 | { 3980 | "allValue": null, 3981 | "current": { 3982 | "selected": true, 3983 | "text": [ 3984 | "All" 3985 | ], 3986 | "value": [ 3987 | "$__all" 3988 | ] 3989 | }, 3990 | "datasource": "${DS_PROMETHEUS}", 3991 | "definition": "label_values(rocketmq_broker_tps{Cluster=~\"$cluster\"},broker)", 3992 | "error": null, 3993 | "hide": 0, 3994 | "includeAll": true, 3995 | "label": "Broker名称", 3996 | "multi": true, 3997 | "name": "broker", 3998 | "options": [], 3999 | "query": "label_values(rocketmq_broker_tps{Cluster=~\"$cluster\"},broker)", 4000 | "refresh": 2, 4001 | "regex": "", 4002 | "skipUrlSync": false, 4003 | "sort": 0, 4004 | "tagValuesQuery": "", 4005 | "tags": [], 4006 | "tagsQuery": "", 4007 | "type": "query", 4008 | "useTags": false 4009 | }, 4010 | { 4011 | "allValue": null, 4012 | "current": { 4013 | "selected": true, 4014 | "text": [ 4015 | "All" 4016 | ], 4017 | "value": [ 4018 | "$__all" 4019 | ] 4020 | }, 4021 | "datasource": "${DS_PROMETHEUS}", 4022 | "definition": "label_values( rocketmq_producer_tps{Cluster=~\"$cluster\"}, topic)", 4023 | "error": null, 4024 | "hide": 0, 4025 | "includeAll": true, 4026 | "label": "主题", 4027 | "multi": true, 4028 | "name": "topic", 4029 | "options": [], 4030 | "query": "label_values( rocketmq_producer_tps{Cluster=~\"$cluster\"}, topic)", 4031 | "refresh": 2, 4032 | "regex": "/^(?!.*?SYS).*$/", 4033 | "skipUrlSync": false, 4034 | "sort": 0, 4035 | "tagValuesQuery": "", 4036 | "tags": [], 4037 | "tagsQuery": "", 4038 | "type": "query", 4039 | "useTags": false 4040 | }, 4041 | { 4042 | "allValue": null, 4043 | "current": { 4044 | "selected": true, 4045 | "text": [ 4046 | "All" 4047 | ], 4048 | "value": [ 4049 | "$__all" 4050 | ] 4051 | }, 4052 | "datasource": "${DS_PROMETHEUS}", 4053 | "definition": "label_values(rocketmq_consumer_tps{Cluster=~\"$cluster\"}, group)", 4054 | "error": null, 4055 | "hide": 0, 4056 | "includeAll": true, 4057 | "label": "消费组", 4058 | "multi": true, 4059 | "name": "group", 4060 | "options": [], 4061 | "query": "label_values(rocketmq_consumer_tps{Cluster=~\"$cluster\"}, group)", 4062 | "refresh": 2, 4063 | "regex": "/^(?!.*?SYS).*$/", 4064 | "skipUrlSync": false, 4065 | "sort": 0, 4066 | "tagValuesQuery": "", 4067 | "tags": [], 4068 | "tagsQuery": "", 4069 | "type": "query", 4070 | "useTags": false 4071 | } 4072 | ] 4073 | }, 4074 | "time": { 4075 | "from": "now-15m", 4076 | "to": "now" 4077 | }, 4078 | "timepicker": { 4079 | "refresh_intervals": [ 4080 | "5s", 4081 | "10s", 4082 | "30s", 4083 | "1m", 4084 | "5m", 4085 | "15m", 4086 | "30m", 4087 | "1h", 4088 | "2h", 4089 | "1d" 4090 | ], 4091 | "time_options": [ 4092 | "5m", 4093 | "15m", 4094 | "1h", 4095 | "6h", 4096 | "12h", 4097 | "24h", 4098 | "2d", 4099 | "7d", 4100 | "30d" 4101 | ] 4102 | }, 4103 | "timezone": "", 4104 | "title": "rocketmq-exporter", 4105 | "uid": "1zkVx1w_iz", 4106 | "version": 13 4107 | } --------------------------------------------------------------------------------