Configure Telegraf to monitor Docker containers
Added configuration to ansible/roles/telegraf/templates/telegraf.conf.j2 to allow telegraf to grab telemetry data from docker directly. Added option to etc/kolla/globals.yml to switch on/off the configuration to ingest data from the docker daemon into telegraf. Change-Id: Icbebc415d643a237fa128840d5f5a9c91d22c12d Signed-off-by: Keith Plant <kplantjr@gmail.com>
This commit is contained in:
parent
5c70e0a615
commit
b95ff2d1db
@ -1062,3 +1062,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"
|
||||
|
@ -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 %}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user