Browse Source
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
pull/5709/head
Kubernetes Prow Robot
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
21 additions and
0 deletions
-
inventory/sample/group_vars/all/containerd.yml
-
roles/container-engine/containerd/templates/config.toml.j2
|
|
@ -0,0 +1,15 @@ |
|
|
|
--- |
|
|
|
# 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 %} |