From 631378ea4d768bf34f54602fabee6260d7c01df8 Mon Sep 17 00:00:00 2001 From: annelaurefroment <49911675+annelaurefroment@users.noreply.github.com> Date: Mon, 8 Jan 2024 20:46:19 +0000 Subject: [PATCH] Update cadvisor-config.md (#6024) adding more details about label formats for the `store_container_labels` and `allowlisted_container_labels` parameters This was requested in this escalation: https://github.com/grafana/support-escalations/issues/5770 Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com> --- .../static/configuration/integrations/cadvisor-config.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sources/static/configuration/integrations/cadvisor-config.md b/docs/sources/static/configuration/integrations/cadvisor-config.md index adf92dcff827..a4a33b4df219 100644 --- a/docs/sources/static/configuration/integrations/cadvisor-config.md +++ b/docs/sources/static/configuration/integrations/cadvisor-config.md @@ -60,10 +60,10 @@ Full reference of options: # cAdvisor-specific configuration options # - # Convert container labels and environment variables into labels on prometheus metrics for each container. If false, then only metrics exported are container name, first alias, and image name. + # Convert container labels and environment variables into labels on Prometheus metrics for each container. If false, then the only metrics exported are container name, first alias, and image name. `.` aren't valid in Prometheus label names, so if there are any in the container label, they will transformed to `_` when converted to the Prometheus label. [store_container_labels: | default = true] - # List of container labels to be converted to labels on prometheus metrics for each container. store_container_labels must be set to false for this to take effect. + # List of container labels to be converted to labels on Prometheus metrics for each container. store_container_labels must be set to false for this to take effect. This must match the format of the container label, not the converted Prometheus label (`.` are converted to `_` in the Prometheus label). allowlisted_container_labels: [ - ]