-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL/TLS Encryption Support #393
Comments
Nice, can you make a PR for it? Your commit looks cool, thanks for contrib ;) |
It is part of prometheus exporter-toolkit Usual change is aabout using web.Listen instead of server.Listen. import (
...
"github.com/prometheus/exporter-toolkit/web")
...
webcfgFile = cmdLine.String("web.config", "", "Path to config yaml file that can enable TLS or authentication.")
....
web.ListenAndServe(server, *webcfgFile, logger); err != nil { ...
``` |
Well, still waiting for prometheus/exporter-toolkit#151 to avoid blocking |
Oh, so are you suggesting that we should use the exporter-toolkit approach? Seems cool, @kuskoman could you please check this out? |
@satk0 you can research it. for v2 it should not be a problem, just try not to break hot reload (if you want to do that) |
@chanyongkit @michael-doubez I checked out this library and it is not a stable one and would break existing behaviour for v1. I don't see any possibility of implementing it for v1. It also relies on its own config file, while the convention for v1 was to use environment variables. I can consider using it for v2 in the future, but currently it seems to be lacking documentation, so I am waiting for it to be more mature to reconsider it. |
i actually misunderstood the context, @chanyongkit feel free to create a PR with this kind of configuration. as long as we don't break or change existing functionality this seems fine |
Feature Description
Implement SSL Encryption for the endpoints exposed to Prometheus. This feature would include the ability to configure CA certs and optionally enable SSL/TLS.
Implementation: chanyongkit@3f7679a
Version of logstash-exporter this feature request applies to
v1
Motivation and Goals
Due to certain regulatory reasons I'm unable to use reverse proxy and hence need an OOTB solution to encrypt traffic to Prometheus.
Alternatives Considered
Additional Context
No response
The text was updated successfully, but these errors were encountered: