|
|
|
@ -21,14 +21,17 @@ ExecStart={{ matrix_host_command_docker }} run --rm --name matrix-prometheus-nod
|
|
|
|
|
--log-driver=none \
|
|
|
|
|
--user={{ matrix_user_uid }}:{{ matrix_user_gid }} \
|
|
|
|
|
--cap-drop=ALL \
|
|
|
|
|
--network={{ matrix_docker_network }} \
|
|
|
|
|
{% if matrix_prometheus_node_exporter_container_http_host_bind_port %}
|
|
|
|
|
-p {{ matrix_prometheus_node_exporter_container_http_host_bind_port }}:9100 \
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% for arg in matrix_prometheus_node_exporter_container_extra_arguments %}
|
|
|
|
|
{{ arg }} \
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{{ matrix_prometheus_node_exporter_docker_image }}
|
|
|
|
|
--net="host" \
|
|
|
|
|
--pid="host" \
|
|
|
|
|
-v "/:/host:ro,rslave" \
|
|
|
|
|
{{ matrix_prometheus_node_exporter_docker_image }} \
|
|
|
|
|
--path.rootfs=/host
|
|
|
|
|
|
|
|
|
|
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} kill matrix-prometheus-node-exporter 2>/dev/null'
|
|
|
|
|
ExecStop=-{{ matrix_host_command_sh }} -c '{{ matrix_host_command_docker }} rm matrix-prometheus-node-exporter 2>/dev/null'
|
|
|
|
|