-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Metricbeat docker diskio module bug #5568
Comments
@kwojcicki Thanks for reporting. Please open a PR for this. I recommend starting with a PR for master and we can backport it from there. |
Sounds good. I was having some issues pushing to the elastic beats, git was complaining about some 403 error? Probably not the best place to ask this but if you have had any experience with dealing with that issue would be helpful 😄 |
You'll need to create a fork, push the changes to your fork, then open a PR from your fork to this repo. |
will this be merged into a 5.x release? |
Once PR 5582 closes I can look into making a PR for 5.5 or 5.6 shouldnt require any extra effort to back port. |
* Fixed docker diskio bug due to reseting of map. Fixes elastic#5568
* Fixed docker diskio bug due to reseting of map. Fixes elastic#5568
…ic#5698) * Fixed docker diskio bug due to reseting of map. Fixes elastic#5568
Any with docker diskio module
Any
Start 2+ containers check the docker diskio statistics pushed. The stats will always be 0 due to a bug in the code.
There is a bug in /metricbeat/module/docker/diskio/help.go that resets the map of containers if a old stats for a container arent found.
If there are 2+ containers then the map will be reset over and over again ie:
getBlkioStats gets called for first container
old stats for first container dont exist, map reset, container1 placed into map
getBlkioStats gets called for second container
old stats for second container dont exist, map resets, container2 placed into map
rinse and repeat. I have a code fix + tests not sure if I should push into master or into a lower release and cherry pick into higher releases as well.
The text was updated successfully, but these errors were encountered: