Skip to content

Commit

Permalink
feat(dashboard): refine dashboards (#768)
Browse files Browse the repository at this point in the history
Signed-off-by: Shichao Nie <[email protected]>
  • Loading branch information
SCNieh authored Feb 4, 2024
1 parent d756947 commit 4da41df
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1148,7 +1148,7 @@
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
"mode": "thresholds"
},
"custom": {
"axisBorderShow": false,
Expand All @@ -1167,7 +1167,7 @@
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
Expand All @@ -1192,7 +1192,7 @@
},
{
"color": "red",
"value": 80
"value": 0
}
]
},
Expand All @@ -1202,11 +1202,11 @@
},
"gridPos": {
"h": 12,
"w": 10,
"w": 8,
"x": 0,
"y": 49
},
"id": 16,
"id": 12,
"options": {
"legend": {
"calcs": [],
Expand All @@ -1219,6 +1219,7 @@
"sort": "desc"
}
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
Expand All @@ -1227,17 +1228,18 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "sum by(job, instance, operation_name) (rate(kafka_stream_operation_latency_nanoseconds_count{job=~\"$cluster_id/.*\", instance=~\"$node_id\", operation_name=~\"$s3request\", operation_type=\"S3Request\"}[$__rate_interval]))",
"expr": "sum by(operation_name, instance) (rate(kafka_stream_operation_latency_nanoseconds_count{job=~\"$cluster_id/.*\", instance=~\"$node_id\", operation_type=\"S3Request\", status=\"failed\"}[$__rate_interval]))",
"fullMetaSearch": false,
"includeNullMetadata": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "Node-{{instance}}#{{operation_name}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Request Throughput",
"title": "Error Rate",
"type": "timeseries"
},
{
Expand All @@ -1251,48 +1253,74 @@
"mode": "palette-classic"
},
"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
}
]
},
"unit": "reqps"
},
"overrides": []
},
"gridPos": {
"h": 12,
"w": 4,
"x": 10,
"w": 8,
"x": 8,
"y": 49
},
"id": 12,
"id": 16,
"options": {
"displayLabels": [
"name",
"percent"
],
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"pieType": "pie",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"tooltip": {
"mode": "single",
"sort": "none"
"mode": "multi",
"sort": "desc"
}
},
"pluginVersion": "10.2.2",
"targets": [
{
"datasource": {
Expand All @@ -1301,19 +1329,18 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "sum by(status) (rate(kafka_stream_operation_latency_nanoseconds_count{job=~\"$cluster_id/.*\", instance=~\"$node_id\", operation_type=\"S3Request\", operation_name=~\"$s3request\"}[$__rate_interval]))",
"expr": "sum by(job, instance, operation_name) (rate(kafka_stream_operation_latency_nanoseconds_count{job=~\"$cluster_id/.*\", instance=~\"$node_id\", operation_name=~\"$s3request\", operation_type=\"S3Request\"}[$__rate_interval]))",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"includeNullMetadata": false,
"instant": false,
"legendFormat": "{{status}}",
"legendFormat": "Node-{{instance}}#{{operation_name}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Request Stats",
"type": "piechart"
"title": "Request Throughput",
"type": "timeseries"
},
{
"datasource": {
Expand Down Expand Up @@ -1380,8 +1407,8 @@
},
"gridPos": {
"h": 12,
"w": 10,
"x": 14,
"w": 8,
"x": 16,
"y": 49
},
"id": 17,
Expand Down Expand Up @@ -1942,8 +1969,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -2042,8 +2068,7 @@
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
"color": "green"
},
{
"color": "red",
Expand Down Expand Up @@ -3813,7 +3838,7 @@
"type": "timeseries"
}
],
"refresh": false,
"refresh": "5s",
"schemaVersion": 38,
"tags": [],
"templating": {
Expand Down Expand Up @@ -3900,10 +3925,10 @@
"current": {
"selected": false,
"text": [
"2"
"0"
],
"value": [
"2"
"0"
]
},
"datasource": {
Expand Down Expand Up @@ -3963,18 +3988,22 @@
{
"current": {
"selected": false,
"text": "append",
"value": "append"
"text": [
"append"
],
"value": [
"append"
]
},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(kafka_stream_operation_latency_nanoseconds_count{operation_type=\"S3Stream\"},operation_name)",
"hide": 0,
"includeAll": false,
"includeAll": true,
"label": "S3Stream Request",
"multi": false,
"multi": true,
"name": "s3stream_request",
"options": [],
"query": {
Expand All @@ -3991,18 +4020,22 @@
{
"current": {
"selected": false,
"text": "put_object",
"value": "put_object"
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(kafka_stream_operation_latency_nanoseconds_count{operation_type=\"S3Request\"},operation_name)",
"hide": 0,
"includeAll": false,
"includeAll": true,
"label": "S3 Request",
"multi": false,
"multi": true,
"name": "s3request",
"options": [],
"query": {
Expand All @@ -4026,6 +4059,6 @@
"timezone": "",
"title": "Detailed Metrics",
"uid": "d8550a59-02cf-4749-8c16-b32e370ba280",
"version": 7,
"version": 11,
"weekStart": ""
}
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
"mode": "multi",
"sort": "desc"
}
},
"targets": [
Expand Down Expand Up @@ -1944,6 +1944,6 @@
"timezone": "",
"title": "Cluster Overview",
"uid": "f719833b-0a35-4fb3-9b84-3815726006e7",
"version": 5,
"version": 7,
"weekStart": ""
}
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "sum by(topic, partition) (increase(kafka_network_io_bytes_total{job=~\"$cluster_id/.*\", topic=~\"$topic\", direction=\"in\"}[$__rate_interval]))",
"expr": "sum by(topic, partition) (rate(kafka_network_io_bytes_total{job=~\"$cluster_id/.*\", topic=~\"$topic\", direction=\"in\"}[$__rate_interval]))",
"fullMetaSearch": false,
"includeNullMetadata": false,
"instant": false,
Expand Down Expand Up @@ -739,6 +739,6 @@
"timezone": "",
"title": "Topic Metrics",
"uid": "b908cc7a-3592-405d-aafb-fc9225219b0a",
"version": 3,
"version": 4,
"weekStart": ""
}

0 comments on commit 4da41df

Please sign in to comment.