-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
Loki Datasource: Make the "Downloads" button more prominent #50188
Comments
there might be a complication there. the current download-csv button only downloads a single "dataframe" (a package of data), not all the data. so, when you use the current version of the download-csv button, you can click on "Data options" to the left of the button, and choose which dataframe you are interested in. i'm not sure how to solve it here, one option would be to change the behavior and somehow download all the data... not sure. sorry to point this out so late, i've just realized it yesterday, when looking at a github-issue 😄 (details at #53742) |
Given this though, wouldn't this cease to be a problem after a user is on Grafana v9 or greater? |
for Loki yes, but other logs-datasources may still use multiple dataframes. |
How much data is in a single data frame vs. all the data? I'm guessing it varies by logging datasource? In Loki world, is 'all the data' the 1000 line limit and single data frame (before the change) was a fraction of that 1000 lines? Asking because I was trying to think through what seem like the two options (for other non Loki datasources) if we change the button location. They seem to be:
Agreed that having 'download as csv' vs 'download logs' behave differently would be strange. |
the single-dataframe vs multiple-dataframe is usually not because how much data you have but more because some datasources just split the data based on the labels. for example:
in grafana8 it worked the same for Loki, we took the Loki-data coming from the Loki-database, and split into dataframes, where log-lines with the same labels would go into the same dataframe. and, i also don't know what to do with the buttons, what i know:
regarding your "1." idea: "both buttons just download the active data frame" .. the problem here is that at the button's current location, the user can see what the 'active' dataframe is. |
Discussed on Aug 25 call - |
posting for visibility:
|
Problem
Today figuring out how to download logs from the Explore view of a Loki datasource is difficult.
First the user has to (1) click on 'Inspector', then they have to (2) click on 'Data', and then they can (3) click one of two buttons (download logs or download csv).
This makes discoverability challenging for what is a pretty common use case: downloading your logs as a file so you can use them in some other context. For example, some users want to download logs to attach them to a bug report. Others want to download them because they'd like to manipulate or search them in some other tool (e.g., one of the self serve users that we recently spoke to wanted to load his into a jupyter notebook for further processing).
Proposal
We'd like to put the download button on the main screen to make it more discoverable. Furthermore, we'd like to have a single button which then gives you a choice of what format to download the logs in. Right now, we support downloading as a csv or as a txt file. In the future, we might support other formats.
Here's a mockup of what it would look like after this change:
For full design, we have a Figma link as well:
https://www.figma.com/file/7ZHtMoaK4RxBz3b6m6U0cW/Show-more-logs-%2B-Sorting?node-id=1709%3A9228
The text was updated successfully, but these errors were encountered: