-
Notifications
You must be signed in to change notification settings - Fork 632
feat(dashboards): new Pod Count per Workload panel #1151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat(dashboards): new Pod Count per Workload panel #1151
Conversation
…monitoring#1149) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…bernetes-monitoring#1150) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…itoring#1152) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…nitoring#1153) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…netes-monitoring#1154) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
|
@Harish416 thank you for this! Looks like you need to sync the latest |
skl
left a comment
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.:
| '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 |
This reverts commit 8c515f2.
…om/duplocloud/kubernetes-mixin into additon-of-new-pod-count-dashboard
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.