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

Feature Request: UI option to specify time for evaluation #1246

Closed
bluecmd opened this Issue Nov 30, 2015 · 8 comments

Comments

Projects
None yet
@bluecmd
Copy link
Contributor

bluecmd commented Nov 30, 2015

When I want to look at past data in Prometheus I usually use PromDash's "Until" UI option. That said, I prefer using Prometheus for experimentation. I usually end up just doing "X offset 1w", but when I want to look at a certain date that's quite painful as this is not static, while the time window I want to examine is.

The API already has a time= option, so this should just be a UI feature unless I'm missing something.

It would be nice if both relative and absolute times were supported ("2015-06-01 11:00:00" and "2 days ago").

@grobie

This comment has been minimized.

Copy link
Member

grobie commented Feb 22, 2016

👍 This would help a lot, as range queries can be very expensive for certain data sets.

@yamatoya

This comment has been minimized.

Copy link
Contributor

yamatoya commented Oct 8, 2017

I want to work.
I am thinking of two solutions. Which is better? or is there a more better solution ?

  1. change ui from until field to from field.
    image
  2. change ui like grafana
    image
@grobie

This comment has been minimized.

Copy link
Member

grobie commented Oct 8, 2017

Cool, thank you!

We should keep the option to specify a relative time range, as that's easier when you want to take a quick look. I find Grafana a bit too much and I don't find the order of the quick ranges intuitive. Hiding some of the options in a drop down like grafana does it could be helpful. I guess we should separate the "stacked" button from the time options, at least with a vertical break line or some space. I don't have a good suggestion on the design besides that.

Regarding my older comment, I think I misunderstood the request back then to add a time option to the console view as well. Would be great though.

@SuperQ

This comment has been minimized.

Copy link
Member

SuperQ commented Jul 18, 2018

Similar, it would be nice to have a time picker in the "Console" view.

time-picker

@kdada

This comment has been minimized.

Copy link
Contributor

kdada commented Oct 19, 2018

Anything updated?

I think a time picker for console is useful. It is not only for querying in ui, but also support alerting callback.

If we received an alert from prometheus/alertmanager, we click generatorURL to redirect to prometheus ui. But sometimes we find nothing in Console because the alert has been resolved.

So if prometheus ui supports g0.time=xxxx and a time picker, it will be more friendly to users.

@grobie

This comment has been minimized.

Copy link
Member

grobie commented Oct 19, 2018

@kdada We all agree. Feel free to open a pull request :-)

@kdada

This comment has been minimized.

Copy link
Contributor

kdada commented Oct 19, 2018

@grobie I'm working on it.

@vn-ki

This comment has been minimized.

Copy link
Contributor

vn-ki commented Jan 14, 2019

I think this can be closed as #4764 is merged.

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