File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -491,6 +491,12 @@ services:
491491 image : ' index.docker.io/sourcegraph/cadvisor:insiders@sha256:3544dba5cd99c429ac62f4773454c8406abe126ba340f34e457b38d828c63395'
492492 cpus : 1
493493 mem_limit : ' 1g'
494+ # You may set `privileged` to `false and `cadvisor` will run with reduced privileges.
495+ # `cadvisor` requires root privileges in order to display provisioning metrics.
496+ # These metrics provide critical information to help you scale the Sourcegraph deployment.
497+ # If you would like to bring your own infrastructure monitoring & alerting solution,
498+ # you may want to remove the `cadvisor` container completely
499+ privileged : true
494500 volumes :
495501 - ' /:/rootfs:ro'
496502 - ' /var/run:/var/run:ro'
@@ -499,6 +505,8 @@ services:
499505 - ' /dev/disk/:/dev/disk:ro'
500506 # Uncomment to enable container monitoring on MacOS
501507 # - '/var/run/docker.sock:/var/run/docker.sock:ro'
508+ devices :
509+ - ' /dev/kmsg'
502510 networks :
503511 - sourcegraph
504512 restart : always
Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ sudo docker run --detach \
2424 --volume=/sys:/sys:ro \
2525 --volume=/var/lib/docker/:/var/lib/docker:ro \
2626 --volume=/dev/disk/:/dev/disk:ro \
27+ # You may set `privileged` to `false and `cadvisor` will run with reduced privileges.
28+ # `cadvisor` requires root privileges in order to display provisioning metrics.
29+ # These metrics provide critical information to help you scale the Sourcegraph deployment.
30+ # If you would like to bring your own infrastructure monitoring & alerting solution,
31+ # you may want to remove the `cadvisor` container completely
32+ --privileged \
33+ --device=/dev/kmsg \
2734 index.docker.io/sourcegraph/cadvisor:3.36.3@sha256:249c573262967979889a186344ba5cc4e8e9186ec4f26c759ce9f8527560da69 \
2835 --port=8080
2936
You can’t perform that action at this time.
0 commit comments