Skip to content

Commit

Permalink
Update cadvisor-config.md (#6024)
Browse files Browse the repository at this point in the history
adding more details about label formats for the `store_container_labels` and `allowlisted_container_labels` parameters

This was requested in this escalation: grafana/support-escalations#5770

Co-authored-by: Clayton Cornell <[email protected]>
  • Loading branch information
annelaurefroment and clayton-cornell authored Jan 8, 2024
1 parent 2afa3ed commit 631378e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: <boolean> | 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:
[ - <string> ]

Expand Down

0 comments on commit 631378e

Please sign in to comment.