You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documented ClusterRole for the kubeletstats receiver should list its optional permissions.
Maybe commented out? E.g.
...
apiVersion: rbac.authorization.k8s.io/v1kind: ClusterRolemetadata:
name: otel-collectorrules:
- apiGroups: ['']resources: ['nodes/stats']verbs: ['get', 'watch', 'list']# The following is needed when using extra_metadata_labels or any of the {request|limit}_utilization metrics#- apiGroups: ['']# resources: ['nodes/proxy']# verbs: ['get']
...
Context
After enabling the optional metrick8s.container.memory_limit_utilization in the kubeletstats receiver, my OTel Collectors started partially failing with these errors:
Complete guess: this might be for sig:collector instead, as the otel operator had the same concern addressed in the aforementioned open-telemetry/opentelemetry-operator#3155
I couldn't use that operator feature for my otelcols as I needed to implement the k8s service account manually, hence relying on the doc in question
URL
https://opentelemetry.io/docs/kubernetes/collector/components/#kubeletstats-receiver
Recommended change
The documented
ClusterRole
for the kubeletstats receiver should list its optional permissions.Maybe commented out? E.g.
Context
After enabling the optional metric
k8s.container.memory_limit_utilization
in thekubeletstats
receiver, my OTel Collectors started partially failing with these errors:This caught me by surprise as the
ClusterRole
described in the linked page was assigned to these pods and had worked fine for weeks.After granting the permission listed in the error, my otelcol daemonset was back in operation.
I've done so after looking around and finding the same optional permission tackled in open-telemetry/opentelemetry-operator#3155.
https://github.com/open-telemetry/opentelemetry-operator/blob/1980f0877e5cff8e41ff3eafafe4c57133d7c899/internal/components/receivers/kubeletstats.go#L65-L93 shows that
nodes/proxy
is needed "when using extra_metadata_labels or any of the {request|limit}_utilization metrics".The text was updated successfully, but these errors were encountered: