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

prometheus: add support for prometheus.io/scheme #22628 #25163

Merged
merged 2 commits into from Apr 26, 2024

Conversation

L3n41c
Copy link
Member

@L3n41c L3n41c commented Apr 26, 2024

What does this PR do?

Resolve conflicts of the external contribution #22628

Motivation

Fixes DataDog/integrations-core#16751

Additional Notes

While this PR adds support for the prometheus.io/scheme: https annotation, I cannot see any mechanism to pass custom TLS certificates.
So, this may be useful only if either the scraped service uses certificates signed by well known CA or if the agent skips certificate validity check.

Possible Drawbacks / Trade-offs

Describe how to test/QA your changes

Prometheus auto-discovery is covered by e2e tests: https://github.com/DataDog/test-infra-definitions/blob/c757089e5a234e488358c0b7a140485e259e1dca/components/datadog/apps/prometheus/k8s.go#L56 &

func (suite *k8sSuite) TestPrometheus() {

@pr-commenter
Copy link

pr-commenter bot commented Apr 26, 2024

Test changes on VM

Use this command from test-infra-definitions to manually test this PR changes on a VM:

inv create-vm --pipeline-id=32993015 --os-family=ubuntu

@L3n41c
Copy link
Member Author

L3n41c commented Apr 26, 2024

/merge

@dd-devflow
Copy link

dd-devflow bot commented Apr 26, 2024

🚂 MergeQueue

Pull request added to the queue.

This build is next! (estimated merge in less than 47m)

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit c0612a0 into main Apr 26, 2024
233 checks passed
@dd-mergequeue dd-mergequeue bot deleted the lenaic/rebase_pr_22628 branch April 26, 2024 13:31
GustavoCaso pushed a commit that referenced this pull request Apr 26, 2024
Co-authored-by: Mstrodl <ipadlover8322@gmail.com>
alexgallotta pushed a commit that referenced this pull request May 9, 2024
Co-authored-by: Mstrodl <ipadlover8322@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prometheus autodiscovery not using HTTPS
3 participants