Skip to content

Using scrutiny with Docker Swarm #401

@DomiStyle

Description

@DomiStyle

Any idea if it's possible to use scrutiny with Docker Swarm?

Unfortunately in Docker Swarm mode devices does not work and device_cgroup_rules does not exist anymore in the docker-compose format v3.9.

I tried passing through the entirety of /dev as volume, which almost works since smartctl can recognize the drives but it obviously fails to access them due to permissions:

time="2022-11-21T10:22:55Z" level=info msg="Executing command: smartctl --scan --json" type=metrics
time="2022-11-21T10:22:55Z" level=info msg="Executing command: smartctl --info --json /dev/sds" type=metrics
time="2022-11-21T10:22:55Z" level=error msg="Could not retrieve device information for sds: exit status 2" type=metrics

When running the command manually:

     "messages": [
      {
        "string": "Smartctl open device: /dev/sds failed: Operation not permitted",
        "severity": "error"
      }
    ],

I ran the smartctl command on the host just to make sure and no issues there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions