Skip to content

fix(k8s-views-pods): use exact pod match in Information section stat panels#178

Open
raman1236 wants to merge 1 commit intodotdc:masterfrom
raman1236:fix/info-panels-single-pod-only
Open

fix(k8s-views-pods): use exact pod match in Information section stat panels#178
raman1236 wants to merge 1 commit intodotdc:masterfrom
raman1236:fix/info-panels-single-pod-only

Conversation

@raman1236
Copy link
Copy Markdown

Summary

Fixes #177

The Information section stat panels in k8s-views-pods are designed for single-pod metadata display (Created by, Running on, Pod IP, Priority Class, QOS Class, Last Terminated Reason/Exit Code).

After #173 changed pod="$pod" to pod=~"$pod" across all panels, these 7 stat panels now match multiple pods when $pod=All is selected. Since stat panels render all matched values, this produces very small, unreadable text.

Fix

Revert the 7 Information section stat panels from regex matching (pod=~"$pod") to exact matching (pod="$pod"), consistent with their "Panel only works when a single pod is selected." description.

All other sections (Resources, Kubernetes, Network) keep regex matching since their panel types (timeseries, table, gauge) handle multi-pod data correctly.

Affected panels

Panel Metric
Created by kube_pod_info
Running on kube_pod_info
Pod IP kube_pod_info
Priority Class kube_pod_info
QOS Class kube_pod_status_qos_class
Last Terminated Reason kube_pod_container_status_last_terminated_reason
Last Terminated Exit Code kube_pod_container_status_last_terminated_exitcode

…panels

The Information section stat panels are designed for single-pod display
(they show metadata like Created by, Running on, Pod IP, etc.). Using
regex matching (pod=~) causes them to return multiple values when
$pod=All is selected, resulting in unreadable tiny text in stat panels.

Revert these 7 Information panels from pod=~ to pod= while keeping
regex matching for all Resource/Kubernetes/Network panels where
multi-pod display is intended.

Fixes dotdc#177
@raman1236 raman1236 requested a review from dotdc as a code owner April 5, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Different behavior of Information section panels in Views Pods dashboard

2 participants