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 a way to navigate to older data from the web interface #18

Open
DeflateAwning opened this issue Feb 24, 2021 · 6 comments
Open

Add a way to navigate to older data from the web interface #18

DeflateAwning opened this issue Feb 24, 2021 · 6 comments

Comments

@DeflateAwning
Copy link

It would be great if there was a way to look at older data in the system by using a sort of horizontal scroll bar to change the timeframe. What complexity is involved in adding something like that?

@fazalmajid
Copy link
Owner

Actually you can scroll to the left of the date range (at least I can on my iPad), but the code to refresh it isn’t working. I’ll see what the issue is.

@DeflateAwning
Copy link
Author

Wondering if there are any updates on this issue? Thanks!

@fazalmajid
Copy link
Owner

Unfortunately I don't have any free time to spend on this at the moment, maybe in a couple of weeks.

You could try temporarily starting pingwatch with a longer display time range, e.g. pingwatch -display 14400h (600 days) then zoom in on the region of interest

@fazalmajid
Copy link
Owner

OK, so it doesn't seem like there is a Dygraphs callback for when you pan outside the range, which makes what I described above hard (or at least would require a deep-dive in Dygraph's JS code, which is more effort than I am prepared to expend).

Instead I turned on Dygraph's awesome range selector widget. What it does is show you a 40 pixel high strip under the main chart, that shows you the average ping time across all hosts. You have selection handles that allow you to zoom in to whatever time range you want, and also you can slide that range around. It's much more intuitive than navigating blind, and you can also visually see periods of instability in the range selector and zoom in on them.

@DeflateAwning
Copy link
Author

This is great! Seems like it solves the problem relatively well, albeit with questionable performance sometimes (which is totally fine). My only thought is that I wonder if there's a way to show the timeouts on the time slider as well.

I'm imagining ideally red lines like this to show -100 values (i.e. timeouts). See example below.

image

@DeflateAwning
Copy link
Author

Also, it looks like the click-and-drag-to-select is turned off entirely. Having it on still, especially for the y-axis, would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants