UNPKG

@fairmint/canton-node-sdk

Version:
447 lines (446 loc) 11.5 kB
{ "annotations": { "list": [ { "builtIn": 1, "datasource": { "type": "grafana", "uid": "-- Grafana --" }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "target": { "limit": 100, "matchAny": false, "tags": [], "type": "dashboard" }, "type": "dashboard" } ] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, "id": 510, "links": [], "panels": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "reqps" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 0, "y": 0 }, "id": 2, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.1.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "editorMode": "code", "expr": "sum(rate(splice_rate_limiting_total{namespace=~\"$namespace\", http_service=~\"$http_service\", limiter=~\"$limiter\", node_name=~\"$node_name\", result!=\"accepted\"}[$__rate_interval])) by (result, limiter)", "instant": false, "legendFormat": "{{result}}", "range": true, "refId": "A" } ], "title": "Rejections", "type": "timeseries" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "hideFrom": { "legend": false, "tooltip": false, "viz": false } }, "mappings": [], "unit": "short" }, "overrides": [] }, "gridPos": { "h": 9, "w": 12, "x": 12, "y": 0 }, "id": 4, "options": { "displayLabels": [ "name", "percent" ], "legend": { "displayMode": "list", "placement": "right", "showLegend": true, "values": [ "percent", "value" ] }, "pieType": "pie", "reduceOptions": { "calcs": [ "lastNotNull" ], "fields": "", "values": false }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "none" } }, "pluginVersion": "12.1.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "editorMode": "code", "expr": "sum(increase(splice_rate_limiting_total{namespace=~\"$namespace\", http_service=~\"$http_service\", limiter=~\"$limiter\", node_name=~\"$node_name\"}[$__range])) by (result)", "instant": true, "legendFormat": "{{result}}", "range": false, "refId": "A" } ], "title": "Total Requests by Result", "type": "piechart" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { "axisBorderShow": false, "axisCenteredZero": false, "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, "barWidthFactor": 0.6, "drawStyle": "line", "fillOpacity": 0, "gradientMode": "none", "hideFrom": { "legend": false, "tooltip": false, "viz": false }, "insertNulls": false, "lineInterpolation": "linear", "lineWidth": 1, "pointSize": 5, "scaleDistribution": { "type": "linear" }, "showPoints": "auto", "spanNulls": false, "stacking": { "group": "A", "mode": "none" }, "thresholdsStyle": { "mode": "off" } }, "mappings": [], "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 }, { "color": "red", "value": 80 } ] }, "unit": "reqps" }, "overrides": [] }, "gridPos": { "h": 12, "w": 24, "x": 0, "y": 9 }, "id": 5, "options": { "legend": { "calcs": [], "displayMode": "list", "placement": "bottom", "showLegend": true }, "tooltip": { "hideZeros": false, "mode": "multi", "sort": "desc" } }, "pluginVersion": "12.1.1", "targets": [ { "datasource": { "type": "prometheus", "uid": "prometheus" }, "editorMode": "code", "expr": "sum(rate(splice_rate_limiting_total{namespace=~\"$namespace\", http_service=~\"$http_service\", limiter=~\"$limiter\", node_name=~\"$node_name\"}[$__rate_interval])) by (limiter)", "instant": false, "legendFormat": "{{limiter}}", "range": true, "refId": "A" }, { "datasource": { "type": "prometheus", "uid": "prometheus" }, "editorMode": "code", "expr": "splice_rate_limiting_max_limit_per_second", "hide": false, "instant": false, "legendFormat": "{{limiter}}", "range": true, "refId": "B" } ], "title": "Total Requests", "type": "timeseries" } ], "preload": false, "refresh": "1m", "schemaVersion": 41, "tags": [ "prometheus", "rate-limiting" ], "templating": { "list": [ { "allowCustomValue": false, "current": { "text": [ "sv-1" ], "value": [ "sv-1" ] }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "definition": "label_values(splice_rate_limiting_total, namespace)", "includeAll": false, "label": "Namespace", "name": "namespace", "options": [], "query": { "query": "label_values(splice_rate_limiting_total, namespace)", "refId": "StandardVariableQuery" }, "refresh": 1, "regex": "", "type": "query" }, { "allowCustomValue": false, "current": { "text": [ "scan-app" ], "value": [ "scan-app" ] }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "definition": "label_values(splice_rate_limiting_total{namespace=~\"$namespace\"},node_name)", "includeAll": true, "label": "Node Name", "multi": true, "name": "node_name", "options": [], "query": { "qryType": 1, "query": "label_values(splice_rate_limiting_total{namespace=~\"$namespace\"},node_name)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "sort": 3, "type": "query" }, { "allowCustomValue": false, "current": { "text": "All", "value": "$__all" }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "definition": "label_values(splice_rate_limiting_total{namespace=~\"$namespace\", node_name=~\"$node_name\"},http_service)", "includeAll": true, "label": "HTTP Service", "multi": true, "name": "http_service", "options": [], "query": { "qryType": 1, "query": "label_values(splice_rate_limiting_total{namespace=~\"$namespace\", node_name=~\"$node_name\"},http_service)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "sort": 1, "type": "query" }, { "allowCustomValue": false, "current": { "text": "All", "value": "$__all" }, "datasource": { "type": "prometheus", "uid": "prometheus" }, "definition": "label_values(splice_rate_limiting_total{namespace=~\"$namespace\", http_service=~\"$http_service\", node_name=~\"$node_name\"},limiter)", "includeAll": true, "label": "Limiter", "multi": true, "name": "limiter", "options": [], "query": { "qryType": 1, "query": "label_values(splice_rate_limiting_total{namespace=~\"$namespace\", http_service=~\"$http_service\", node_name=~\"$node_name\"},limiter)", "refId": "PrometheusVariableQueryEditor-VariableQuery" }, "refresh": 1, "regex": "", "sort": 2, "type": "query" } ] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "Splice Rate Limiting", "uid": "splice-rate-limit-db", "version": 3 }