Skip to content

Commit

Permalink
Add docs on running diskio in docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
danielnelson committed Jan 17, 2018
1 parent 7406eba commit ab47bf4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions plugins/inputs/system/DISKIO_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ The diskio input plugin gathers metrics about disk traffic and timing.
# name_templates = ["$ID_FS_LABEL","$DM_VG_NAME/$DM_LV_NAME"]
```

#### Docker container

To monitor the Docker engine host from within a container you will need to
mount the host's filesystem into the container and set the `HOST_PROC`
environment variable to the location of the `/proc` filesystem. Additionally,
it is required to use privileged mode to provide access to `/dev`.

If you are using the `device_tags` or `name_templates` options, you will need
to bind mount `/run/udev` into the container.

```
docker run --privileged -v /:/hostfs:ro -v /run/udev:/run/udev:ro -e HOST_PROC=/hostfs/proc telegraf
```

### Metrics:

- diskio
Expand Down

0 comments on commit ab47bf4

Please sign in to comment.