-
Notifications
You must be signed in to change notification settings - Fork 10
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
Added support for https in expvar scraping #1213
Conversation
The mentioned PR DataDog/datadog-agent#32355 looks like it configures expvar to not use HTTPS, am I missing other context? |
This line I believe configures the expvar endpoint to be https. It turns out that the mentioned PR is most likely the root cause of the two other issues I have investigated in these two notebooks: 1 2. I also ssm'd into a machine to verify that expvars are only accessible over https not http So in summary the next agent release will require us to configure the expvar path in |
@cmetz100 Ah, I follow now. I misunderstood the changes in that PR, thanks for the explanation. |
Signed-off-by: Caleb Metz <[email protected]>
Signed-off-by: Caleb Metz <[email protected]>
Signed-off-by: Caleb Metz <[email protected]>
a65c8e7
to
baeda34
Compare
Signed-off-by: Caleb Metz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Worth a small changelog entry I think, but fine as-is, up to you
Agreed, I will add that now |
Signed-off-by: Caleb Metz <[email protected]>
What does this PR do?
Adds support for https requests for scraping expvar. Currently I am allowing any certificate with no tls verification. This is most definitely a bad practice in general. For this specific use case it may be fine. After testing this I should be able to pass in the pem path used for tls validation if we dont want to allow any certificate.
Motivation
Error seen in this notebook
Update as of Jan 22:
The change to set trace agents debug endpoint to https has been reverted for now so this change is not needed yet.
Update as of Jan 29:
The change has landed. These errors will be present from now. I need to update expvar endpoint for quality gates in agent repo and finish this change and get a lading release out
Testing:
job_id:03321fcd-6cdb-45ee-b07d-0ca48e4848d0
-
quality_gate_idle
has expvar configured for https-
quality_gate_all_features
has expvar configured for http-
quality_gate_logs
has no expvar configuredI expect to see the following:
quality_gate_idle
=> no errors (logs)quality_gate_idle
=> cant get expvar endpoint since we are sending request to https port and 7.58 will expose over http (logs)quality_gate_all_features
=>Http request sent to an https server
error (logs)quality_gate_all_features
=> no errors (logs)SMPTNG-587