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

Set up "min Interval" for Grafana / Influxdb dashboard #368

Open
ccoenen opened this issue Apr 27, 2023 · 1 comment
Open

Set up "min Interval" for Grafana / Influxdb dashboard #368

ccoenen opened this issue Apr 27, 2023 · 1 comment

Comments

@ccoenen
Copy link

ccoenen commented Apr 27, 2023

I am using the influxdb dashboard example from the README and generally it's working fine.

One thing I would like to see improved, though, is setting a "minimum interval" for each of the panels. Since the default suggested config for collection is 5 seconds, it would make sense to also set 5s as minimum interval for the dashboard.

When no minimum interval is set, the interval is derived from the available screen space (basically "what timeframe is visible" divided by "how many pixels do I need to fill"). This may lead to intervals lower than 5 seconds, one second in this following screenshot. This also leads to disconnected data points:

default interval settings

This setting can be overridden with the min interval, which is what I am suggesting in this request. If I set this to the matching 5 seconds (or more coarsly would also work) this will then set an automatic lower bound for the interval. This will fix the chart, because now it knows that there are no "missing" values between the individual measurements and the line chart can be drawn continuously.

same chart with minimal interval set

To reproduce, use OhmGraphite with Influxdb and the suggested dashboard. Collect some data (a few measurements will do, no need to collect hours) and just zoom in far enough. Once there's (basically) more pixels than measurements, this should appear.

@nickbabcock
Copy link
Owner

Good points! I think this falls under the larger task of #246. Now that prometheus dashboard, which has been championing a new layout for dashboards, has settled down -- I think it is a fine time to start porting over improvements to the influxdb (and other) dashboards. It may be a bit of a cumbersome task, so I haven't dedicated time to syncing all the dashboards yet.

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