Fix auto-discovery for latest versions on Kubernetes #9578
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Leverages the
prometheus_possible_urls
parameter introduced by #9573 in the auto-discovery configuration file.Motivation
The goad is to simplify the Kubernetes control plane monitoring setup described in DataDog/documentation#10828.
Additional Notes
On older versions of Kubernetes, the etcd metrics were available at
http://%%host%%:2379/metrics
where%%host%%
is the node IP.On most recent version of Kubernetes, the etcd port is exposed only on secure
https
endpoint and requires ssl client certificate for authentication.Whereas a client can decide to ignore a server certificate validation, a client has (thankfully) no way to ask the server to ignore client certificate validation.
That’s why the client ssl certificates needed to talk to etcd will need to be mounted from the host as described in DataDog/documentation#10828.
For
etcd
, there’s unfortunately no way to make integration work out-of-the-box without any user configuration.Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attached