I'm trying to setup the logging agent for StackDriver on a cos image but its reporting its an unsupported system. My thought is to create a "sidecar" container similar to how an AppEngine Flexible VM would bring its logs into stackdriver, however there is very little guidance on how to achieve this and the container images used by google via the gcr.io/ URLs aren't well documented (or even supposed to be used outside of Google?)
Does anyone have suggestions on how to do this? I'd like to be able to monitor and alert on certain logs my nginx container outputs as well as view the logs of the host VM itself.
For now, I have logs from my nginx container going to StackDriver Logging by utilizing the --log-driver=gcplogs
flag on my docker run
command.