-
Notifications
You must be signed in to change notification settings - Fork 9
Added support for HTTPS Pushgateway endpoints #2
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
Conversation
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.
Hey @andremv,
first of all, Thank you! Good idea and a good catch. I have two smaller "issues" that should be addressed. The biggest "issue" in my mind is the miss of unit tests for the current & new behavior. We need to make sure that we don't introduce a breaking change.
Hey @andremv, thank you! I have just one small note (the doc string on the doRequest method), otherwise, it looks fine from my side. An please have a look at the DCO test: https://github.com/PromPHP/prometheus_push_gateway_php/pull/2/checks?check_run_id=1283429563 Maybe @rdohms, if you have time could you also have a fix look? |
d776824
to
34ed106
Compare
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.
LGTM thank you!
It was my pleasure @LKaemmerling! And thank you for maintaining this library. |
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.
Looks great, minor nitpick on readability.
Consideration for @LKaemmerling since we have not talked about it. My team's usual approach is to rebase and make fixes directly on the commit that introduced the code instead of adding new fix commits. Thoughts?
@rdohms yep I like that too, in most MRs I use squashing so that in the end it doesn’t matter how many commit were in the branch. @andremv your welcome! |
Signed-off-by: Andrei Moldovan <[email protected]>
287ec0d
to
3c33519
Compare
Thank you! |
This solves the issue with the Pushgateway endpoint being hardcoded to a http endpoint.
I also brought over the missing
php-fpm
directory from PromPHP/prometheus_client_php repo.