Merge "Unblock configuration of telegraf output generic parameters"
diff --git a/telegraf/files/output/_common.conf b/telegraf/files/output/_common.conf
new file mode 100644
index 0000000..2dbc34b
--- /dev/null
+++ b/telegraf/files/output/_common.conf
@@ -0,0 +1,9 @@
+{%- if values.flush_interval is defined %}
+flush_interval = "{{ values.flush_interval }}s"
+{%- endif %}
+{%- if values.metric_batch_size is defined %}
+metric_batch_size = {{ values.metric_batch_size }}
+{%- endif %}
+{%- if values.metric_buffer_limit is defined %}
+metric_buffer_limit = {{ values.metric_buffer_limit }}
+{%- endif %}
diff --git a/telegraf/files/output/prometheus_client.conf b/telegraf/files/output/prometheus_client.conf
index 66f106d..049ad0f 100644
--- a/telegraf/files/output/prometheus_client.conf
+++ b/telegraf/files/output/prometheus_client.conf
@@ -14,4 +14,5 @@
tls_key = "{{ values.tls_key }}"
{%- endif %}
{%- endif %}
+{%- include 'telegraf/files/output/_common.conf' %}
{%- include 'telegraf/files/input/_filters.conf' %}