-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat: promote StatefulSet metrics to STABLE and enhance docs #2783
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
feat: promote StatefulSet metrics to STABLE and enhance docs #2783
Conversation
- Updating kube_statefulset_status_replicas_available from ALPHA to STABLE - Add comprehensive PromQL examples and troubleshooting queries - Add major alerting rules for StatefulSet monitoring - Update tests to reflect STABLE status
|
Welcome @yasicar! |
- Fix malformed description column spacing in availableReplicas row - Align with consistent table formatting used by other metrics - Resolves markdownlint CI failure Signed-off-by: yasicar <yasica.rajesh@freshworks.com>
|
@CatherineF-dev @mrueg Can you please help me with the review |
- Promote kube_statefulset_annotations to STABLE - Promote kube_statefulset_persistentvolumeclaim_retention_policy to STABLE - Promote kube_statefulset_deletion_timestamp to STABLE All metrics are based on stable Kubernetes v1 APIs: - metadata.annotations (v1 stable) - spec.persistentVolumeClaimRetentionPolicy (v1 stable) - metadata.deletionTimestamp (v1 stable) Addresses consistency gap between kube-state-metrics stability labels and underlying Kubernetes API stability."
Signed-off-by: yasicar <yasica.rajesh@freshworks.com>
…ps://github.com/yasicar/kube-state-metrics into promote-statefulset-available-replicas-and-docs
|
/ok-to-test |
|
@yasicar, can you modify this part in PR body?, mention the issue that you are fixing, |
|
@nmn3m There isn’t a tracked issue—this was self-identified—so I updated the PR body to note Fixes N/A (self-identified issue) |
|
@yasicar, can you please create an issue?, describe what you are trying to do in that PR and attach that PR to it. |
|
@nmn3m Addressed your comments and created the issue |
|
/triage accepted |
|
Could you split queries and non-queries into two pull requests? I can approve the non-queries one. I need to discuss with other maintainers around the one containing queries. |
|
Hi @CatherineF-dev addressed your comments PR for queries changes : #2821 |
|
/lgtm |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CatherineF-dev, nmn3m, yasicar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR promotes four StatefulSet metrics from EXPERIMENTAL to STABLE status and enhances StatefulSet monitoring documentation with practical examples.
Metrics Promoted to STABLE:
kube_statefulset_status_replicas_available
kube_statefulset_annotations
kube_statefulset_persistentvolumeclaim_retention_policy
kube_statefulset_deletion_timestamp
Why we need it:
Metrics Promoted to STABLE:
kube_statefulset_status_replicas_availablestatus.availableReplicaskube_statefulset_annotationsmetadata.annotationskube_statefulset_persistentvolumeclaim_retention_policyspec.persistentVolumeClaimRetentionPolicykube_statefulset_deletion_timestampmetadata.deletionTimestamp, but the kube-state-metrics metric remained EXPERIMENTAL, This creates inconsistency where identical stable Kubernetes API fields have different stability levels across workload resources in kube-state-metrics.
Better monitoring: The documentation enhancements provide practical PromQL queries and alerting rules that address real-world StatefulSet monitoring needs, including detection of complete outages, rollout issues, and availability problems.
User experience: Removes confusion around metric stability and provides actionable examples for StatefulSet observability.
The promotion is justified because:
kube_deployment_status_replicas_available)How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)
Which issue(s) this PR fixes:
Fixes #2794