Merge "Configure Telegraf to monitor Docker containers"

This commit is contained in:
Zuul 2019-08-14 14:00:17 +00:00 committed by Gerrit Code Review
commit 17029c7e71
3 changed files with 27 additions and 0 deletions

View File

@ -1063,3 +1063,10 @@ distro_python_version_map: {
}
distro_python_version: "{{ distro_python_version_map[kolla_base_distro] }}"
##########
# Telegraf
##########
# Configure telegraf to use the docker daemon itself as an input for
# telemetry data.
telegraf_enable_docker_input: "no"

View File

@ -108,3 +108,16 @@
gather_perf_events_statements = true
interval_slow = "30m"
{% endif %}
{% if telegraf_enable_docker_input | bool %}
[[inputs.docker]]
endpoint = "unix:///var/run/docker.sock"
gather_services = false
container_names = []
container_name_include = []
container_name_exclude = []
timeout = "5s"
perdevice = true
total = false
docker_label_include = []
docker_label_exclude = []
{% endif %}

View File

@ -585,3 +585,10 @@
# by kolla-ansible. You must first setup an external elasticsearch with 2.3.0.
# By default, kolla-ansible deployed mariadb is the used database backend.
#freezer_database_backend: "mariadb"
##########
# Telegraf
##########
# Configure telegraf to use the docker daemon itself as an input for
# telemetry data.
#telegraf_enable_docker_input: "no"