Skip to content

Commit

Permalink
[receiver/kubeletstats] Add RBAC docs (open-telemetry#27655)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHelmuth authored Oct 18, 2023
1 parent 02c7646 commit 3a23c23
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions receiver/kubeletstatsreceiver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,24 @@ The following parameters can also be specified:

The full list of settings exposed for this receiver are documented [here](./config.go)
with detailed sample configurations [here](./testdata/config.yaml).

### Role-based access control

The Kubelet Stats Receiver needs `get` permissions on the `nodes/stats` resources. Additionally, when using `extra_metadata_labels` or any of the `{request|limit}_utilization` metrics the processor also needs `get` permissions for `nodes/proxy` resources.

```yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: otel-collector
rules:
- apiGroups: [""]
resources: ["nodes/stats"]
verbs: ["get"]
# Only needed if you are using extra_metadata_labels or
# are collecting the request/limit utilization metrics
- apiGroups: [""]
resources: ["nodes/proxy"]
verbs: ["get"]
```

0 comments on commit 3a23c23

Please sign in to comment.