cadvisor/metrics
Joseph Lorenzini 4bd335b8fd Control whether container labels are exported as prometheus metrics.
when cadvisor exports metrics for docker containers, there is a root cgroup (/) and cgroup for a docker container (/docker/uuid).
If docker container has a label on it, then this label is applied to all containers including the root container.
Because some containers don't have that label, the label will have an empty value. The reason for this is that Prometheus
does not allow sending a metric with the same name, but different labels, so cadvisor uses empty label values based on
the set of all labels for a given metric. This can result in many docker containers getting a large number of empty labels
because another container has that label.

If large number of docker labels vary a lot across images, then the set of labels will be enormous, where most of the labels
will be empty and have no value as prometheus metrics. To avoid this problem, a flag is provided that allows a user to
disable exporting docker labels as metrics.
2018-07-04 10:53:08 -05:00
..
testdata Adding /proc/<pid>/schedstat (#1872) 2018-03-08 09:27:06 -08:00
prometheus_test.go Adding /proc/<pid>/schedstat (#1872) 2018-03-08 09:27:06 -08:00
prometheus.go Control whether container labels are exported as prometheus metrics. 2018-07-04 10:53:08 -05:00