blob: 954698cc3b961b770952c228288d378937489d0b [file] [log] [blame]
[[inputs.http_response]]
{%- include 'telegraf/files/input/_common.conf' %}
{%- for endpoint, parameters in values.iteritems() %}
{%- if parameters.address is defined %}
[[inputs.http_response.checks]]
name = "{{ endpoint }}"
{%- for parameter_name, parameter_value in parameters.iteritems() %}
{{ parameter_name }} = {%- if parameter_name == "follow_redirects" %} {{ parameter_value }}{%- else %} "{{ parameter_value }}"{%- endif %}
{%- endfor %}
{%- endif %}
{%- endfor %}
{%- include 'telegraf/files/input/_filters.conf' %}