-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add disk usage to docker input plugin #13858
Comments
Hi @R290,
Are all of these actually interesting? Adding a Thanks! |
|
yes that was my proposal
I'm not sure till we see what data we get back, but either of those is what I was thinking about Is this something you want to put up a PR for? |
Yes, I'll put something together and we can go from there. |
It seems that we are using quite an old Docker api version: telegraf/plugins/inputs/docker/client.go Line 14 in 67f9a0e
Somehow, the use of |
Thanks for looking into this further. I am good with updating the version. Looking through the Engine API version docs there are quite a number of changes, but it does look like they try to keep compatability. |
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Forums or provide additional details in this issue and reqeust that it be re-opened. Thank you! |
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Forums or provide additional details in this issue and reqeust that it be re-opened. Thank you! |
The PR is still open, so no need to close the issue. |
Not sure why the bot tried closing this again :\ hopefully with us commenting on it, it will go away. |
Use Case
I'd like to be able to monitor Docker volume size over time using the Telegraf Docker input plugin.
Expected behavior
A configuration setting for setting the preferred objects to be monitored: containers / images / volumes / build cache (as defined in https://pkg.go.dev/github.com/docker/docker@v24.0.5+incompatible/api/types#DiskUsageObject)
Possibly a few additional settings to include or exclude objects based on their name, preferably with wild card support.
Actual behavior
None of the settings are available; disk usage is not implemented in the Docker input plugin.
Additional info
The Docker client of the existing plugin natively supports querying disk usage. For example, see:
This should make implementation trivial, although there needs to be agreement on the configuration scheme.
The text was updated successfully, but these errors were encountered: