diff options
author | Netdata bot <43409846+netdatabot@users.noreply.github.com> | 2024-06-20 16:25:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 23:25:53 +0300 |
commit | 6f76453d76e5f6344d2fc0c364d30894967f3642 (patch) | |
tree | bd77a3f4f3225a3450cc40c1fc8da6786ba7b547 /src | |
parent | 37133ee0e6fd0a38c8e9c8772d8dc6d6605e9e2b (diff) |
Regenerate integrations.js (#17981)
Co-authored-by: ilyam8 <22274335+ilyam8@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/go/collectors/go.d.plugin/modules/smartctl/integrations/s.m.a.r.t..md | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/modules/smartctl/integrations/s.m.a.r.t..md b/src/go/collectors/go.d.plugin/modules/smartctl/integrations/s.m.a.r.t..md index 482fedbd1b..dbd519a77d 100644 --- a/src/go/collectors/go.d.plugin/modules/smartctl/integrations/s.m.a.r.t..md +++ b/src/go/collectors/go.d.plugin/modules/smartctl/integrations/s.m.a.r.t..md @@ -102,6 +102,34 @@ There are no alerts configured by default for this integration. Install `smartmontools` version 7.0 or later using your distribution's package manager. Version 7.0 introduced the `--json` output mode, which is required for this collector to function properly. +#### For Netdata running in a Docker container + +Netdata requires the `SYS_RAWIO` capability and access to the storage devices to run the `smartctl` collector inside a Docker container. Here's how you can achieve this: + +- `docker run` + + ```bash + docker run --cap-add SYS_RAWIO --device /dev/sda:/dev/sda ... + ``` + +- `docker-compose.yml` + + ```yaml + services: + netdata: + cap_add: + - SYS_PTRACE + - SYS_ADMIN + - SYS_RAWIO # smartctl + devices: + - "/dev/sda:/dev/sda" + ``` + +> **Multiple Devices**: These examples only show mapping of one device (/dev/sda). You'll need to add additional `--device` options (in docker run) or entries in the `devices` list (in docker-compose.yml) for each storage device you want Netdata's smartctl collector to monitor. + +> **NVMe Devices**: Do not map NVMe devices using this method. Netdata uses a [dedicated collector](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/modules/nvme#readme) to monitor NVMe devices. + + ### Configuration |