Merge "Extend template for telegraf input plugin conf file"
diff --git a/nginx/files/telegraf.conf b/nginx/files/telegraf.conf
index 2a5ad25..4f95b92 100644
--- a/nginx/files/telegraf.conf
+++ b/nginx/files/telegraf.conf
@@ -1,2 +1,7 @@
[[inputs.nginx]]
- urls = {%- if values.urls is string %}[ "{{ values.urls }}" ]{%- else %}{{ values.urls|json }}{%- endif %}
+ {%- include 'telegraf/files/input/_common.conf' %}
+ urls = {% if values.urls is string %}[ "{{ values.urls }}" ]{%- else %}{{ values.urls|json }}{%- endif %}
+ {%- if values.response_timeout is defined %}
+ response_timeout = "{{ values.response_timeout }}"
+ {%- endif %}
+ {%- include 'telegraf/files/input/_filters.conf' %}