fix(kafka): match KRaft controller dashboard panel to hashed pool name

The controller commit-latency panel selected controller pods with
pod=~"$strimzi_cluster_name-controller-.*", but the controller node pool
is named c-<hash> (kafka.controllerPoolName), so Strimzi names controller
pods <cluster>-c-<hash>-<id>. The literal -controller- never matched, so
the panel was permanently empty. Select the pool by its -c- token instead.

Signed-off-by: Andrey Kolkov <androndo@gmail.com>
This commit is contained in:
Andrey Kolkov authored and Alexey Artamonov committed 2026-09-17 11:09:10 +03:00
1 parent 053ef16976
commit 1a5cb049ae
1 file changed
+1 -1
+1 -1
View File
@@ -2801,7 +2801,7 @@
"targets": [
{
"datasource": "${DS_PROMETHEUS}",
"expr": "sum(kafka_server_raftmetrics_commit_latency_avg{namespace=\"$kubernetes_namespace\",pod=~\"$strimzi_cluster_name-controller-.*\"}) by (pod)",
"expr": "sum(kafka_server_raftmetrics_commit_latency_avg{namespace=\"$kubernetes_namespace\",pod=~\"$strimzi_cluster_name-c-.*\"}) by (pod)",
"format": "time_series",
"instant": false,
"intervalFactor": 1,