chore: use two space indentation for toml
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2021-06-05 16:32:14 +02:00
parent 5f3e9b2efc
commit 1dd4043ae3
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 43 additions and 43 deletions

View File

@ -2,59 +2,59 @@
{{ ansible_managed | comment }} {{ ansible_managed | comment }}
[agent] [agent]
interval = "{{ telegraf_interval }}" interval = "{{ telegraf_interval }}"
round_interval = {{ telegraf_round_interval | lower }} round_interval = {{ telegraf_round_interval | lower }}
metric_batch_size = {{ telegraf_metric_batch_size }} metric_batch_size = {{ telegraf_metric_batch_size }}
metric_buffer_limit = {{ telegraf_metric_buffer_limit }} metric_buffer_limit = {{ telegraf_metric_buffer_limit }}
collection_jitter = "{{ telegraf_collection_jitter }}" collection_jitter = "{{ telegraf_collection_jitter }}"
flush_interval = "{{ telegraf_flush_interval }}" flush_interval = "{{ telegraf_flush_interval }}"
flush_jitter = "{{ telegraf_flush_jitter }}" flush_jitter = "{{ telegraf_flush_jitter }}"
precision = "{{ telegraf_precision | default('') }}" precision = "{{ telegraf_precision | default('') }}"
debug = {{ telegraf_debug | lower }} debug = {{ telegraf_debug | lower }}
quiet = {{ telegraf_quiet | lower }} quiet = {{ telegraf_quiet | lower }}
logtarget = "{{ telegraf_logtarget }}" logtarget = "{{ telegraf_logtarget }}"
{% if telegraf_logfile is defined %} {% if telegraf_logfile is defined %}
logfile = "{{ telegraf_logfile }}" logfile = "{{ telegraf_logfile }}"
{% endif %} {% endif %}
{% if telegraf_logfile_rotation_interval | default(False) %} {% if telegraf_logfile_rotation_interval | default(False) %}
logfile_rotation_interval = "{{ telegraf_logfile_rotation_interval }}" logfile_rotation_interval = "{{ telegraf_logfile_rotation_interval }}"
{% endif %} {% endif %}
{% if telegraf_logfile_rotation_max_size | default(False) %} {% if telegraf_logfile_rotation_max_size | default(False) %}
logfile_rotation_max_size = "{{ telegraf_logfile_rotation_max_size }}" logfile_rotation_max_size = "{{ telegraf_logfile_rotation_max_size }}"
{% endif %} {% endif %}
{% if telegraf_logfile_rotation_max_archives | default(False) %} {% if telegraf_logfile_rotation_max_archives | default(False) %}
logfile_rotation_max_archives = {{ telegraf_logfile_rotation_max_archives }} logfile_rotation_max_archives = {{ telegraf_logfile_rotation_max_archives }}
{% endif %} {% endif %}
hostname = "{{ telegraf_hostname }}" hostname = "{{ telegraf_hostname }}"
omit_hostname = {{ telegraf_omit_hostname | lower }} omit_hostname = {{ telegraf_omit_hostname | lower }}
{% if telegraf_global_tags | length > 0 %} {% if telegraf_global_tags | length > 0 %}
[global_tags] [global_tags]
{% for tag in telegraf_global_tags %} {% for tag in telegraf_global_tags %}
{{ tag.key }} = "{{ tag.value }}" {{ tag.key }} = "{{ tag.value }}"
{% endfor %} {% endfor %}
{% endif %} {% endif %}
[[outputs.prometheus_client]] [[outputs.prometheus_client]]
listen = "{{ telegraf_prometheus_bind_ip }}:{{ telegraf_prometheus_bind_port }}" listen = "{{ telegraf_prometheus_bind_ip }}:{{ telegraf_prometheus_bind_port }}"
basic_username = "{{ telegraf_prometheus_username }}" basic_username = "{{ telegraf_prometheus_username }}"
basic_password = "{{ telegraf_prometheus_password }}" basic_password = "{{ telegraf_prometheus_password }}"
ip_range = [] ip_range = []
{% if telegraf_prometheus_tls_enabled | bool %} {% if telegraf_prometheus_tls_enabled | bool %}
tls_cert = "{{ telegraf_prometheus_tls_cert_path }}" tls_cert = "{{ telegraf_prometheus_tls_cert_path }}"
tls_key = "{{ telegraf_prometheus_tls_key_path }}" tls_key = "{{ telegraf_prometheus_tls_key_path }}"
{% endif %} {% endif %}
export_timestamp = false export_timestamp = false
{% if (telegraf_processors + telegraf_processors_extra) | length > 0 %} {% if (telegraf_processors + telegraf_processors_extra) | length > 0 %}
{% for item in (telegraf_processors + telegraf_processors_extra) %} {% for item in (telegraf_processors + telegraf_processors_extra) %}
[[processors.{{ item.plugin }}]] [[processors.{{ item.plugin }}]]
{% if item.config is defined and item.config is iterable %} {% if item.config is defined and item.config is iterable %}
{% for item in item.config %} {% for item in item.config %}
{{ item }} {{ item }}
{% endfor %} {% endfor %}
{% else %} {% else %}
# no configuration # no configuration
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
@ -63,14 +63,14 @@
[[aggregators.{{ item.plugin }}]] [[aggregators.{{ item.plugin }}]]
{% if item.period | default(False) %} {% if item.period | default(False) %}
period = "{{ item.interval }}s" period = "{{ item.interval }}s"
{% endif %} {% endif %}
{% if item.config is defined and item.config is iterable %} {% if item.config is defined and item.config is iterable %}
{% for item in item.config %} {% for item in item.config %}
{{ item }} {{ item }}
{% endfor %} {% endfor %}
{% else %} {% else %}
# no configuration # no configuration
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
@ -79,14 +79,14 @@
[[inputs.{{ item.plugin }}]] [[inputs.{{ item.plugin }}]]
{% if item.interval | default(False) %} {% if item.interval | default(False) %}
interval = "{{ item.interval }}s" interval = "{{ item.interval }}s"
{% endif %} {% endif %}
{% if item.config is defined and item.config is iterable %} {% if item.config is defined and item.config is iterable %}
{% for item in item.config %} {% for item in item.config %}
{{ item }} {{ item }}
{% endfor %} {% endfor %}
{% else %} {% else %}
# no configuration # no configuration
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}