{
    "name": "Pulsar - Overview",
    "tags": "",
    "ident": "",
    "configs": {
        "version": "3.0.0",
        "links": [
            {
                "url": "https://pulsar.apache.org/docs/next/reference-metrics/",
                "title": "Pulsar metrics"
            }
        ],
        "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)"
            },
            {
                "name": "ident",
                "type": "query",
                "datasource": {
                    "cate": "prometheus",
                    "value": "${datasource}"
                },
                "definition": "label_values(up{job=\"pulsar-bookie\", cluster=~\"$cluster\"}, ident)",
                "multi": true,
                "allOption": true
            }
        ],
        "panels": [
            {
                "version": "2.0.0",
                "id": "53c007ae-6517-4843-98b9-09f5fa4e35fb",
                "type": "row",
                "name": "Overview",
                "collapsed": true,
                "layout": {
                    "h": 1,
                    "w": 24,
                    "x": 0,
                    "y": 0,
                    "i": "53c007ae-6517-4843-98b9-09f5fa4e35fb",
                    "isResizable": false
                },
                "panels": []
            },
            {
                "type": "stat",
                "id": "a40143e4-8454-4acf-a30d-936af6d42933",
                "layout": {
                    "h": 3,
                    "w": 3,
                    "x": 0,
                    "y": 1,
                    "i": "a40143e4-8454-4acf-a30d-936af6d42933",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(system_n_cpus{ident=~\"$ident\"})",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "CPU",
                "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": "8e29df02-d769-468e-99ff-fbd111b56da8",
                "layout": {
                    "h": 3,
                    "w": 3,
                    "x": 3,
                    "y": 1,
                    "i": "8e29df02-d769-468e-99ff-fbd111b56da8",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(mem_total{ident=~\"$ident\"})",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Memory",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {
                        "util": "bytesIEC",
                        "decimals": 0
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "fce851eb-2c67-4afb-90e0-67ad95594bd3",
                "layout": {
                    "h": 3,
                    "w": 3,
                    "x": 6,
                    "y": 1,
                    "i": "fce851eb-2c67-4afb-90e0-67ad95594bd3",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "count(count(zk_up{cluster=~\"$cluster\", job=\"pulsar-zookeeper\"}) by (instance))",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Zookeeper",
                "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": "0369f66b-d7c1-46a9-b3da-05dd5ea47ed8",
                "layout": {
                    "h": 3,
                    "w": 3,
                    "x": 9,
                    "y": 1,
                    "i": "0369f66b-d7c1-46a9-b3da-05dd5ea47ed8",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "count(count(up{cluster=~\"$cluster\", job=\"pulsar-bookie\"}) by (instance))",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Bookies",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {
                        "value": null
                    }
                },
                "options": {
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "c452b356-7457-49cb-8150-4aa37d0c8315",
                "layout": {
                    "h": 3,
                    "w": 3,
                    "x": 12,
                    "y": 1,
                    "i": "c452b356-7457-49cb-8150-4aa37d0c8315",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "count(count(up{cluster=~\"$cluster\", job=\"pulsar-broker\"}) by (instance))",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Brokers",
                "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": "de30e67d-03a0-45c6-a65e-7f1b1d09b4bd",
                "layout": {
                    "h": 3,
                    "w": 3,
                    "x": 15,
                    "y": 1,
                    "i": "de30e67d-03a0-45c6-a65e-7f1b1d09b4bd",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "count(count(up{job=\"pulsar-proxy\", cluster=~\"$cluster\"}) by (instance))",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Proxies",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "valueMappings": [],
                    "standardOptions": {},
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "dcb95759-9e05-433c-b085-3532aca888b4",
                "layout": {
                    "h": 7,
                    "w": 3,
                    "x": 18,
                    "y": 1,
                    "i": "dcb95759-9e05-433c-b085-3532aca888b4",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_storage_size{cluster=~\"$cluster\", job=~\"pulsar-broker\"}) by (cluster)",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Storage",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {}
                },
                "options": {
                    "standardOptions": {
                        "util": "bytesIEC",
                        "decimals": 0
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "stat",
                "id": "934e1588-0c72-4bcb-8b2f-c9ab2c941b08",
                "layout": {
                    "h": 7,
                    "w": 3,
                    "x": 21,
                    "y": 1,
                    "i": "934e1588-0c72-4bcb-8b2f-c9ab2c941b08",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_msg_backlog{cluster=~\"$cluster\", job=~\"pulsar-broker\"}) by (cluster)",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Backlog",
                "links": [],
                "custom": {
                    "textMode": "value",
                    "colorMode": "value",
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "colSpan": 1,
                    "textSize": {
                        "value": null
                    }
                },
                "options": {
                    "standardOptions": {
                        "util": "none",
                        "decimals": 2
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "gauge",
                "id": "9af71e4a-697e-4bc8-8046-ac1e0716c7b7",
                "layout": {
                    "h": 4,
                    "w": 3,
                    "x": 0,
                    "y": 4,
                    "i": "9af71e4a-697e-4bc8-8046-ac1e0716c7b7",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "expr": "avg(100 - cpu_usage_idle{ident=~\"$ident\"})",
                        "refId": "B"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "CPU Usage",
                "links": [],
                "custom": {
                    "textMode": "valueAndName",
                    "calc": "lastNotNull"
                },
                "options": {
                    "standardOptions": {
                        "util": "percent",
                        "decimals": 1
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#3FC453",
                                "value": null,
                                "type": "base"
                            },
                            {
                                "color": "#FF9919",
                                "value": 80
                            },
                            {
                                "color": "#FF656B",
                                "value": 90
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "gauge",
                "id": "d9c74604-c6b7-4603-9893-a42d3b9645bf",
                "layout": {
                    "h": 4,
                    "w": 3,
                    "x": 3,
                    "y": 4,
                    "i": "d9c74604-c6b7-4603-9893-a42d3b9645bf",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "expr": "avg(mem_used_percent{ident=~\"$ident\"})",
                        "refId": "B",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Memory Usage",
                "links": [],
                "custom": {
                    "textMode": "valueAndName",
                    "calc": "lastNotNull"
                },
                "options": {
                    "standardOptions": {
                        "util": "percent",
                        "decimals": 1
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#3FC453",
                                "value": null,
                                "type": "base"
                            },
                            {
                                "color": "#FF9919",
                                "value": 80
                            },
                            {
                                "color": "#FF656B",
                                "value": 90
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "gauge",
                "id": "e3265a4b-2303-43bb-9f3e-0da5d4b25d4d",
                "layout": {
                    "h": 4,
                    "w": 3,
                    "x": 6,
                    "y": 4,
                    "i": "e3265a4b-2303-43bb-9f3e-0da5d4b25d4d",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "100 * count(count(zk_up{cluster=~\"$cluster\", job=\"pulsar-zookeeper\"}) by (instance))/3",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Zookeeper Up",
                "links": [],
                "custom": {
                    "textMode": "valueAndName",
                    "calc": "lastNotNull"
                },
                "options": {
                    "standardOptions": {
                        "util": "percent"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#3FC453",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "gauge",
                "id": "17c1e883-f5db-4637-bdd4-830987902b84",
                "layout": {
                    "h": 4,
                    "w": 3,
                    "x": 9,
                    "y": 4,
                    "i": "17c1e883-f5db-4637-bdd4-830987902b84",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "100 * count(up{cluster=~\"$cluster\", job=\"pulsar-bookie\"} == 1) / count(up{cluster=~\"$cluster\", job=\"pulsar-bookie\"})",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Bookies Up",
                "links": [],
                "custom": {
                    "textMode": "valueAndName",
                    "calc": "lastNotNull"
                },
                "options": {
                    "standardOptions": {
                        "util": "percent"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#3FC453",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "gauge",
                "id": "38823934-1568-4be0-afe3-c441f0026464",
                "layout": {
                    "h": 4,
                    "w": 3,
                    "x": 12,
                    "y": 4,
                    "i": "38823934-1568-4be0-afe3-c441f0026464",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "100 * count(up{cluster=~\"$cluster\", job=\"pulsar-broker\"} == 1) / count(up{cluster=~\"$cluster\", job=\"pulsar-broker\"})",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Brokers Up",
                "links": [],
                "custom": {
                    "textMode": "valueAndName",
                    "calc": "lastNotNull"
                },
                "options": {
                    "standardOptions": {
                        "util": "percent"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#3FC453",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "gauge",
                "id": "bbde68d0-502f-429b-906a-70aacceb98e6",
                "layout": {
                    "h": 4,
                    "w": 3,
                    "x": 15,
                    "y": 4,
                    "i": "bbde68d0-502f-429b-906a-70aacceb98e6",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "100 * count(up{job=\"pulsar-proxy\", cluster=~\"$cluster\"} == 1) / count(up{job=\"pulsar-proxy\", cluster=~\"$cluster\"})",
                        "legend": ""
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Proxies Up",
                "links": [],
                "custom": {
                    "textMode": "valueAndName",
                    "calc": "lastNotNull"
                },
                "options": {
                    "standardOptions": {
                        "util": "percent"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#3FC453",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "d407661f-fcd1-41f0-8363-b04097d166f2",
                "type": "row",
                "name": "Messaging",
                "collapsed": true,
                "layout": {
                    "h": 1,
                    "w": 24,
                    "x": 0,
                    "y": 8,
                    "i": "d407661f-fcd1-41f0-8363-b04097d166f2",
                    "isResizable": false
                },
                "panels": []
            },
            {
                "type": "timeseries",
                "id": "0c2ee290-ae0f-46c0-8719-e883e9132953",
                "layout": {
                    "h": 6,
                    "w": 12,
                    "x": 0,
                    "y": 9,
                    "i": "0c2ee290-ae0f-46c0-8719-e883e9132953",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_storage_size{cluster=~\"$cluster\", job=~\"pulsar-broker\"}) by (cluster)",
                        "legend": "{{ cluster }}"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Messaging Storage",
                "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": "ec70da08-f847-4a75-9761-809310104e96",
                "layout": {
                    "h": 6,
                    "w": 12,
                    "x": 12,
                    "y": 9,
                    "i": "ec70da08-f847-4a75-9761-809310104e96",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_rate_in{cluster=~\"$cluster\", job=~\"pulsar-broker\"}) by (cluster)",
                        "legend": "{{ cluster }} - In"
                    },
                    {
                        "refId": "B",
                        "expr": "sum(pulsar_rate_out{cluster=~\"$cluster\", job=~\"pulsar-broker\"}) by (cluster)",
                        "legend": "{{ cluster }} - Out"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Message Rate (msg/s)",
                "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": "ff9ddb68-daa9-432e-afae-1e463570880a",
                "layout": {
                    "h": 6,
                    "w": 12,
                    "x": 0,
                    "y": 15,
                    "i": "ff9ddb68-daa9-432e-afae-1e463570880a",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_msg_backlog{cluster=~\"$cluster\", job=~\"pulsar-broker\"}) by (cluster)",
                        "legend": "{{ cluster }}"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Messaging Backlog",
                "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": "99336d29-d77a-4e29-a626-f3ca27c6d795",
                "layout": {
                    "h": 6,
                    "w": 12,
                    "x": 12,
                    "y": 15,
                    "i": "99336d29-d77a-4e29-a626-f3ca27c6d795",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_throughput_in{cluster=~\"$cluster\", job=~\"pulsar-broker\"}) by (cluster)",
                        "legend": "{{ cluster }} - In"
                    },
                    {
                        "refId": "B",
                        "expr": "sum(pulsar_throughput_out{cluster=~\"$cluster\", job=~\"pulsar-broker\"}) by (cluster)",
                        "legend": "{{ cluster }} - Out"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Throughput (bytes/s)",
                "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": "barGauge",
                "id": "eda1d687-ce58-4adc-b31f-8b0909c87b54",
                "layout": {
                    "h": 9,
                    "w": 24,
                    "x": 0,
                    "y": 21,
                    "i": "eda1d687-ce58-4adc-b31f-8b0909c87b54",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": " topk(10, sum(pulsar_msg_backlog{cluster=~\"$cluster\", job=~\"pulsar-broker\"}) by (topic))",
                        "legend": "{{ topic }}",
                        "time": {
                            "start": "now-1m",
                            "end": "now"
                        }
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Top 10  topics backlog",
                "links": [],
                "custom": {
                    "calc": "lastNotNull",
                    "baseColor": "#FF656B",
                    "serieWidth": 30,
                    "sortOrder": "desc"
                },
                "options": {
                    "standardOptions": {
                        "util": "none"
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "barGauge",
                "id": "caf0d82a-5100-4834-96ec-97e6626f3112",
                "layout": {
                    "h": 9,
                    "w": 24,
                    "x": 0,
                    "y": 30,
                    "i": "695c8c42-57d9-413c-b2a4-c8d27860d583",
                    "isResizable": true
                },
                "version": "3.0.0",
                "datasourceCate": "prometheus",
                "datasourceValue": "${datasource}",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "topk(10, sum(pulsar_storage_size{cluster=~\"$cluster\",job=~\"pulsar-broker\"}) by (topic))",
                        "legend": "{{ topic }}",
                        "time": {
                            "start": "now-1m",
                            "end": "now"
                        },
                        "maxDataPoints": 240
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Top 10 topics - Storage Size",
                "links": [],
                "description": "所有之和为 Messaging Storage\n# 清理\n./pulsar-admin topics unload",
                "maxPerRow": 4,
                "custom": {
                    "calc": "lastNotNull",
                    "valueField": "Value",
                    "serieWidth": 30,
                    "sortOrder": "none",
                    "maxValue": null,
                    "baseColor": "#FF656B"
                },
                "options": {
                    "standardOptions": {
                        "util": "bytesIEC"
                    }
                }
            },
            {
                "type": "row",
                "id": "8e3c8f0a-6675-4245-9739-51ace3177e54",
                "name": "Geo Replication",
                "collapsed": true,
                "layout": {
                    "h": 1,
                    "w": 24,
                    "x": 0,
                    "y": 39,
                    "i": "8e3c8f0a-6675-4245-9739-51ace3177e54",
                    "isResizable": false
                },
                "panels": []
            },
            {
                "type": "timeseries",
                "id": "15b7919a-3869-446d-95aa-3104801d454d",
                "layout": {
                    "h": 6,
                    "w": 12,
                    "x": 0,
                    "y": 40,
                    "i": "15b7919a-3869-446d-95aa-3104801d454d",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_replication_throughput_in{cluster=~\"$cluster\"}) by (cluster)"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Incoming replication throughput | any → $cluster",
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "standardOptions": {
                        "util": "bytesIEC"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "smooth",
                    "spanNulls": false,
                    "lineWidth": 1,
                    "fillOpacity": 0.5,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "timeseries",
                "id": "3bbcbeeb-cff2-402e-9557-59cc405fe6e9",
                "layout": {
                    "h": 6,
                    "w": 12,
                    "x": 12,
                    "y": 40,
                    "i": "5ccef8a6-0d46-4417-b67a-b6ae21bd86d1",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "refId": "A",
                        "expr": "sum(pulsar_replication_throughput_out{cluster=~\"$cluster\"}) by (cluster)"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Outgoing replication throughput | $cluster → any",
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "hidden"
                    },
                    "standardOptions": {
                        "util": "bytesIEC"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "smooth",
                    "spanNulls": false,
                    "lineWidth": 1,
                    "fillOpacity": 0.5,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "version": "2.0.0",
                "id": "56dc698d-fa24-4256-ade6-44c20f22e463",
                "type": "row",
                "name": "Nodes",
                "collapsed": true,
                "layout": {
                    "h": 1,
                    "w": 24,
                    "x": 0,
                    "y": 46,
                    "i": "56dc698d-fa24-4256-ade6-44c20f22e463",
                    "isResizable": false
                },
                "panels": []
            },
            {
                "type": "timeseries",
                "id": "5881cb6a-29d4-433b-9f1c-90c26e4dd53d",
                "layout": {
                    "h": 10,
                    "w": 12,
                    "x": 0,
                    "y": 47,
                    "i": "5881cb6a-29d4-433b-9f1c-90c26e4dd53d",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "expr": "100 - cpu_usage_idle{ident=~\"$ident\"}",
                        "refId": "A",
                        "legend": "{{ ident }}"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Node CPU usage",
                "links": [],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "list"
                    },
                    "standardOptions": {
                        "util": "percent"
                    },
                    "thresholds": {
                        "steps": [
                            {
                                "color": "#634CD9",
                                "value": null,
                                "type": "base"
                            }
                        ]
                    }
                },
                "custom": {
                    "drawStyle": "lines",
                    "lineInterpolation": "linear",
                    "spanNulls": false,
                    "lineWidth": 1,
                    "fillOpacity": 0.26,
                    "gradientMode": "none",
                    "stack": "off",
                    "scaleDistribution": {
                        "type": "linear"
                    }
                },
                "datasourceValue": "${datasource}"
            },
            {
                "type": "timeseries",
                "id": "3820f007-7fde-443e-a736-db797b52684e",
                "layout": {
                    "h": 10,
                    "w": 12,
                    "x": 12,
                    "y": 47,
                    "i": "3820f007-7fde-443e-a736-db797b52684e",
                    "isResizable": true
                },
                "version": "2.0.0",
                "datasourceCate": "prometheus",
                "targets": [
                    {
                        "expr": "mem_used_percent{ident=~\"$ident\"}",
                        "refId": "B"
                    }
                ],
                "transformations": [
                    {
                        "id": "organize",
                        "options": {}
                    }
                ],
                "name": "Node Memory Usage",
                "links": [],
                "options": {
                    "tooltip": {
                        "mode": "all",
                        "sort": "none"
                    },
                    "legend": {
                        "displayMode": "list"
                    },
                    "standardOptions": {
                        "util": "percent"
                    },
                    "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}"
            }
        ]
    }
}