blob: 0a9bffd0ea2672dae3fc7296d6228ddc6c50ec5f [file] [log] [blame]
{% from "fluentd/map.jinja" import agent with context %}
<source>
{% include 'fluentd/files/input/_general.conf' %}
{%- if values.port is defined %}
port {{ values.port }}
{%- endif %}
{%- if values.bind is defined %}
bind {{ values.bind }}
{%- endif %}
metrics_path {{ values.get("metrics_path", "/metrics") }}
{%- if values.ssl is defined and values.ssl.get("enabled") %}
<ssl>
enable true
certificate_path {{ agent.dir.config }}/fluentd-prometheus.crt
private_key_path {{ agent.dir.config }}/fluentd-prometheus.key
ca_path /etc/ssl/certs/ca-certificates.crt
</ssl>
{%- endif %}
</source>