The real question is, are those metrics even useful? Maybe, but imo not very likely. If you really want to run things inside a container, you can essentially shell out to docker exec from sensu or parse something like:
sudo docker stats --no-stream (I’m guessing this is even available via the API somewhere)
OR checkout https://github.com/sensu-plugins/sensu-plugins-docker, which includes a few metric scripts.
On Mon, Jun 20, 2016 at 5:04 AM, email@example.com wrote:
Does anybody uses the memory, cpu , network plugins to gather metrics from sensu? It was my understanding that inside a container we cannot have does kind of metrics because they are low level information shared from the linux host. Does anybody knows of a way to gather metrics from inside a docker container with a sensu client and sensu checks system?