-
Notifications
You must be signed in to change notification settings - Fork 183
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 metrics for k8s statefulset #1637
Comments
I don't remember any history behind these names. It makes sense to keep it consistent with other metrics and drop _pods suffix |
|
Good point! So if we are ok with removing the
However again we need to keep that consistent with other metrics like those of
|
There is also the pattern of One issue I have with I'm of the opinion that we leave the names as is since they are conveying correct information and have been in place for a while. |
Same issue seems to appear for the deployment, replicaset etc resources: #1636
|
Bummer, we're already inconsistent 😢 |
This is an interesting topic. Keep in mind that we also have |
I like the proposal that we should attempt to align more closely with what KSM has here? i.e. |
+1 for having consistency here. We can add the semantic-conventions/docs/general/metrics.md Lines 131 to 146 in 2d34907
I would be more in favor of We cannot really reduce the number of breaking changes. 4 statefulset metrics come with the
I will group all the "replicas-related" together as part of the #1636 to illustrate the idea and we can continue the discussion. |
Area(s)
area:k8s
Is your change request related to a problem? Please describe.
Part of #1032.
This issue is for adding the
statefulset
related metrics.Describe the solution you'd like
The following metrics are already implemented by the Collector:
k8s.statefulset.desired_pods
k8s.statefulset.ready_pods
k8s.statefulset.current_pods
k8s.statefulset.updated_pods
ref: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.114.0/receiver/k8sclusterreceiver/documentation.md#k8sstatefulsetcurrent_pods
Describe alternatives you've considered
No response
Additional context
API ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.30/#statefulsetstatus-v1-apps
I would like to validate the names here though and make sure that we are happy with the
.ready_pods
and.desired_pods
. The alternative would be to have them as.desired
and.available
as we have in thedeployment
andreplicaset
metrics (#1636)?@TylerHelmuth @povilasv @dmitryax could you verify if that's the desired modeling here for any specific reason or if it would make sense to change it so as to be consistent with the other mentioned namespaces?
The text was updated successfully, but these errors were encountered: