Skip to content
Snippets Groups Projects
Unverified Commit be121642 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub
Browse files

Add option and defaults to configure metrics exporting in containerd (#5466)

* Add metrics exporting in containerd config

* Add containerd.yml with containerd configuration example to the sample group_vars
parent 58889671
No related branches found
No related tags found
No related merge requests found
---
# Please see roles/container-engine/containerd/defaults/main.yml for more configuration options
# containerd_config:
# grpc:
# max_recv_message_size: 16777216
# max_send_message_size: 16777216
# debug:
# level: ""
# registries:
# "docker.io": "https://registry-1.docker.io"
# max_container_log_line_size: -1
# metrics:
# address: ""
# grpc_histogram: false
......@@ -44,3 +44,9 @@ disabled_plugins = ["restart"]
endpoint = ["{{ addr }}"]
{% endfor %}
{% endif %}
{% if 'metrics' in containerd_config %}
[metrics]
address = "{{ containerd_config.metrics.address | default('') }}"
grpc_histogram = {{ containerd_config.metrics.grpc_histogram | default(false) | lower }}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment