{{ ansible_managed | comment }} [global_tags] [agent] interval = "10s" round_interval = true metric_batch_size = 1000 metric_buffer_limit = 1000000 collection_jitter = "5s" flush_interval = "10s" flush_jitter = "5s" precision = "" hostname = "{{ ansible_fqdn }}" omit_hostname = false [[outputs.influxdb]] urls = ["https://{{ minecraft_telegraf.influxdb_endpoints | join('","https://') }}"] database = "{{ minecraft_telegraf.influxdb_database }}" timeout = "5s" retention_policy = "{{ minecraft_telegraf.influxdb_retention_policy }}" retention_policy_tag = "{{ minecraft_telegraf.influxdb_retention_policy_tag }}" username = "{{ minecraft_telegraf.influxdb_username }}" password = "{{ minecraft_telegraf.influxdb_password }}" {% if minecraft_telegraf.plugins is defined and minecraft_telegraf.plugins is iterable %} {% for item in minecraft_telegraf.plugins %} [[inputs.{{ item.plugin }}]] {% if item.interval is defined %} interval = "{{ item.interval }}s" {% endif %} {% if item.config is defined and item.config is iterable %} {% for items in item.config %} {{ items }} {% endfor %} {% endif %} {% if item.tags is defined and item.tags is iterable %} [inputs.{{ item.plugin }}.tags] {% for items in item.tags %} {{ items }} {% endfor %} {% endif %} {% if item.tagpass is defined and item.tagpass is iterable %} [inputs.{{ item.plugin }}.tagpass] {% for items in item.tagpass %} {{ items }} {% endfor %} {% endif %} {% if item.tagdrop is defined and item.tagdrop is iterable %} [inputs.{{ item.plugin }}.tagdrop] {% for items in item.tagdrop %} {{ items }} {% endfor %} {% endif %} {% endfor %} {% endif %}