-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add kube_pod_status_qos_class gauge to pod metrics #1932
Add kube_pod_status_qos_class gauge to pod metrics #1932
Conversation
Signed-off-by: frezes <[email protected]>
|
Welcome @frezes! |
docs/pod-metrics.md
Outdated
@@ -11,6 +11,7 @@ | |||
| kube_pod_labels | Gauge | Kubernetes labels converted to Prometheus labels | | `pod`=<pod-name> <br> `namespace`=<pod-namespace> <br> `label_POD_LABEL`=<POD_LABEL> <br> `uid`=<pod-uid> | STABLE | - | | |||
| kube_pod_nodeselectors| Gauge | Describes the Pod nodeSelectors | | `pod`=<pod-name> <br> `namespace`=<pod-namespace> <br> `nodeselector_NODE_SELECTOR`=<NODE_SELECTOR> <br> `uid`=<pod-uid> | EXPERIMENTAL | Opt-in | | |||
| kube_pod_status_phase | Gauge | The pods current phase | | `pod`=<pod-name> <br> `namespace`=<pod-namespace> <br> `phase`=<Pending\|Running\|Succeeded\|Failed\|Unknown> <br> `uid`=<pod-uid> | STABLE | - | | |||
| kube_pod_status_qos_class | Gauge | The pods current qosClass | | `pod`=<pod-name> <br> `namespace`=<pod-namespace> <br> `qos_class`=<BestEffort\|Burstable\|Guaranteed> <br> `uid`=<pod-uid> | STABLE | - | |
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.
Please make those metrics experimental first when introducing them.
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.
Yes, you can use this function
*generator.NewFamilyGeneratorWithStability(
...,
basemetrics.ALPHA,
...,
)
/assign @mrueg |
Signed-off-by: frezes <[email protected]>
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CatherineF-dev, frezes, mrueg 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:
Adds qosClass metrics, for pod.
How does this change affect the cardinality of KSM: (increases, decreases or does not change cardinality)
no change