-
Notifications
You must be signed in to change notification settings - Fork 543
Open
Labels
needs-attentiontype/docsDocs Squad label across all Grafana Labs reposDocs Squad label across all Grafana Labs repos
Description
URL
https://grafana.com/docs/alloy/latest/reference/components/prometheus.exporter.cadvisor/
Feedback
The documentation fails to mention that the default installation of Alloy is unlikely to have the proper permissions to run cAdvisor correctly. After configuring the cAdvisor component on a fresh Ubuntu 22.04 system with Docker CE installed, the following error is generated:
Jun 06 01:25:35 dbsync alloy[17021]: ts=2024-06-05T23:25:35.921854424Z level=error msg="Failed to create existing container: /system.slice/docker-f9cf9c3bf054a2b0e16b26271ba1b8b7b4df829f5584dcdfbee20df0304e7e9b.scope: failed to identify the read-write layer ID for container \"f9cf9c3bf054a2b0e16b26271ba1b8b7b4df829f5584dcdfbee20df0304e7e9b\". - open /var/lib/docker/image/overlay2/layerdb/mounts/f9cf9c3bf054a2b0e16b26271ba1b8b7b4df829f5584dcdfbee20df0304e7e9b/mount-id: permission denied" component_path=/ component_id=prometheus.exporter.cadvisor.integrations_cadvisor func=Errorf
I tried adding the default alloy user to the docker group but the error persists. At this point, I am unsure of what additional permissions are needed beyond running the service as root. Can I please get clarification on how to run this component?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs-attentiontype/docsDocs Squad label across all Grafana Labs reposDocs Squad label across all Grafana Labs repos