ha-dockermon
ha-dockermon copied to clipboard
Stats/logs Containers
trafficstars
hi, could it be possible to get "stats" ands logs commands for a container ? With "stats" we could monitor container through Home Assistant to get alert when CPU/memory/Network is too high.
Thanks for your amazing API :) Thomas
Ooh great idea! The stats I should be able to get, not sure about the logs.
@philhawthorne ping me if you get this working, then I can update the custom_component accordingly :)
the commando to pull the logs docker logs containername would that help to integrate the last 15 lines as output for example?