[docker] container & volume metrics (wraps #2740)#3077
Conversation
c424a15 to
839d020
Compare
|
test failure unrelated |
parkr
left a comment
There was a problem hiding this comment.
Looks good! Thanks for picking this up.
If there is no way to test this on Travis, were you able to get tests for the daemon working locally?
|
@parkr yes i tested it locally. Testing it on travis would require sudo and docker, but to speed up tests we're using their container infrastructure which doesn't support sudo and DinD (wise decision, but painful here). |
|
@hkaj Hey! Anything I can do to help get this past the finish line? |
|
Tried this on a host with 5.10.1 installed: |
|
@parkr: did you set |
No, I never set |
- collect_exited_container_count: gauge of how many containers have State=Exited - collect_dead_container_count: gauge of how many containers have State=Dead - collect_container_count: gauge of how many containers there are - collect_volume_count: gauge of how many volumes there are - collect_dangling_volume_count: gauge of how many dangling volumes there are
839d020 to
6604186
Compare
|
@hush-hush i rebased it, can you have a look please? |
checks.d/docker_daemon.py
Outdated
| if 'Size' in image: | ||
| self.gauge('docker.image.size', image['Size'], tags=tags) | ||
| except: | ||
| import ipdb;ipdb.set_trace() |
There was a problem hiding this comment.
This should be on 2 line (that why the CI flake8 tests are falling). End I'm not sure we want to keep it, looks a lot like some debug lines.
| ['Metadata Space Available', '9 MB'], | ||
| ['Metadata Space Total', '10 MB'], | ||
| ['Metadata Space Used', '11 MB'], | ||
| ['Metadata Space Available', '0 MB'], |
There was a problem hiding this comment.
why do we set values to 0 ? Doesn't that broke test_devicemapper_invalid_values test ?
6604186 to
6923524
Compare
|
🎉 Thank you, all! |
|
Thank you @parkr 🍰 |
|
@hkaj Thank you for following up and writing the tests. And for ensuring it got reviewed and merged eventually. 😄 Will this make it into a release in the coming week(s)? |
|
5.11 is dedicated to releasing the new APM agent so we won't release any change from dd-agent then, but 5.12 will follow soon after. |
Based on the great work of @parkr in #2740
and