Add support for measurement filtering
This change adds the ability to configure the following parameters for
the input plugins: 'namepass', 'namedrop', 'fieldpass', 'fielddrop',
'tagpass' and 'tagdrop'.
Change-Id: I473a916178ec4f9ea44951975f55fff5ee68e687
diff --git a/telegraf/files/input/_filters.conf b/telegraf/files/input/_filters.conf
new file mode 100644
index 0000000..ce01d50
--- /dev/null
+++ b/telegraf/files/input/_filters.conf
@@ -0,0 +1,6 @@
+{%- for filter in ('namepass', 'namedrop', 'fieldpass', 'fielddrop', 'tagpass', 'tagdrop') %}
+{%- if values.get(filter) is not none %}
+{{ filter }} = {%- if values[filter] is string %}[ "{{ values[filter] }}" ]{%- else %}{{ values[filter]|json }}{%- endif %}
+{%- endif %}
+{%- endfor %}
+{%- include 'telegraf/files/input/_tags.conf' %}