|  | {% 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> |