Skip to content
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

Using TLS #245

Open
markustoivonen opened this issue Dec 13, 2024 · 2 comments
Open

Using TLS #245

markustoivonen opened this issue Dec 13, 2024 · 2 comments
Labels

Comments

@markustoivonen
Copy link

Hi!

I am trying to enable TLS on my memcached-exporter with the flag

--no-memcached.tls.enable

However my logs are still outputting:

TLS is disabled.

I am also passing the cert-file, ca-file and key-file arguments, and my memcached instance is also configured to use TLS.

What might I be doing wrong here?

@matthiasr
Copy link
Contributor

Try --memcached.tls.enable (without the no-). The flag library we use supports the --no- form for boolean flags to turn them off, so by passing this flag you are explicitly disabling TLS.

@Kashiblood
Copy link

From what I remember when doing some testing, the --memcached.tls.enable flag is for the exporter -> memcached connection, but this TLS is disabled. log is referring to TLS on the HTTP/HTTPS endpoint that the exporter is serving the metrics on. When setting that up with --web.config.file the log should say TLS is enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants