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

Provide start+end parameters in /api/v1/series #1542

Closed
grobie opened this Issue Apr 9, 2016 · 4 comments

Comments

Projects
None yet
5 participants
@grobie
Copy link
Member

grobie commented Apr 9, 2016

When using dashbords with template variables, e.g. in Grafana, it makes sense to only list labels available in the selected dashboard time range. At the moment /api/v1/series will always return all possible values over the lifetime of a metric:

model.Earliest, model.Latest, // Get every series.

I suggest to offer optional start and end parameters similar to the interface of /api/v1/query_range to specify the time range.

@mtanda

@gfliker

This comment has been minimized.

Copy link

gfliker commented Apr 26, 2016

+1 for this feature.

@mtanda

This comment has been minimized.

Copy link
Contributor

mtanda commented Apr 27, 2016

I want this feature too.
With Grafana templated dashboard, we can make dashboard for the hosts which alive in the time period.

juliusv added a commit that referenced this issue May 12, 2016

Support time range in /api/v1/series endpoint.
This adds optional "start" and "end" form values that may be used to
restrict the time range of returned series.

Fixes #1542

@fabxc fabxc closed this in #1625 May 12, 2016

@jimmidyson

This comment has been minimized.

Copy link
Member

jimmidyson commented May 12, 2016

Fantastic! Thanks @juliusv!

simonpasquier pushed a commit to simonpasquier/prometheus that referenced this issue Oct 12, 2017

Document time range parameters to /api/v1/series
start and end parameters were added to the series API endpoint in prometheus#1625 (see prometheus#1542). This updates the online documentation to document this extremely useful feature
@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.