Skip to content

Commit 080d55d

Browse files
author
maciej-tatarski
committed
Change chart to table for log size
1 parent cbae4d4 commit 080d55d

File tree

2 files changed

+196
-136
lines changed

2 files changed

+196
-136
lines changed

packaging/examples/metrics/grafana-dashboards/strimzi-kafka.json

Lines changed: 98 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,98 +2809,128 @@
28092809
}
28102810
},
28112811
{
2812-
"aliasColors": {},
2813-
"bars": false,
2814-
"dashLength": 10,
2815-
"dashes": false,
28162812
"datasource": "${DS_PROMETHEUS}",
28172813
"fieldConfig": {
28182814
"defaults": {
2819-
"custom": {}
2820-
},
2821-
"overrides": []
2815+
"custom": {
2816+
"align": null,
2817+
"filterable": true
2818+
},
2819+
"mappings": [],
2820+
"thresholds": {
2821+
"mode": "absolute",
2822+
"steps": [
2823+
{
2824+
"color": "green",
2825+
"value": null
2826+
}
2827+
]
2828+
}
2829+
},
2830+
"overrides": [
2831+
{
2832+
"matcher": {
2833+
"id": "byName",
2834+
"options": "Log Size"
2835+
},
2836+
"properties": [
2837+
{
2838+
"id": "unit",
2839+
"value": "decbytes"
2840+
}
2841+
]
2842+
}
2843+
]
28222844
},
2823-
"fill": 1,
28242845
"gridPos": {
28252846
"h": 8,
28262847
"w": 12,
28272848
"x": 0,
28282849
"y": 55
28292850
},
28302851
"id": 91,
2831-
"legend": {
2832-
"avg": false,
2833-
"current": false,
2834-
"max": false,
2835-
"min": false,
2836-
"show": true,
2837-
"total": false,
2838-
"values": false
2839-
},
2840-
"lines": true,
2841-
"linewidth": 1,
28422852
"links": [],
2843-
"nullPointMode": "null",
2844-
"paceLength": 10,
2845-
"percentage": false,
2853+
"options": {
2854+
"showHeader": true
2855+
},
28462856
"pluginVersion": "7.3.7",
2847-
"pointradius": 5,
2848-
"points": false,
2849-
"renderer": "flot",
2850-
"seriesOverrides": [],
2851-
"spaceLength": 10,
2852-
"stack": false,
2853-
"steppedLine": false,
28542857
"targets": [
28552858
{
28562859
"expr": "kafka_log_log_size{namespace=\"$kubernetes_namespace\",strimzi_io_cluster=\"$strimzi_cluster_name\",kubernetes_pod_name=~\"$strimzi_cluster_name-$kafka_broker\",topic=~\"$kafka_topic\",partition=~\"$kafka_partition\"}",
2857-
"format": "time_series",
2858-
"instant": false,
2860+
"format": "table",
2861+
"instant": true,
2862+
"interval": "",
28592863
"intervalFactor": 1,
28602864
"legendFormat": "{{topic}}:{{partition}}",
28612865
"refId": "A"
28622866
}
28632867
],
2864-
"thresholds": [],
28652868
"timeFrom": null,
2866-
"timeRegions": [],
28672869
"timeShift": null,
28682870
"title": "Log Size",
2869-
"tooltip": {
2870-
"shared": true,
2871-
"sort": 0,
2872-
"value_type": "individual"
2873-
},
2874-
"type": "graph",
2875-
"xaxis": {
2876-
"buckets": null,
2877-
"mode": "time",
2878-
"name": null,
2879-
"show": true,
2880-
"values": []
2881-
},
2882-
"yaxes": [
2883-
{
2884-
"format": "bytes",
2885-
"label": null,
2886-
"logBase": 1,
2887-
"max": null,
2888-
"min": null,
2889-
"show": true
2890-
},
2891-
{
2892-
"format": "short",
2893-
"label": null,
2894-
"logBase": 1,
2895-
"max": null,
2896-
"min": null,
2897-
"show": true
2898-
}
2899-
],
2900-
"yaxis": {
2901-
"align": false,
2902-
"alignLevel": null
2903-
}
2871+
"transformations": [
2872+
{
2873+
"id": "organize",
2874+
"options": {
2875+
"excludeByName": {
2876+
"Time": true,
2877+
"__name__": true,
2878+
"container": true,
2879+
"endpoint": true,
2880+
"instance": true,
2881+
"job": true,
2882+
"kubernetes_pod_name": true,
2883+
"namespace": true,
2884+
"node_ip": true,
2885+
"node_name": true,
2886+
"pod": true,
2887+
"strimzi_io_broker_role": true,
2888+
"strimzi_io_cluster": true,
2889+
"strimzi_io_component_type": true,
2890+
"strimzi_io_controller": true,
2891+
"strimzi_io_controller_name": true,
2892+
"strimzi_io_controller_role": true,
2893+
"strimzi_io_kind": true,
2894+
"strimzi_io_name": true,
2895+
"strimzi_io_pod_name": true,
2896+
"strimzi_io_pool_name": true
2897+
},
2898+
"indexByName": {
2899+
"Time": 0,
2900+
"Value": 23,
2901+
"__name__": 1,
2902+
"container": 3,
2903+
"endpoint": 4,
2904+
"instance": 5,
2905+
"job": 6,
2906+
"kubernetes_pod_name": 7,
2907+
"namespace": 8,
2908+
"node_ip": 9,
2909+
"node_name": 10,
2910+
"partition": 11,
2911+
"pod": 12,
2912+
"strimzi_io_broker_role": 13,
2913+
"strimzi_io_cluster": 14,
2914+
"strimzi_io_component_type": 15,
2915+
"strimzi_io_controller": 16,
2916+
"strimzi_io_controller_name": 17,
2917+
"strimzi_io_controller_role": 18,
2918+
"strimzi_io_kind": 19,
2919+
"strimzi_io_name": 20,
2920+
"strimzi_io_pod_name": 21,
2921+
"strimzi_io_pool_name": 22,
2922+
"topic": 2
2923+
},
2924+
"renameByName": {
2925+
"Value": "Log Size",
2926+
"partition": "Partition",
2927+
"strimzi_io_name": "",
2928+
"topic": "Topic"
2929+
}
2930+
}
2931+
}
2932+
],
2933+
"type": "table"
29042934
},
29052935
{
29062936
"aliasColors": {},

packaging/helm-charts/helm3/strimzi-kafka-operator/files/grafana-dashboards/strimzi-kafka.json

Lines changed: 98 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,98 +2809,128 @@
28092809
}
28102810
},
28112811
{
2812-
"aliasColors": {},
2813-
"bars": false,
2814-
"dashLength": 10,
2815-
"dashes": false,
28162812
"datasource": "${DS_PROMETHEUS}",
28172813
"fieldConfig": {
28182814
"defaults": {
2819-
"custom": {}
2820-
},
2821-
"overrides": []
2815+
"custom": {
2816+
"align": null,
2817+
"filterable": true
2818+
},
2819+
"mappings": [],
2820+
"thresholds": {
2821+
"mode": "absolute",
2822+
"steps": [
2823+
{
2824+
"color": "green",
2825+
"value": null
2826+
}
2827+
]
2828+
}
2829+
},
2830+
"overrides": [
2831+
{
2832+
"matcher": {
2833+
"id": "byName",
2834+
"options": "Log Size"
2835+
},
2836+
"properties": [
2837+
{
2838+
"id": "unit",
2839+
"value": "decbytes"
2840+
}
2841+
]
2842+
}
2843+
]
28222844
},
2823-
"fill": 1,
28242845
"gridPos": {
28252846
"h": 8,
28262847
"w": 12,
28272848
"x": 0,
28282849
"y": 55
28292850
},
28302851
"id": 91,
2831-
"legend": {
2832-
"avg": false,
2833-
"current": false,
2834-
"max": false,
2835-
"min": false,
2836-
"show": true,
2837-
"total": false,
2838-
"values": false
2839-
},
2840-
"lines": true,
2841-
"linewidth": 1,
28422852
"links": [],
2843-
"nullPointMode": "null",
2844-
"paceLength": 10,
2845-
"percentage": false,
2853+
"options": {
2854+
"showHeader": true
2855+
},
28462856
"pluginVersion": "7.3.7",
2847-
"pointradius": 5,
2848-
"points": false,
2849-
"renderer": "flot",
2850-
"seriesOverrides": [],
2851-
"spaceLength": 10,
2852-
"stack": false,
2853-
"steppedLine": false,
28542857
"targets": [
28552858
{
28562859
"expr": "kafka_log_log_size{namespace=\"$kubernetes_namespace\",strimzi_io_cluster=\"$strimzi_cluster_name\",kubernetes_pod_name=~\"$strimzi_cluster_name-$kafka_broker\",topic=~\"$kafka_topic\",partition=~\"$kafka_partition\"}",
2857-
"format": "time_series",
2858-
"instant": false,
2860+
"format": "table",
2861+
"instant": true,
2862+
"interval": "",
28592863
"intervalFactor": 1,
28602864
"legendFormat": "{{topic}}:{{partition}}",
28612865
"refId": "A"
28622866
}
28632867
],
2864-
"thresholds": [],
28652868
"timeFrom": null,
2866-
"timeRegions": [],
28672869
"timeShift": null,
28682870
"title": "Log Size",
2869-
"tooltip": {
2870-
"shared": true,
2871-
"sort": 0,
2872-
"value_type": "individual"
2873-
},
2874-
"type": "graph",
2875-
"xaxis": {
2876-
"buckets": null,
2877-
"mode": "time",
2878-
"name": null,
2879-
"show": true,
2880-
"values": []
2881-
},
2882-
"yaxes": [
2883-
{
2884-
"format": "bytes",
2885-
"label": null,
2886-
"logBase": 1,
2887-
"max": null,
2888-
"min": null,
2889-
"show": true
2890-
},
2891-
{
2892-
"format": "short",
2893-
"label": null,
2894-
"logBase": 1,
2895-
"max": null,
2896-
"min": null,
2897-
"show": true
2898-
}
2899-
],
2900-
"yaxis": {
2901-
"align": false,
2902-
"alignLevel": null
2903-
}
2871+
"transformations": [
2872+
{
2873+
"id": "organize",
2874+
"options": {
2875+
"excludeByName": {
2876+
"Time": true,
2877+
"__name__": true,
2878+
"container": true,
2879+
"endpoint": true,
2880+
"instance": true,
2881+
"job": true,
2882+
"kubernetes_pod_name": true,
2883+
"namespace": true,
2884+
"node_ip": true,
2885+
"node_name": true,
2886+
"pod": true,
2887+
"strimzi_io_broker_role": true,
2888+
"strimzi_io_cluster": true,
2889+
"strimzi_io_component_type": true,
2890+
"strimzi_io_controller": true,
2891+
"strimzi_io_controller_name": true,
2892+
"strimzi_io_controller_role": true,
2893+
"strimzi_io_kind": true,
2894+
"strimzi_io_name": true,
2895+
"strimzi_io_pod_name": true,
2896+
"strimzi_io_pool_name": true
2897+
},
2898+
"indexByName": {
2899+
"Time": 0,
2900+
"Value": 23,
2901+
"__name__": 1,
2902+
"container": 3,
2903+
"endpoint": 4,
2904+
"instance": 5,
2905+
"job": 6,
2906+
"kubernetes_pod_name": 7,
2907+
"namespace": 8,
2908+
"node_ip": 9,
2909+
"node_name": 10,
2910+
"partition": 11,
2911+
"pod": 12,
2912+
"strimzi_io_broker_role": 13,
2913+
"strimzi_io_cluster": 14,
2914+
"strimzi_io_component_type": 15,
2915+
"strimzi_io_controller": 16,
2916+
"strimzi_io_controller_name": 17,
2917+
"strimzi_io_controller_role": 18,
2918+
"strimzi_io_kind": 19,
2919+
"strimzi_io_name": 20,
2920+
"strimzi_io_pod_name": 21,
2921+
"strimzi_io_pool_name": 22,
2922+
"topic": 2
2923+
},
2924+
"renameByName": {
2925+
"Value": "Log Size",
2926+
"partition": "Partition",
2927+
"strimzi_io_name": "",
2928+
"topic": "Topic"
2929+
}
2930+
}
2931+
}
2932+
],
2933+
"type": "table"
29042934
},
29052935
{
29062936
"aliasColors": {},

0 commit comments

Comments
 (0)