Replies: 1 comment 2 replies
-
In ServiceMonitor Endpoint you can add basicAuth and/or tlsConfig. Sth like:
Alternatively with basicAuth:
*_REF follows spec of https://v1-17.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#secretkeyselector-v1-core For additional data you can check prometheus-operator API docs for ServiceMonitorin in https://github.com/prometheus-operator/prometheus-operator/blob/master/Documentation/api.md#servicemonitor |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i would like to secure my external node-exporter with tls and authentication, so that in my network, not everyone is able to access the metrics exposed by the node-exporter.
on prometheus side i have service, Servicemonitor and endpoint:
on the external node-exporter i have the web.yml with the generated crt and key file and the password generated with htpasswd.
I can use the self-generated certificate by using insecureSkipVerify: true.
if i enable basic_auth_users with the user: prometheus and password, it works when i try to access the node-exporter and enter the user/password.
But how to implement the basic_auth into yaml to create the credential / or what is the correct command.?
Is there any better way to secure the external node-exporter, if prometheus is deploy with helm?
thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions