-
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] k8s.node.condition metric not aggregatable in current form #33760
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Isn't it possible if filter by the |
It's not possible to "filter by Filtering by the condition attribute doesn't work because the same |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
receiver/k8scluster
What happened?
Description
The use of
-1
forConditionUnknown
greatly hinders usability of thek8s.node.condition
metric.For example, it's not possible to get a simple count of ready nodes in a k8s cluster (since the
-1
subtracts from the sum). This would be useful to write an alert comparingk8s.daemonset.ready_nodes
tosum(k8s.node.condition{condition="ready"})
.Another example of the Splunk team continuing to push the antipattern of using the metric value to encode enumerations. While this may be usable in the Splunk backend, it simply doesn't work well in most other metric systems (Datadog, New Relic, Prometheus, etc.).
This metric should instead be modeled like the
kube_node_status_condition
metric fromkube-state-metrics
which includesstatus
as an attribute following the OpenMetrics StateSet pattern. This allows queries of the formCollector version
v0.103.0
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: