{ "annotations": { "list": [ { "$$hashKey": "object:95", "builtIn": 1, "datasource": { "uid": "${DataSource}" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 72, "links": [], "liveNow": false, "panels": [ { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 0, "y": 0 }, "hiddenSeries": false, "id": 16, "legend": { "avg": false, "current": false, "hideEmpty": false, "max": false, "min": false, "show": false, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.6", "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "sum(rate(pulsar_function_received_total{ cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\" }[1m]) )by (cluster, exported_namespace, name)", "interval": "", "legendFormat": "{{exported_namespace}}/{{name}}", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "Received messages", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "msg/s", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 12, "y": 0 }, "hiddenSeries": false, "id": 21, "legend": { "avg": false, "current": false, "hideEmpty": false, "max": false, "min": false, "show": false, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.6", "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "sum(rate(pulsar_function_processed_successfully_total{ cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\" }[1m]) )by (cluster, exported_namespace, name)", "interval": "", "legendFormat": "{{ exported_namespace }}/{{ name }} ", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "Successfully processed messages", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "msg/s", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 8, "x": 0, "y": 6 }, "hiddenSeries": false, "id": 17, "legend": { "avg": false, "current": false, "hideEmpty": false, "max": false, "min": false, "show": false, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.6", "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "sum(increase(pulsar_function_process_latency_ms_sum{ cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\" }[1m])) by (cluster, exported_namespace, name)/sum(increase(pulsar_function_process_latency_ms_count{ cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\" }[1m])) by (cluster, exported_namespace, name)", "interval": "", "legendFormat": "{{exported_namespace}}/{{name}}", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "Average Processing latency", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "ms", "label": "", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 8, "x": 8, "y": 6 }, "hiddenSeries": false, "id": 20, "legend": { "avg": false, "current": false, "hideEmpty": false, "max": false, "min": false, "show": false, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.6", "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "sum(pulsar_function_process_latency_ms{ quantile=\"0.99\", cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\"}) by (cluster, exported_namespace, name, instance_id)", "interval": "", "legendFormat": "{{ exported_namespace }}/{{ name }} - {{instance_id}}", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "99pct Processing latency", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "ms", "label": "", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 6 }, "hiddenSeries": false, "id": 28, "legend": { "avg": false, "current": false, "hideEmpty": false, "max": false, "min": false, "show": false, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.6", "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "count(pulsar_function_system_exceptions_total{ cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\" } )by (cluster, exported_namespace, name)", "interval": "", "legendFormat": "{{ exported_namespace }}/{{ name }} ", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "Number of instances", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 0, "y": 12 }, "hiddenSeries": false, "id": 18, "legend": { "avg": false, "current": false, "hideEmpty": false, "max": false, "min": false, "show": false, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.6", "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "sum(rate(pulsar_function_user_exceptions_total{ cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\" }[1m]) )by (cluster, exported_namespace, name)", "interval": "", "legendFormat": "{{ exported_namespace }}/{{ name }} ", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "User exceptions rate", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "msg/s", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 6, "w": 12, "x": 12, "y": 12 }, "hiddenSeries": false, "id": 19, "legend": { "avg": false, "current": false, "hideEmpty": false, "max": false, "min": false, "show": false, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.6", "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "sum(rate(pulsar_function_system_exceptions_total{ cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\" }[1m]) )by (cluster, exported_namespace, name)", "interval": "", "legendFormat": "{{ exported_namespace }}/{{ name }} ", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "System exceptions rate", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "msg/s", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "columns": [], "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fontSize": "100%", "gridPos": { "h": 6, "w": 12, "x": 0, "y": 18 }, "id": 31, "links": [], "scroll": true, "showHeader": true, "sort": { "col": 0, "desc": true }, "styles": [ { "$$hashKey": "object:140", "alias": "Time", "align": "auto", "dateFormat": "YYYY-MM-DD HH:mm:ss", "pattern": "Time", "type": "date" }, { "$$hashKey": "object:141", "alias": "name", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "fqfn", "thresholds": [], "type": "string", "unit": "short" }, { "$$hashKey": "object:142", "alias": "error", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "error", "thresholds": [], "type": "string", "unit": "short" }, { "$$hashKey": "object:143", "alias": "", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "decimals": 2, "pattern": "/.*/", "thresholds": [], "type": "hidden", "unit": "short" } ], "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "pulsar_function_user_exception{cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\"}", "format": "table", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "User Exceptions", "transform": "table", "type": "table-old" }, { "columns": [], "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fontSize": "100%", "gridPos": { "h": 6, "w": 12, "x": 12, "y": 18 }, "id": 32, "links": [], "scroll": true, "showHeader": true, "sort": { "col": 0, "desc": true }, "styles": [ { "$$hashKey": "object:247", "alias": "Time", "align": "auto", "dateFormat": "YYYY-MM-DD HH:mm:ss", "pattern": "Time", "type": "date" }, { "$$hashKey": "object:248", "alias": "name", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "fqfn", "thresholds": [], "type": "string", "unit": "short" }, { "$$hashKey": "object:249", "alias": "error", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "dateFormat": "YYYY-MM-DD HH:mm:ss", "decimals": 2, "mappingType": 1, "pattern": "error", "thresholds": [], "type": "string", "unit": "short" }, { "$$hashKey": "object:250", "alias": "", "align": "auto", "colors": [ "rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)" ], "decimals": 2, "pattern": "/.*/", "thresholds": [], "type": "number", "unit": "short" } ], "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "pulsar_function_system_exception{cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\"}", "format": "table", "interval": "", "legendFormat": "", "refId": "A" } ], "title": "System Exceptions", "transform": "table", "type": "table-old" }, { "collapsed": false, "datasource": { "type": "datasource", "uid": "grafana" }, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 24 }, "id": 25, "panels": [], "targets": [ { "datasource": { "type": "datasource", "uid": "grafana" }, "refId": "A" } ], "title": "User Defined Metrics", "type": "row" }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 25 }, "hiddenSeries": false, "id": 27, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.6", "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "sum(increase(pulsar_function_user_metric_sum{ cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\" }[1m])) by (metric, cluster, exported_namespace, name)/sum(increase(pulsar_function_user_metric_count{ cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\" }[1m])) by (metric, cluster, exported_namespace, name)", "interval": "", "legendFormat": "{{metric}}-[{{exported_namespace}}/{{name}}]", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "Average User Defined Metrics", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "format": "short", "label": "", "logBase": 1, "min": "0", "show": true }, { "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } }, { "aliasColors": {}, "bars": false, "dashLength": 10, "dashes": false, "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "fieldConfig": { "defaults": { "links": [] }, "overrides": [] }, "fill": 1, "fillGradient": 0, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 25 }, "hiddenSeries": false, "id": 29, "legend": { "avg": false, "current": false, "max": false, "min": false, "show": true, "total": false, "values": false }, "lines": true, "linewidth": 1, "links": [], "nullPointMode": "null", "options": { "alertThreshold": true }, "percentage": false, "pluginVersion": "9.5.6", "pointradius": 5, "points": false, "renderer": "flot", "seriesOverrides": [], "spaceLength": 10, "stack": false, "steppedLine": false, "targets": [ { "datasource": { "uid": "${DataSource}" }, "expr": "sum(rate(pulsar_function_user_metric_count{ cluster=~\"$cluster\", exported_namespace=~\"$namespace\", name=~\"$function\" }[1m])) by (metric, cluster, exported_namespace, name)", "interval": "", "legendFormat": "{{metric}}-[{{exported_namespace}}/{{name}}]", "refId": "A" } ], "thresholds": [], "timeRegions": [], "title": "User Defined Metrics Rate", "tooltip": { "shared": true, "sort": 0, "value_type": "individual" }, "type": "graph", "xaxis": { "mode": "time", "show": true, "values": [] }, "yaxes": [ { "$$hashKey": "object:381", "format": "short", "label": "metrics/sec", "logBase": 1, "min": "0", "show": true }, { "$$hashKey": "object:382", "format": "short", "logBase": 1, "show": true } ], "yaxis": { "align": false } } ], "refresh": "", "schemaVersion": 38, "style": "dark", "tags": [], "templating": { "list": [ { "current": { "selected": false, "text": "All", "value": "$__all" }, "hide": 0, "includeAll": false, "label": "DataSource", "multi": false, "name": "DataSource", "options": [], "query": "prometheus", "queryValue": "", "refresh": 1, "regex": "^(?!Prometheus).*$", "skipUrlSync": false, "type": "datasource" }, { "current": { "selected": false, "text": "All", "value": "$__all" }, "datasource": { "type": "prometheus", "uid": "${DataSource}" }, "definition": "pulsar_version_info{cluster=~\".+\"}", "hide": 0, "includeAll": false, "label": "Pulsar Cluster", "multi": false, "name": "cluster", "options": [], "query": { "query": "pulsar_version_info{cluster=~\".+\"}", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "/.*[^_]cluster=\\\"([^\\\"]+)\\\".*/", "skipUrlSync": false, "sort": 0, "type": "query" }, { "current": { "selected": true, "text": [ "All" ], "value": [ "$__all" ] }, "datasource": { "uid": "${DataSource}" }, "definition": "pulsar_function_received_total{exported_namespace=~\".+\", cluster=~\"$cluster\"}", "hide": 0, "includeAll": true, "label": "Namespace", "multi": true, "name": "namespace", "options": [], "query": "pulsar_function_received_total{exported_namespace=~\".+\", cluster=~\"$cluster\"}", "refresh": 2, "regex": "/.*exported_namespace=\\\"([^\\\"]+)\\\".*/", "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false }, { "current": { "selected": true, "text": [ "All" ], "value": [ "$__all" ] }, "datasource": { "uid": "${DataSource}" }, "definition": "pulsar_function_received_total{name=~\".+\", cluster=~\"$cluster\", exported_namespace=~\"$namespace\"}", "hide": 0, "includeAll": true, "label": "Function", "multi": true, "name": "function", "options": [], "query": "pulsar_function_received_total{name=~\".+\", cluster=~\"$cluster\", exported_namespace=~\"$namespace\"}", "refresh": 2, "regex": "/\\,name=\\\"([^\\\"]+)\\\".*/", "skipUrlSync": false, "sort": 1, "tagValuesQuery": "", "tagsQuery": "", "type": "query", "useTags": false } ] }, "time": { "from": "now-30m", "to": "now" }, "timepicker": { "refresh_intervals": [ "5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d" ], "time_options": [ "5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d" ] }, "timezone": "browser", "title": "Functions Metrics", "uid": "b2w0sy-ik", "version": 2, "weekStart": "" }