fluent-plugin-prometheus icon indicating copy to clipboard operation
fluent-plugin-prometheus copied to clipboard

SSL/TLS encryption support for prometheus plugin

Open mrudrego opened this issue 7 years ago • 5 comments

fluent-plugin-prometheus currently does not support SSL/TLS encryption. Is there a plan to include SSL/TSL support?

Thanks in advance, Mahesh

mrudrego avatar Mar 16 '18 12:03 mrudrego

We also need this future. Is any plan in the near future? Really it will helpful if we add this future.

ysundar avatar Apr 23 '18 12:04 ysundar

I don't have a plan to support TLS by this plugin self. IMO, TLS termination should be done by other middleware such as nginx. If you run fluentd inside container, you can use nginx as sidecar.

kazegusuri avatar Apr 30 '18 07:04 kazegusuri

@kazegusuri thanks for the reply. It would be very helpful if you can give little more detail on how TLS for prometheus plugin can be achieved by using nginx. Thanks,

mrudrego avatar Apr 30 '18 09:04 mrudrego

First of all, you want to encrypt communication from Prometheus to this plugin to fetch metrics, is that right? in_prometheus plugin exposes endpoint for Prometheus like http://127.0.0.1::24231/metrics . So like normal web application, you can run nginx in front of the endpoint, and the nginx proxies request to backend. Then, you configure Prometheus to fetch metrics from nginx endpoint.

kazegusuri avatar Apr 30 '18 11:04 kazegusuri

Looks like ssl encrption is supported with latest version. Could you please add ssl properties in this document So we can close this ticket

ysundar avatar Nov 21 '18 13:11 ysundar