Grafana----RabbitMQ监控看板
一、 看板展示
二、 json记录
{"editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 24, "iteration": 1659085192308, "links": [], "liveNow": false, "panels": [ { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 4, "panels": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "", "fieldConfig": { "defaults": { "color": { "mode": "thresholds", "seriesBy": "last" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-blue" }, { "color": "semi-dark-orange", "value": 9999 }, { "color": "semi-dark-red", "value": 99999 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 0, "y": 1 }, "id": 2, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rabbitmq_queue_messages_ready_gauge{application=\"$application\", ident=\"$ident\"})", "instant": false, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "就绪消息", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-blue" } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 5, "x": 4, "y": 1 }, "id": 6, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_published_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "传入消息(每秒)", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-purple" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 5, "x": 9, "y": 1 }, "id": 8, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rabbitmq_channels_gauge{application=\"$application\", ident=\"$ident\"}) - (sum(rabbitmq_channel_consumers_gauge{application=\"$application\", ident=\"$ident\"}) - 0)", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "生产者", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-purple" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 5, "x": 14, "y": 1 }, "id": 10, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "rabbitmq_connections_gauge{application=\"$application\", ident=\"$ident\"}", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "连接", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-purple" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 5, "x": 19, "y": 1 }, "id": 12, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "vertical", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "rabbitmq_queues_gauge{application=\"$application\", ident=\"$ident\"}", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "队列", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-blue" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 0, "y": 5 }, "id": 14, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rabbitmq_queue_messages_unacked_gauge{application=\"$application\", ident=\"$ident\"})", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "未确认消息", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-blue" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 5, "x": 4, "y": 5 }, "id": 16, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_redelivered_total_counter{application=\"$application\",ident=\"$ident\"}[60s])) + sum(rate(rabbitmq_channel_messages_delivered_total_counter{application=\"$application\",ident=\"$ident\"}[60s])) + sum(rate(rabbitmq_channel_messages_delivered_ack_total_counter{application=\"$application\",ident=\"$ident\"}[60s])) + sum(rate(rabbitmq_channel_get_total_counter{application=\"$application\",ident=\"$ident\"}[60s])) + sum(rate(rabbitmq_channel_get_ack_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))\r\n", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "传出消息(每秒)", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-purple" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 5, "x": 9, "y": 5 }, "id": 17, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rabbitmq_channel_consumers_gauge{application=\"$application\", ident=\"$ident\"})", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "消费者", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "light-purple" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 4, "w": 5, "x": 14, "y": 5 }, "id": 18, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "rabbitmq_channels_gauge{application=\"$application\", ident=\"$ident\"}", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "信道", "type": "stat" } ], "title": "概览", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 1 }, "id": 21, "panels": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "displayMode": "auto", "filterable": false, "minWidth": 50 }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] } }, "overrides": [] }, "gridPos": { "h": 3, "w": 24, "x": 0, "y": 2 }, "id": 19, "options": { "footer": { "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [ { "desc": true, "displayName": "erlang版本号" } ] }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": false, "expr": "rabbitmq_build_info_value{application=\"$application\", ident=\"$ident\"} - 0", "format": "table", "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "A" } ], "title": "版本信息", "transformations": [ { "id": "organize", "options": { "excludeByName": { "Time": true, "Value": true, "application": true, "ident": true, "prometheus_client_version": true, "prometheus_plugin_version": true, "url": true }, "indexByName": {}, "renameByName": { "application": "", "erlang_version": "erlang版本号", "rabbitmq_version": "rabbitmq版本号" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 5, "w": 6, "x": 0, "y": 5 }, "id": 23, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "rabbitmq_resident_memory_limit_bytes_gauge{application=\"$application\", ident=\"$ident\"} - rabbitmq_process_resident_memory_bytes_gauge{application=\"$application\", ident=\"$ident\"}", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "可用内存", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] }, "unit": "bytes" }, "overrides": [] }, "gridPos": { "h": 5, "w": 6, "x": 6, "y": 5 }, "id": 25, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "rabbitmq_disk_space_available_bytes_gauge{application=\"$application\", ident=\"$ident\"}", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "可用磁盘空间", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 6, "x": 12, "y": 5 }, "id": 27, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "rabbitmq_process_max_fds_gauge{application=\"$application\",ident=\"$ident\"} - rabbitmq_process_open_fds_gauge{application=\"$application\",ident=\"$ident\"}", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "可用文件描述符", "type": "stat" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" } ] } }, "overrides": [] }, "gridPos": { "h": 5, "w": 6, "x": 18, "y": 5 }, "id": 29, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "auto", "orientation": "auto", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "textMode": "auto" }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "rabbitmq_process_max_tcp_sockets_gauge{application=\"$application\",ident=\"$ident\"} - rabbitmq_process_open_tcp_sockets_gauge{application=\"$application\",ident=\"$ident\"}", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "可用TCP 套接字", "type": "stat" } ], "title": "节点信息", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 2 }, "id": 31, "panels": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "准备好传递给消费者的就绪消息总数。\n\n旨在使该值尽可能低。 当消息流过它时,RabbitMQ 表现最好。 发布者偶尔超过消费者是可以的,但期望消费者最终会处理所有准备好的消息。\n\n如果此指标不断增加,您的系统最终将耗尽内存和/或磁盘空间。 考虑使用 TTL 或队列长度限制来防止无限制的消息增长。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 3 }, "id": 45, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rabbitmq_queue_messages_ready_gauge{application=\"$application\",ident=\"$ident\"})", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "准备好传递给消费者的消息", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "正在发送给消费者、当前正在由消费者处理或只是等待队列处理消费者确认的消息总数。 在队列处理消息确认之前,该消息将保持未确认状态。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 3 }, "id": 47, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rabbitmq_queue_messages_unacked_gauge{application=\"$application\",ident=\"$ident\"})", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "等待消费者确认的消息", "type": "timeseries" } ], "title": "队列消息", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 3 }, "id": 33, "panels": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "应用任何路由规则之前的传入消息速率。\n\n如果此值小于生产到队列的消息数,则可能表明某些消息被传递到多个队列。\n\n如果此值高于生产到队列的消息数,则无法路由消息并将被丢弃或返回给生产者。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 4 }, "id": 54, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_published_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "生产消息(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "代理向生产者确认消息的速率。 生产者必须选择接收消息确认。\n\n如果此指标始终为零,则可能表明客户端未使用生产者确认。 已发布消息的安全性可能存在风险。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 4 }, "id": 55, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_confirmed_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "向生产者确认的消息(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "从生产者接收并成功路由到主队列副本的消息的速率。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 11 }, "id": 56, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_queue_messages_published_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "成功路由到队列的消息速率(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "从开启“生产者确认”,代理未确认的生产者接收到消息的速率。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 11 }, "id": 57, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_unconfirmed_gauge{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "未向生产者确认的消息(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "无法路由和丢弃的消息的速率。\n\n任何高于零的值都意味着消息丢失,并且可能表明生产者端存在路由问题。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 18 }, "id": 58, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_unroutable_dropped_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "无法路由和被丢弃的消息(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "无法路由并返回给生产者的消息的比率。\n\n高于零的持续值可能表明发布者端存在路由问题。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 18 }, "id": 59, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_unroutable_returned_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "无法路由并返回给生产者的消息(每秒)", "type": "timeseries" } ], "title": "传入消息", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 4 }, "id": 43, "panels": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "传递给消费者的消息的速率。 它包括已重新传递的消息。\n\n该指标不包括消费者使用“basic.get”(通过轮询消费)获取的消息。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 5 }, "id": 61, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_delivered_total_counter{application=\"$application\",ident=\"$ident\"}[60s]) + rate(rabbitmq_channel_messages_delivered_ack_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "传递给消费者的消息(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "已重新传递给消费者的消息的速率。 它包括由于通道异常或连接关闭而自动重新排队和重新传递的消息。\n\n预计会有一些重新交付,但如果该指标始终非零,则值得调查原因。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 5 }, "id": 66, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_redelivered_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "已重新传递给消费者的消息(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "向使用手动确认模式的消费者传递消息的速率。\n\n使用此模式时,RabbitMQ 会等待消费者确认消息,然后才能传递更多消息。\n\n这是使用消息的最安全方式。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 12 }, "id": 65, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_delivered_ack_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "向使用手动确认模式的消费者传递的消息(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "向使用自动确认模式的消费者传递消息的速率。\n\n使用此模式时,RabbitMQ 不会等待消费者确认消息传递。\n\n这种模式是即发即弃的,不提供任何交付安全保证。 它倾向于提供更高的吞吐量,并且可能导致消费者过载和更高的消费者内存使用率。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 12 }, "id": 67, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_delivered_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "向使用自动确认模式的消费者传递的消息(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "来自使用手动确认模式的消费者的消息确认率。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 19 }, "id": 62, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_messages_acked_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "来自使用手动确认模式的消费者的消息确认(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "传递给使用自动确认模式的轮询消费者的消息的速率。\n\n轮询消费者的使用效率非常低,因此强烈反对。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 19 }, "id": 68, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_get_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "传递给使用自动确认模式的轮询消费者的消息(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "不产生结果的轮询消费者操作的速率。\n\n任何大于零的值都意味着 RabbitMQ 资源被轮询消费者浪费了。\n\n将此指标与其他轮询消费者指标进行比较,以查看低效率。\n\n轮询消费者的使用效率非常低,因此强烈反对。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 0, "y": 26 }, "id": 64, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_get_empty_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "不产生结果的轮询消费者操作(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "传递给使用手动确认模式的轮询消费者的消息的速率。\n\n轮询消费者的使用效率非常低,因此强烈反对。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 7, "w": 12, "x": 12, "y": 26 }, "id": 63, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channel_get_ack_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "消息数", "refId": "A" } ], "title": "传递给使用手动确认模式的轮询消费者的消息(每秒)", "type": "timeseries" } ], "title": "传出消息", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 }, "id": 41, "panels": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "displayMode": "auto", "filterable": false }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 0, "y": 6 }, "id": 70, "options": { "footer": { "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": false, "expr": "rabbitmq_queue_messages_gauge{application=\"$application\",ident=\"$ident\"} - 0", "format": "table", "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "A" } ], "title": "队列", "transformations": [ { "id": "organize", "options": { "excludeByName": { "Time": true, "Value": true, "application": true, "ident": true, "url": true, "vhost": true }, "indexByName": {}, "renameByName": { "queue": "队列名" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "客户端执行队列声明的速率。\n", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 6, "y": 6 }, "id": 73, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_queues_declared_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "队列数", "refId": "A" } ], "title": "队列声明(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "创建新队列的速率(相对于重新声明)。\n", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 12, "y": 6 }, "id": 72, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": false, "expr": "sum(rate(rabbitmq_queues_created_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "队列数", "refId": "A" } ], "title": "队列创建(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "队列删除的速率。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 6, "x": 18, "y": 6 }, "id": 71, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_queues_deleted_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "队列数", "refId": "A" } ], "title": "队列删除(每秒)", "type": "timeseries" } ], "title": "队列", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 6 }, "id": 39, "panels": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "displayMode": "auto" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 8, "x": 0, "y": 7 }, "id": 84, "options": { "footer": { "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true, "sortBy": [] }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": false, "expr": "rabbitmq_channel_consumers_gauge{application=\"$application\",ident=\"$ident\"} - 0", "format": "table", "instant": true, "interval": "", "legendFormat": "", "refId": "A" } ], "title": "信道", "transformations": [ { "id": "organize", "options": { "excludeByName": { "Time": true, "Value": true, "application": true, "ident": true, "url": true }, "indexByName": {}, "renameByName": { "channel": "信道名" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "应用程序在所有连接中打开新信道的速率。 预计信道将长期存在。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 8, "x": 8, "y": 7 }, "id": 79, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channels_opened_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "信道数", "refId": "A" } ], "title": "新信道(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "应用程序在所有连接中关闭信道的速率。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 7 }, "id": 77, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_channels_closed_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "信道数", "refId": "A" } ], "title": "关闭信道(每秒)", "type": "timeseries" } ], "title": "信道", "type": "row" }, { "collapsed": true, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 7 }, "id": 37, "panels": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { "align": "center", "displayMode": "auto" }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 8, "x": 0, "y": 8 }, "id": 76, "options": { "footer": { "fields": "", "reducer": [ "sum" ], "show": false }, "showHeader": true }, "pluginVersion": "8.4.5", "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": false, "expr": "rabbitmq_connection_incoming_packets_total_counter{application=\"$application\",ident=\"$ident\"} - 0", "format": "table", "instant": true, "interval": "", "intervalFactor": 1, "legendFormat": "", "refId": "A" } ], "title": "连接", "transformations": [ { "id": "organize", "options": { "excludeByName": { "Time": true, "Value": true, "application": true, "ident": true, "url": true }, "indexByName": {}, "renameByName": { "channel": "连接名" } } } ], "type": "table" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "客户端打开新连接的速率。 预计连接将是长期存在的。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 8, "x": 8, "y": 8 }, "id": 81, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_connections_opened_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "连接数", "refId": "A" } ], "title": "新连接(每秒)", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "description": "连接关闭的速率。", "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green" }, { "color": "red", "value": 80 } ] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 8 }, "id": 82, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "single", "sort": "none" } }, "targets": [ { "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "exemplar": true, "expr": "sum(rate(rabbitmq_connections_closed_total_counter{application=\"$application\",ident=\"$ident\"}[60s]))", "interval": "", "legendFormat": "连接数", "refId": "A" } ], "title": "关闭连接(每秒)", "type": "timeseries" } ], "title": "连接", "type": "row" } ], "schemaVersion": 35, "style": "dark", "tags": [], "templating": { "list": [ { "current": { "selected": false, "text": "fxcrm", "value": "fxcrm" }, "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "definition": "system_uptime", "description": "", "hide": 0, "includeAll": false, "label": "Application", "multi": false, "name": "application", "options": [], "query": { "query": "system_uptime", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": ".*application=\"(.*?)\".*", "skipUrlSync": false, "sort": 0, "type": "query" }, { "current": { "selected": false, "text": "fxcrm-cudrania", "value": "fxcrm-cudrania" }, "datasource": { "type": "prometheus", "uid": "7pfyIeX7k" }, "definition": "system_uptime", "hide": 0, "includeAll": false, "label": "Ident", "multi": false, "name": "ident", "options": [], "query": { "query": "system_uptime", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": ".*ident=\"(.*?)\".*", "skipUrlSync": false, "sort": 0, "type": "query" } ] }, "time": { "from": "now-5m", "to": "now" }, "timepicker": {}, "timezone": "", "title": "RabbitMQ", "uid": "X65qeqg4z", "version": 82, "weekStart": "" }
本文来自博客园,作者:ヾ(o◕∀◕)ノヾ,转载请注明原文链接:https://www.cnblogs.com/Jupiter-blog/p/16532908.html
« 上一篇: Poste部署--docker
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构