-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[k8sclusterreceiver] add pod status reason as a metric #24034
Comments
Pinging code owners: See Adding Labels via Comments if you do not have permissions to add labels yourself. |
REF #21234 |
Pinging code owners for receiver/k8scluster: @dmitryax. See Adding Labels via Comments if you do not have permissions to add labels yourself. |
If we add pod status reason as several metrics, we will also need to change the pod phase metric the same way. I wouldn't like to make this change to pod state metric until we have strict guidelines from the OTel Spec on how to represent this kind of data If you want the pod state reason added right now, we can add it as one metric for consistency with the pod state and keep it optional (disabled by default) for now. Later we can reconsider it once we bring all the k8s metrics to the Semantic conventions. But before that, we need to finalize #4367 to be able to add optional metrics at all. |
Created an issue for optional metrics in #24568 |
Component(s)
receiver/k8scluster
Is your feature request related to a problem? Please describe.
I would like to get pod status reason as a metric:
In Kube State metrics there are 5 pod reasons being reported - "Evicted", "NodeAffinity", "NodeLost", "Shutdown", "UnexpectedAdmissionError"
In practice it looks like this:
K8s API docs describe this field as:
Example from K8s
kubectl get po -o yaml
:Any thoughts?
Describe the solution you'd like
There are two possible solutions:
Alternatively:
I can work on this :)
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: