Hello,
I want to use the
Disk Input Plugin
to monitor the disk usage (size) of my opt folder and all the folders under (i use the folder and subfolders for persistent storage for my docker containers)
Here is my docker compose for telegraf: (note that I am also using it to monitor my containers)
but when run the container, I don’t see my /opt folder in the path Tag?
image1749×760 62.2 KB
The disk plugin will report stats on various mount points, not individual folders. Unless /opt is a specific mount from a different disk or partition, it will not show up.
As the readme states, the data is generally derived from /proc/self/mounts or even running the mounts command will get you a list of all the possible devices the plugin can monitor.