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

nsqadmin: dynamic graphite timeframe #649

Merged
merged 3 commits into from
Sep 22, 2015

Conversation

mreiferson
Copy link
Member

prior to #323 nsqadmin controlled the graphite integration timeframe via ?t={{timeframe}} and persisted it via cookie. Now it's persisted via browser local storage.

The benefit of the previous approach is that you were not limited to the built in timeframe selection options and could pick any supported graphite time range (ie: ?t=3weeks). This also meant you could hard link other people to view the dashboard in a specific timeframe which is helpful in troubleshooting in a group setting.

I think we should add the ability to select a custom timeframe (ie: a new 'other' option in the dropdown that presents a free form selection) and possibly add back the ability to pick up the timeframe option when present as a query parameter

cc: @mreiferson

@jehiah jehiah added the feature label Sep 17, 2015
@mreiferson
Copy link
Member

Makes sense 👍

@@ -10,9 +10,9 @@
"handlebars": "1.3.0",
"hbsfy": "1.3.2",
"browserify": "4.1.9",
"gulp-sass": "0.7.1",
"gulp-sass": "2.0.4",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I had updated node at some point and this old version of gulp-sass wasn't working.

@mreiferson
Copy link
Member

updated @jehiah

@mreiferson
Copy link
Member

(I haven't actually tested this 😁)

@mreiferson
Copy link
Member

Pushed another tweak to prefix the timeframes for the graphite URLs with -

@jehiah
Copy link
Member Author

jehiah commented Sep 22, 2015

@mreiferson I had to require('underscore') but this seems to work as expected.

@mreiferson
Copy link
Member

updated/squashed

jehiah added a commit that referenced this pull request Sep 22, 2015
nsqadmin: dynamic graphite timeframe
@jehiah jehiah merged commit 2a8dab2 into nsqio:master Sep 22, 2015
@mreiferson mreiferson deleted the query_timeframe_649 branch September 22, 2015 20:05
@mreiferson mreiferson modified the milestone: nsqadmin refactoring Sep 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants