Skip to content
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

Add WithQueryStats option #1035

Closed
wants to merge 1 commit into from
Closed

Commits on Apr 22, 2022

  1. Add WithQueryStats option

    prometheus/prometheus#10369 was part of v2.35.0 release and it exposes more stats.
    There's currently no way to access those stats since Query() and RangeQuery() returns only a subset of Prometheus API response.
    To avoid bloating Query() return values I'm adding this as a new Option where you can pass a pointer to a QueryStats struct that will hold all recorded stats,
    instead of adding another return value.
    
    Signed-off-by: Lukasz Mierzwa <l.mierzwa@gmail.com>
    prymitive committed Apr 22, 2022
    Copy the full SHA
    b8a8a7b View commit details
    Browse the repository at this point in the history