Description
Hi,
now that i have cadvisor up and running through marathon I'm getting data into the influxdb.
The problem that I'm facing is that I don't know which app is under docker name.
Let me try to explain:
When marathon starts a docker it gives him a name for example
for cadvisor it's named mesos-3deefa59-6981-4069-8c74-911aead8b396
As you can see in the screenshot I have 2 nginx images also started and they have completely different names.
In the influxdb I cannot differentiate/group by apps since they are presented as mesos name.
Now, Marathon passes some environment variables into the started dockers which could be used to group it.
"MARATHON_APP_VERSION=2015-02-27T13:38:50.135Z",
"HOST=10.0.0.193",
"MESOS_TASK_ID=nginx2.f726a4c5-be85-11e4-82c2-56847afe9799",
"PORT=31005",
"PORTS=31005",
"PORT_80=31005",
"MARATHON_APP_ID=/nginx2",
"PORT0=31005",
"MESOS_SANDBOX=/mnt/mesos/sandbox",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NGINX_VERSION=1.7.10-1~wheezy"
those filelds are located in the docker dir config.json and should be accessible by cadvisor.
Question is would it be wise to also sent MARATHON_APP_ID into the influxdb in order to group stats by app ?
Or How would this be approached correctly ?