-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Generic HTTP sd #8839
Generic HTTP sd #8839
Conversation
3d95f7f
to
d04eaf6
Compare
As a user of Prometheus, this MR looks really useful to me. So thank you for your work already. 👍 I'm sorry, my understanding of Go is limited, so I wonder if it already allows to specify HTTP Basic Auth. The use case would be to store the config in a git repo which allows HTTPS access to Edit: I just realised, that the described use case won't work, since Github or Gitlab don't set the |
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.
Looking really good, just a few documentation things. Also, maybe we could allow the endpoint to respond with X-Prometheus-Meta-...
headers which could be added to the targets and used for relabeling.
This would break the promise that this is file_sd over http. We do not commit to anything at the HTTP level, labels can be added inside the HTTP body in a more fine-grained way. Also, when debugging, looking at headers is more complicated than body. We would also need to define an order in which they are picked if a label is defined in two places. |
Will review once I have read the design doc (which has been on my reading list for a while… 😞 ). |
Hi, |
My review capacity for this week is almost exhausted. Since I haven't even read the design doc yet, I won't be able to do a review before mid next week, realistically. I'd be happy about everyone beating me to it. Sorry… |
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.
From the Loki side, this looks great. I don't think we have a pressing need for it currently, but I like the option to plug in SD this way.
Sorry, I cannot find time for this in my budget. However, both the design doc seem to have competent reviewers. If another Prometheus team member could finalize the review here? |
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 good to me, besides a few nitty comments :)
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.
👍 🚢
Whoopsie, already approved, but the test error messages now need a fixup still (CI failing). After that it's good to go though. |
Signed-off-by: Julien Pivotto <[email protected]>
👍 |
Should we expected this functionality with v2.28 that plan to be delivered on 2021-06-16? |
Yes!
…On Tue, Jun 15, 2021, 20:50 pakita ***@***.***> wrote:
Should we expected this functionality with v2.28 that plan to be delivered
on 2021-06-16?
Thank you,
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#8839 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEDLGC26SQP2QV6QLP77ZLTS6OGFANCNFSM45BLEZ5A>
.
|
It's a very useful PR, I even did the same thing in my project |
This is early WIP based on https://docs.google.com/document/d/1tVeuzjpU4-TiYPNWJXKmcyIuZF6A2tUq270RbBT5zho/edit
The goal is to port the JSON file_sd over HTTP transport.