Update dashboard for chunks & errors

This commit is contained in:
Cyber MacGeddon 2024-08-22 10:48:18 +01:00
parent f09618081e
commit ee55b2e3d4

View file

@ -33,6 +33,7 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
@ -46,6 +47,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
@ -171,7 +173,10 @@
"id": 2, "id": 2,
"options": { "options": {
"calculate": false, "calculate": false,
"cellGap": 1, "cellGap": 5,
"cellValues": {
"unit": ""
},
"color": { "color": {
"exponent": 0.5, "exponent": 0.5,
"fill": "dark-orange", "fill": "dark-orange",
@ -194,28 +199,36 @@
"layout": "auto" "layout": "auto"
}, },
"tooltip": { "tooltip": {
"show": true, "mode": "single",
"showColorScale": false,
"yHistogram": false "yHistogram": false
}, },
"yAxis": { "yAxis": {
"axisLabel": "processing status",
"axisPlacement": "left", "axisPlacement": "left",
"reverse": false "reverse": false
} }
}, },
"pluginVersion": "10.0.0", "pluginVersion": "11.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "f6b18033-5918-4e05-a1ca-4cb30343b129" "uid": "f6b18033-5918-4e05-a1ca-4cb30343b129"
}, },
"disableTextWrap": false,
"editorMode": "builder", "editorMode": "builder",
"exemplar": false,
"expr": "sum by(status) (rate(processing_count_total{status!=\"success\"}[$__rate_interval]))", "expr": "sum by(status) (rate(processing_count_total{status!=\"success\"}[$__rate_interval]))",
"format": "time_series", "format": "heatmap",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false, "instant": false,
"interval": "", "interval": "",
"legendFormat": "{{status}}",
"range": true, "range": true,
"refId": "A" "refId": "A",
"useBackend": false
} }
], ],
"title": "Error rate", "title": "Error rate",
@ -232,6 +245,7 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
@ -245,6 +259,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
@ -311,7 +326,7 @@
"refId": "A" "refId": "A"
} }
], ],
"title": "Request count", "title": "Request rate",
"type": "timeseries" "type": "timeseries"
}, },
{ {
@ -325,6 +340,7 @@
"mode": "palette-classic" "mode": "palette-classic"
}, },
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false, "axisCenteredZero": false,
"axisColorMode": "text", "axisColorMode": "text",
"axisLabel": "", "axisLabel": "",
@ -338,6 +354,7 @@
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"insertNulls": false,
"lineInterpolation": "linear", "lineInterpolation": "linear",
"lineWidth": 1, "lineWidth": 1,
"pointSize": 5, "pointSize": 5,
@ -415,114 +432,204 @@
}, },
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": {
"fixedColor": "semi-dark-green",
"mode": "palette-classic-by-name"
},
"custom": { "custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisPlacement": "auto",
"fillOpacity": 80,
"gradientMode": "none",
"hideFrom": { "hideFrom": {
"legend": false, "legend": false,
"tooltip": false, "tooltip": false,
"viz": false "viz": false
}, },
"lineWidth": 1,
"scaleDistribution": { "scaleDistribution": {
"type": "linear" "type": "linear"
},
"thresholdsStyle": {
"mode": "off"
} }
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
} }
}, },
"overrides": [] "overrides": []
}, },
"gridPos": { "gridPos": {
"h": 6, "h": 7,
"w": 12, "w": 12,
"x": 0, "x": 0,
"y": 17 "y": 17
}, },
"id": 9, "id": 10,
"options": { "options": {
"calculate": false, "barRadius": 0,
"cellGap": 1, "barWidth": 0.97,
"color": { "fullHighlight": false,
"exponent": 0.5, "groupWidth": 0.7,
"fill": "dark-orange",
"mode": "scheme",
"reverse": false,
"scale": "exponential",
"scheme": "Greys",
"steps": 64
},
"exemplars": {
"color": "rgba(255,0,255,0.7)"
},
"filterValues": {
"le": 1e-9
},
"legend": { "legend": {
"show": true "calcs": [],
}, "displayMode": "list",
"rowsFrame": { "placement": "bottom",
"layout": "auto" "showLegend": true
}, },
"orientation": "auto",
"showValue": "auto",
"stacking": "none",
"tooltip": { "tooltip": {
"show": true, "mode": "single",
"yHistogram": false "sort": "none"
}, },
"yAxis": { "xTickLabelRotation": 0,
"axisPlacement": "left", "xTickLabelSpacing": 0
"reverse": false
}
}, },
"pluginVersion": "10.0.0", "pluginVersion": "11.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "f6b18033-5918-4e05-a1ca-4cb30343b129" "uid": "f6b18033-5918-4e05-a1ca-4cb30343b129"
}, },
"disableTextWrap": false,
"editorMode": "builder", "editorMode": "builder",
"exemplar": false, "exemplar": false,
"expr": "rate(chunk_size_bucket[$__rate_interval])", "expr": "max by(le) (chunk_size_bucket)",
"format": "heatmap", "format": "heatmap",
"hide": false, "fullMetaSearch": false,
"instant": false, "includeNullMetadata": false,
"interval": "", "instant": true,
"legendFormat": "{{le}}", "legendFormat": "{{le}}",
"range": true, "range": false,
"refId": "A" "refId": "A",
"useBackend": false
} }
], ],
"title": "Chunk size", "title": "Chunk size",
"type": "heatmap" "type": "barchart"
}, },
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "f6b18033-5918-4e05-a1ca-4cb30343b129" "uid": "f6b18033-5918-4e05-a1ca-4cb30343b129"
}, },
"gridPos": { "fieldConfig": {
"h": 11, "defaults": {
"w": 24, "color": {
"x": 0, "mode": "palette-classic"
"y": 23
}, },
"id": 8, "custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"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": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 17
},
"id": 11,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.1.4",
"targets": [ "targets": [
{ {
"datasource": { "datasource": {
"type": "prometheus", "type": "prometheus",
"uid": "f6b18033-5918-4e05-a1ca-4cb30343b129" "uid": "f6b18033-5918-4e05-a1ca-4cb30343b129"
}, },
"editorMode": "code", "disableTextWrap": false,
"expr": "label_replace(label_replace(label_replace(label_replace(pubsub_info * on (subscriber) group_left() label_replace(last_over_time(pulsar_subscription_back_log{namespace=\"public/default\"}[1h]), \"subscriber\", \"$1\", \"subscription\", \"(.*)\"), \"source\", \"$1\", \"input_queue\", \"(.*)\"), \"target\", \"$1\", \"output_queue\", \"(.*)\"), \"id\", \"$1\", \"subscriber\", \"(.*)\"), \"mainstat\", \"$1\", \"Value\", \"(.*)\")\n", "editorMode": "builder",
"format": "table", "exemplar": false,
"expr": "increase(processing_count_total{status!=\"success\"}[$__rate_interval])",
"format": "time_series",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false, "instant": false,
"legendFormat": "{{instance}}",
"range": true, "range": true,
"refId": "A" "refId": "A",
"useBackend": false
} }
], ],
"title": "Pub/sub configuration", "title": "Errors",
"type": "nodeGraph" "type": "timeseries"
} }
], ],
"refresh": "5s", "refresh": "5s",
"schemaVersion": 38, "schemaVersion": 39,
"style": "dark",
"tags": [], "tags": [],
"templating": { "templating": {
"list": [] "list": []
@ -535,6 +642,6 @@
"timezone": "", "timezone": "",
"title": "Overview", "title": "Overview",
"uid": "b5c8abf8-fe79-496b-b028-10bde917d1f0", "uid": "b5c8abf8-fe79-496b-b028-10bde917d1f0",
"version": 2, "version": 1,
"weekStart": "" "weekStart": ""
} }