{
    "name": "Pulsar - Messaging",
    "tags": "",
    "ident": "",
    "configs": {
        "version": "3.0.0",
        "links": [],
        "var": [
            {
                "name": "datasource",
                "type": "datasource",
                "definition": "prometheus"
            },
            {
                "name": "cluster",
                "type": "query",
                "datasource": {
                    "cate": "prometheus",
                    "value": "${datasource}"
                },
                "definition": "label_values(up{job=\"pulsar-bookie\", cluster=~\"pulsar-.*\"}, cluster)",
                "reg": "",
                "multi": false
            },
            {
                "name": "namespace",
                "type": "query",
                "datasource": {
                    "cate": "prometheus",
                    "value": "${datasource}"
                },
                "definition": "label_values(pulsar_topics_count{cluster=~\"$cluster\", namespace!=\"\"},namespace)",
                "reg": "",
                "multi": false
            }
        ],
        "panels": [
            {
                "version": "2.0.0",
                "id": "3251b5c1-9e3f-4998-a0d1-4d705bbd3781",
                "type": "row",
                "name": "Overview",
                "collapsed": true,
                "layout": {
                    "h": 1,
                    "w": 24,
                    "x": 0,
                    "y": 0,
                    "i": "3251b5c1-9e3f-4998-a0d1-4d705bbd3781",
                    "isResizable": false
                },
                "panels": []
            },
            {
                "type": "stat",
                "id": "649c0c80-28c2-4c00-a7b8-102a8e8d54f5",
                "layout": {
                    "h": 5,
                    "w": 4,
                    "x": 0,
                    "y": 1,
                    "i": "649c0c80-28c2-4c00-a7b8-102a8e8d54f5",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_topics_count{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Topics",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "473b6bd6-9945-4516-8ff1-ef7a12ea63ba",
                "layout": {
                    "h": 5,
                    "w": 4,
                    "x": 4,
                    "y": 1,
                    "i": "473b6bd6-9945-4516-8ff1-ef7a12ea63ba",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_producers_count{cluster=~\"$cluster\", job=~\"pulsar-broker\",  namespace=~\"$namespace\"})",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Producers",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "d71ee841-5da3-42ed-9079-1f16e7152c25",
                "layout": {
                    "h": 5,
                    "w": 4,
                    "x": 8,
                    "y": 1,
                    "i": "d71ee841-5da3-42ed-9079-1f16e7152c25",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_subscriptions_count{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Subscriptions",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "4aab7f5a-97aa-4344-914e-eaec5e88f456",
                "layout": {
                    "h": 5,
                    "w": 4,
                    "x": 12,
                    "y": 1,
                    "i": "4aab7f5a-97aa-4344-914e-eaec5e88f456",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_consumers_count{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Consumers",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "ac5039dd-2af9-46e0-a0a9-ca84dc63cef5",
                "layout": {
                    "h": 5,
                    "w": 4,
                    "x": 16,
                    "y": 1,
                    "i": "ac5039dd-2af9-46e0-a0a9-ca84dc63cef5",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_msg_backlog{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Msg Backlog",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "f43c4443-2038-486c-aaf8-d1a037e124c8",
                "layout": {
                    "h": 5,
                    "w": 4,
                    "x": 20,
                    "y": 1,
                    "i": "f43c4443-2038-486c-aaf8-d1a037e124c8",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_storage_size{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Storage Size",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "6678e843-2134-40d7-bea1-013e2ce879cf",
                "type": "row",
                "name": "Namespaces",
                "collapsed": true,
                "layout": {
                    "h": 1,
                    "w": 24,
                    "x": 0,
                    "y": 6,
                    "i": "6678e843-2134-40d7-bea1-013e2ce879cf",
                    "isResizable": false
                },
                "panels": []
            },
            {
                "version": "2.0.0",
                "id": "3ec7e466-6cb1-4bf2-a9f1-7a1decfbc774",
                "type": "timeseries",
                "name": "Local publish rate",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 0,
                    "y": 7,
                    "i": "3ec7e466-6cb1-4bf2-a9f1-7a1decfbc774",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_rate_in{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) by (cluster, namespace)",
                        "legend": "{{cluster}} - {{namespace}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "0f792269-48aa-4eec-8726-fc3fa4f0c7b6",
                "type": "timeseries",
                "name": "Local delivery rate",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 12,
                    "y": 7,
                    "i": "0f792269-48aa-4eec-8726-fc3fa4f0c7b6",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_rate_out{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) by (cluster, namespace)",
                        "legend": "{{cluster}} - {{namespace}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "23d2f581-621c-4e15-842b-381a8a01b5c0",
                "type": "timeseries",
                "name": "Local publish throughput (bytes/s)",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 0,
                    "y": 14,
                    "i": "23d2f581-621c-4e15-842b-381a8a01b5c0",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_throughput_in{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) by (cluster, namespace)",
                        "legend": "{{cluster}} - {{namespace}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "9636a117-1025-4845-951a-34ca209654dc",
                "type": "timeseries",
                "name": "Local delivery throughput (bytes/s)",
                "description": "",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 12,
                    "y": 14,
                    "i": "9636a117-1025-4845-951a-34ca209654dc",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_throughput_out{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) by (cluster, namespace)",
                        "legend": "{{cluster}} - {{namespace}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "a0c01b82-a670-4492-b66c-abbd463d3d1c",
                "type": "timeseries",
                "name": "Topics - Producers - Subscriptions - Consumers",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 0,
                    "y": 21,
                    "i": "a0c01b82-a670-4492-b66c-abbd463d3d1c",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "D",
                        "expr": "sum(pulsar_topics_count{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})",
                        "legend": "topics"
                    },
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_producers_count{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})",
                        "legend": "producers"
                    },
                    {
                        "refId": "B",
                        "expr": "sum(pulsar_subscriptions_count{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})",
                        "legend": "subscriptions"
                    },
                    {
                        "refId": "C",
                        "expr": "sum(pulsar_consumers_count{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})",
                        "legend": "consumers"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "7e1d05c9-4274-449a-b50a-19ccbfe66b90",
                "type": "timeseries",
                "name": "Local backlog",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 12,
                    "y": 21,
                    "i": "7e1d05c9-4274-449a-b50a-19ccbfe66b90",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_msg_backlog{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) by (cluster, namespace)",
                        "legend": "{{cluster}} - {{namespace}}"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "0910e4d3-7445-48d2-a3ce-e5f84e5b7395",
                "type": "row",
                "name": "Storage",
                "collapsed": true,
                "layout": {
                    "h": 1,
                    "w": 24,
                    "x": 0,
                    "y": 28,
                    "i": "0910e4d3-7445-48d2-a3ce-e5f84e5b7395",
                    "isResizable": false
                },
                "panels": []
            },
            {
                "version": "2.0.0",
                "id": "bfeb8093-86f7-41d3-8dff-312886d2bd84",
                "type": "timeseries",
                "name": "Storage Write Latency",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 0,
                    "y": 29,
                    "i": "bfeb8093-86f7-41d3-8dff-312886d2bd84",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_storage_write_latency_le_0_5{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "0 - 0.5 ms"
                    },
                    {
                        "refId": "B",
                        "expr": "sum(pulsar_storage_write_latency_le_1{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "0.5 - 1 ms"
                    },
                    {
                        "refId": "C",
                        "expr": "sum(pulsar_storage_write_latency_le_5{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "1 - 5 ms"
                    },
                    {
                        "refId": "D",
                        "expr": "sum(pulsar_storage_write_latency_le_10{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "5 - 10 ms"
                    },
                    {
                        "refId": "E",
                        "expr": "sum(pulsar_storage_write_latency_le_20{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "10 - 20 ms"
                    },
                    {
                        "refId": "F",
                        "expr": "sum(pulsar_storage_write_latency_le_50{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "20 - 50 ms"
                    },
                    {
                        "refId": "G",
                        "expr": "sum(pulsar_storage_write_latency_le_100{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "50 - 100 ms"
                    },
                    {
                        "refId": "H",
                        "expr": "sum(pulsar_storage_write_latency_le_200{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "100 - 200 ms"
                    },
                    {
                        "refId": "I",
                        "expr": "sum(pulsar_storage_write_latency_le_1000{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "200 ms - 1 s"
                    },
                    {
                        "refId": "J",
                        "expr": "sum(pulsar_storage_write_latency_overflow{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "> 1 s"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "type": "timeseries",
                "id": "d4c61bd1-e335-4dc2-ad62-8736661be04b",
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 12,
                    "y": 29,
                    "i": "d4c61bd1-e335-4dc2-ad62-8736661be04b",
                    "isResizable": true
                },
                "version": "3.0.0",
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_storage_size{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})by (namespace)",
                        "legend": "{{namespace}}",
                        "maxDataPoints": 240
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Storage Size",
                "links": [],
                "maxPerRow": 4,
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden",
                        "heightInPercentage": 30,
                        "placement": "bottom",
                        "behaviour": "showItem",
                        "selectMode": "single"
                    },
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "spanNulls": false,
                    "lineWidth": 2,
                    "fillOpacity": 0.5,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    },
                    "showPoints": "none",
                    "pointSize": 5
                },
                "overrides": [
                    {
                        "matcher": {
                            "id": "byFrameRefID"
                        },
                        "properties": {
                            "rightYAxisDisplay": "off"
                        }
                    }
                ]
            },
            {
                "type": "timeseries",
                "id": "e8c976de-bc40-4e2e-9ff1-3fb1665fd29c",
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 0,
                    "y": 36,
                    "i": "e8c976de-bc40-4e2e-9ff1-3fb1665fd29c",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_storage_write_latency_count{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) by (namespace)",
                        "legend": "{{namespace}}"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Storage Write Rate",
                "links": [],
                "description": "Rate of writes into storage (can be lower than publish rate, when batching is enabled)",
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "spanNulls": false,
                    "lineWidth": 1,
                    "fillOpacity": 0.5,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "32a002bf-aa28-4bbf-a0ed-573974a6f2ea",
                "type": "timeseries",
                "name": "Storage read entry rate",
                "description": "Reads from bookies",
                "links": [],
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 12,
                    "y": 36,
                    "i": "32a002bf-aa28-4bbf-a0ed-573974a6f2ea",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_storage_read_latency_count{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"})",
                        "legend": "read rate"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "52d5df72-a086-4251-8303-efe94c1e0890",
                "type": "timeseries",
                "name": "Storage entry size",
                "links": [],
                "layout": {
                    "h": 6,
                    "w": 24,
                    "x": 0,
                    "y": 43,
                    "i": "52d5df72-a086-4251-8303-efe94c1e0890",
                    "isResizable": true
                },
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_entry_size_le_128{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "< 128 bytes"
                    },
                    {
                        "refId": "B",
                        "expr": "sum(pulsar_entry_size_le_512{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "< 512 bytes"
                    },
                    {
                        "refId": "C",
                        "expr": "sum(pulsar_entry_size_le_1_kb{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "< 1 KB"
                    },
                    {
                        "refId": "D",
                        "expr": "sum(pulsar_entry_size_le_2_kb{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "< 2 KB"
                    },
                    {
                        "refId": "E",
                        "expr": "sum(pulsar_entry_size_le_4_kb{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "< 4 KB"
                    },
                    {
                        "refId": "F",
                        "expr": "sum(pulsar_entry_size_le_16_kb{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "< 16 KB"
                    },
                    {
                        "refId": "G",
                        "expr": "sum(pulsar_entry_size_le_100_kb{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "< 100 KB"
                    },
                    {
                        "refId": "H",
                        "expr": "sum(pulsar_entry_size_le_1_mb{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "< 1 MB"
                    },
                    {
                        "refId": "I",
                        "expr": "sum(pulsar_entry_size_overflow{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) / 60.0",
                        "legend": "> 1 MB"
                    }
                ],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "version": "2.0.0",
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "fillOpacity": 0.5,
                    "stack": "off"
                },
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "ab6634e2-7e6c-44cc-aff5-3a53fb5f88b1",
                "type": "row",
                "name": "Geo Replication",
                "collapsed": true,
                "layout": {
                    "h": 1,
                    "w": 24,
                    "x": 0,
                    "y": 49,
                    "i": "ab6634e2-7e6c-44cc-aff5-3a53fb5f88b1",
                    "isResizable": false
                },
                "panels": []
            },
            {
                "type": "timeseries",
                "id": "b4036f93-f2dc-4647-abc1-5f7f4ab03684",
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 0,
                    "y": 50,
                    "i": "b4036f93-f2dc-4647-abc1-5f7f4ab03684",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_replication_rate_in{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\", remote_cluster!=\"local\"}) by (cluster, remote_cluster)",
                        "legend": "{{remote_cluster}} → {{cluster}}"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Incoming replication rate | any → $cluster 传输速率 (messages/second)",
                "links": [],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "spanNulls": false,
                    "lineWidth": 1,
                    "fillOpacity": 0.5,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "timeseries",
                "id": "6fe142f4-2259-4735-820d-8b1405692173",
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 12,
                    "y": 50,
                    "i": "6fe142f4-2259-4735-820d-8b1405692173",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_replication_rate_out{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) by (cluster, remote_cluster)",
                        "legend": "{{cluster}} → {{remote_cluster}}"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Outgoing replication rate | $cluster → any 传输速率 (messages/second)",
                "links": [],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "spanNulls": false,
                    "lineWidth": 1,
                    "fillOpacity": 0.5,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "timeseries",
                "id": "769bbd29-57ce-444c-9f8a-f4123d164963",
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 0,
                    "y": 57,
                    "i": "d017a195-1a96-49fa-b5db-184875d6b49c",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_replication_throughput_in{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\", remote_cluster!=\"local\"}) by (cluster, remote_cluster)",
                        "legend": "{{remote_cluster}} → {{cluster}}"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Incoming replication throughput | any → $cluster 传输速率 (bytes/second)",
                "links": [],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "standardOptions": {
                        "util": "bytesIEC"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "spanNulls": false,
                    "lineWidth": 1,
                    "fillOpacity": 0.5,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "timeseries",
                "id": "b53e2732-fecd-4eba-ad33-0bdff9ed111d",
                "layout": {
                    "h": 7,
                    "w": 12,
                    "x": 12,
                    "y": 57,
                    "i": "accd2e57-5d1a-4fab-a897-13eec854162e",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_replication_throughput_out{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) by (cluster, remote_cluster)",
                        "legend": "{{cluster}} → {{remote_cluster}}"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Outgoing replication throughput | $cluster → any 传输速率 (bytes/second)",
                "links": [],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "standardOptions": {
                        "util": "bytesIEC"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "spanNulls": false,
                    "lineWidth": 1,
                    "fillOpacity": 0.5,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "timeseries",
                "id": "489ad398-f62f-443f-8820-50d01d3ac84b",
                "layout": {
                    "h": 7,
                    "w": 24,
                    "x": 0,
                    "y": 64,
                    "i": "489ad398-f62f-443f-8820-50d01d3ac84b",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_replication_backlog{cluster=~\"$cluster\", job=~\"pulsar-broker\", namespace=~\"$namespace\"}) by (cluster, remote_cluster)",
                        "legend": "{{cluster}} → {{remote_cluster}}"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Replication backlog | $cluster → any 队列长度",
                "links": [],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "list"
                    },
                    "standardOptions": {
                        "util": "none"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "spanNulls": false,
                    "lineWidth": 1,
                    "fillOpacity": 0.5,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    }
                },
                "datasourceValue": "${datasource}"
            }
        ]
    }
}