-
Notifications
You must be signed in to change notification settings - Fork 821
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
Create a PullController for metrics #796
Comments
I would like to take this issue up if that's fine |
@Bhargavamacha It is ! Don't hesitate to ping us on gitter or here if you have any questions or need help :) |
Sure! |
I am trying to understand how exactly the PullController should work and this is how I think the flow goes: |
@Bhargavamacha any update here? |
I am still trying to understand how it should be implemented, but I couldn't really solve the question in the previous comment. Any help would be appreciated. |
Controllers are constructed with a meter and an exporter. What I would do is add an optional function to the exporter interface called |
@Bhargavamacha does that make sense to you? |
Yup. Thanks! |
@Bhargavamacha any update here? |
With #1017, I believe PullController can be left to users (who do the actual pulling) to implement it since it will be very straightforward to do it. There is no meaningful reason to add a default PullController since the actual pulling strategies vary across use cases. |
The reason to add a pullcontroller is that prometheus polls an endpoint, and it would be ideal for that endpoint to be updated on each poll rather than on a schedule |
Previous SDK. No longer applies |
…ped handler (open-telemetry#796) Co-authored-by: Gerhard Stöbich <[email protected]> Co-authored-by: Daniel Dyla <[email protected]>
Currently we only implement the
PushController
, but we would also like aPullController
for cases like prometheus where the exporter is called by the backend.The text was updated successfully, but these errors were encountered: