-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(prometheus): update prometheus remote protocol #17814
feat(prometheus): update prometheus remote protocol #17814
Conversation
7d98e3f
to
f56d389
Compare
@dgnorton could you take a look? |
@foobar is this the reason why currently remote read from influxdb is not working? |
Sorry I may not get you correctly but currently it is working well. This PR just updates the remote read protocol-bufffer message to alight with prometheus code. |
f56d389
to
a82b611
Compare
eda1ea1
to
702104d
Compare
@timhallinflux could you please get this reviewed? |
e3deb8d
to
5074b30
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.
@foobar when I change only github.com/prometheus/client_golang v1.5.1
, the diff is much simpler than what I see in this PR (go.mod gets one other dependency updated). Can you share a link to the dependency change that you would like to import?
Perhaps indicate which change in this changelog you're interested in? |
c498484
to
884e245
Compare
The change i made is just adding the following line, but go mod needs to get the dependency updated.
|
This still leaves me confused. When I add
Have you tested this PR? If it adds the streaming functionality you're looking for, then it is a side effect of what else is added because of prometheus/prometheus. Or I'm wrong, and maybe you can help me understand what's going on here. Also, can you provide a quick way for me to test whether the streaming feature is working? I would like to pull the branch down and test myself before we get to merging this change. |
thanks @jacobmarble for looking into this.
what being used is a package from github.com/prometheus/prometheus (github.com/prometheus/prometheus/prompb itself is not a module)
It does introduce dependencies change because prometheus also depends on them and uses some newer versions of those dependencies. I think this is required by go module(golang/go#31578)
This PR doesn't make the streaming/chunked read work by itself. It just pulls in the latest remote read protobuffer which supports streaming read: With this pr, we can implement chunked response, but with a new PR. |
Helps #18528 This change bumps a couple of dependencies to prepare for something like #17814 which updates many dependencies at once. Turns out that change is based on an old commit, so several things have already been updated. After this, we should do a separate commit to update prometheus per #18528
Helps #18528 This change bumps a couple of dependencies to prepare for something like #17814 which updates many dependencies at once. Turns out that change is based on an old commit, so several things have already been updated. After this, we should do a separate commit to update prometheus per #18528
Update some dependencies to align with module prometheus/promethues which will be need by influxdata#17814.
Helps #18528 This change bumps a couple of dependencies to prepare for something like #17814 which updates many dependencies at once. Turns out that change is based on an old commit, so several things have already been updated. After this, we should do a separate commit to update prometheus per #18528
Helps #18528 This change bumps a couple of dependencies to prepare for something like #17814 which updates many dependencies at once. Turns out that change is based on an old commit, so several things have already been updated. After this, we should do a separate commit to update prometheus per #18528
Helps #18528 This change bumps a couple of dependencies to prepare for something like #17814 which updates many dependencies at once. Turns out that change is based on an old commit, so several things have already been updated. After this, we should do a separate commit to update prometheus per #18528
Update some dependencies to align with module prometheus/promethues which will be need by influxdata#17814.
Fetched up-to-date protocol from prometheus project
884e245
to
fc6edb1
Compare
@foobar I'm taking a final look at this today, plan to merge tomorrow. |
I have built this PR locally, and checked the results from the /metrics endpoint. Things look very much the same there. 👍 |
This PR updates prometheus remote api to latest version which supports streamed read. It imports prometheus package directly instead of making a copy.
This change will lay the groundwork for #18528.