Skip to content

Conversation

@Harish416
Copy link

This dashboard provides a unified view of Kubernetes workload capacity and usage across Deployments, StatefulSets, and DaemonSets. It helps operators quickly understand how many pods are desired vs. actually running, enabling fast detection of scaling issues, rollout problems, and workload health anomalies.
The newly added "Pod Count per Workload" panel visualizes real-time replica counts for each workload type, allowing users to easily compare desired vs. available pods within a namespace. This enhancement makes the dashboard a more complete operational tool for SREs and platform teams monitoring Kubernetes clusters at scale.

@skl
Copy link
Collaborator

skl commented Dec 12, 2025

@Harish416 thank you for this! Looks like you need to sync the latest master branch from upstream, your fork is quite far behind (nearly a year old).

Copy link
Collaborator

@skl skl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, don't forget to run make jsonnet-fmt to satisfy CI and one comment to use the labels from config before I can approve. Thank you!

+ tsPanel.queryOptions.withTargets([
prometheus.new(
'${datasource}',
'sum by (cluster, namespace, deployment) (kube_deployment_spec_replicas{%(clusterLabel)s="$cluster", namespace="$namespace", deployment="$workload"})' % $._config
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For all of these queries, the labels cluster should be %(clusterLabel)s and namespace should be %(namespaceLabel)s, e.g.:

Suggested change
'sum by (cluster, namespace, deployment) (kube_deployment_spec_replicas{%(clusterLabel)s="$cluster", namespace="$namespace", deployment="$workload"})' % $._config
'sum by (%(clusterLabel)s, %(namespaceLabel)s, deployment) (kube_deployment_spec_replicas{%(clusterLabel)s="$cluster", %(namespaceLabel)s="$namespace", deployment="$workload"})' % $._config

@skl skl changed the title new pod count dashboard per workload feat(dashboards): new Pod Count per Workload panel Dec 12, 2025
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.

2 participants