21 lines
691 B
Plaintext
21 lines
691 B
Plaintext
|
[Unit]
|
||
|
Description=cAdvisor
|
||
|
Documentation=man:cadvisor
|
||
|
Documentation=https://github.com/google/cadvisor
|
||
|
|
||
|
[Service]
|
||
|
EnvironmentFile=/etc/default/cadvisor
|
||
|
ExecStart={{ docker_swarm_cluster_cadvisor_binary_path }} \
|
||
|
--docker=${CADVISOR_DOCKER_ENDPOINT} \
|
||
|
--port=${CADVISOR_PORT} \
|
||
|
--storage_driver=${CADVISOR_STORAGE_DRIVER} \
|
||
|
--storage_driver_host=${CADVISOR_STORAGE_DRIVER_HOST} \
|
||
|
--storage_driver_password=${CADVISOR_STORAGE_DRIVER_PASSWORD} \
|
||
|
--storage_driver_secure=${CADVISOR_STORAGE_DRIVER_SECURE} \
|
||
|
--storage_driver_user=${CADVISOR_STORAGE_DRIVER_USER} \
|
||
|
--logtostderr=${CADVISOR_LOG_TO_STDERR} \
|
||
|
${DAEMON_ARGS}
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|