Export Grafana Tables to CSV: What Changes, What Survives, and When to Use It
How Grafana's panel data export to CSV works, what formatting and transformation options change in the file, and how to keep the result readable in spreadsheets and other tools.
Grafana can turn the data behind a table panel into a CSV file. The export is quick, but the file you get depends on a few options, and those options decide whether the data stays accurate and usable once it leaves the dashboard. This review covers what the export actually produces, where it fits, and where it falls short.
Evidence note: no measured tests, version-specific screenshots or performance figures were available for this review. The steps below follow Grafana's documented panel inspection workflow. Menu labels and option names have changed between Grafana releases, so check them against the documentation for your installed version.
Short verdict: is CSV export right for your use?
Exporting a table to CSV through Grafana's panel inspector works well for one-off analysis, sharing a snapshot with someone who works in a spreadsheet, or attaching data to a ticket or report. The main benefit is that you get the panel's data as plain, portable text without writing a separate query or script.
The key tradeoff is that the file holds what the panel received for its current query and time range, optionally reshaped by panel transformations and display formatting. It is not a full extract from the underlying data source. If the query applies limits, aggregation or downsampling, the CSV inherits them.
Query the data source directly or use an API-based export instead in these cases:
- You need complete, unaggregated records rather than what a panel displays.
- The export must run on a schedule or be reproducible without someone clicking through the dashboard.
- The dataset is large enough that loading it into a browser panel is impractical.
- Downstream tools need exact numeric values and machine-readable timestamps, and someone might switch on formatted output by mistake.
How to export a table panel to CSV
In the documented workflow, you open the panel's menu, choose Inspect, then Data. The inspect drawer shows the panel's data and a set of data options. A download button then saves the selected data as a CSV file.
- Open the dashboard and set the time range and variables you want reflected in the export.
- Open the table panel's menu and choose Inspect, then Data.
- Expand the data options and choose which data frame to export. A panel with several queries or series may offer each frame separately, or the frames joined together.
- Decide whether to apply panel transformations.
- Decide whether to export formatted or raw values.
- If the file will be opened in Microsoft Excel, check whether your version offers an Excel-oriented download option.
- Download the CSV.
What the export actually changes
This is a serialization step, not a character-level transformation. The export does not reverse, mirror or restyle text, and it does not swap characters for decorative Unicode lookalikes. Text values such as host names or labels are written out as the same characters. The changes happen in three places: the structure of the data, how values are formatted, and how CSV syntax wraps each field.
Structure: frames and transformations
Grafana works with data frames. A panel can receive several frames, one per query or per series. Choosing a single frame or a joined view changes which columns and rows end up in the file.
Applying panel transformations makes the CSV match the reshaped table you see, with things like renamed fields, merged queries, filtered columns or calculated fields. Leaving transformations off gives you the data closer to how the query returned it. Neither option is more correct. Pick the one that matches what the recipient expects.
Values: formatted versus raw
With formatted data enabled, values are written the way the panel displays them, using the panel's display settings such as units, decimal places and time formatting. With it disabled, values are written in their underlying form. Timestamps then typically appear as epoch milliseconds, and numbers appear without unit suffixes.
The illustrative example below is not output from a tested instance. It shows one row exported both ways, for a field with a percent-style unit set to one decimal place and a dashboard time zone of UTC.
Raw values:
"Time","cpu_usage"
1730332800000,0.4213
Formatted values:
"Time","cpu_usage"
"2024-10-31 00:00:00","42.1%"
The raw timestamp 1730332800000 is midnight UTC on 31 October 2024, so the two rows describe the same moment. They behave differently downstream, though. The raw version sorts and calculates correctly in a spreadsheet. The formatted version reads easily, but the percentage arrives as text rounded to one decimal place, and the timestamp depends on the dashboard's time zone setting, which the file does not record.
Syntax: delimiters and quoting
CSV separates fields with commas. A value that itself contains a comma, a double quote or a line break must be wrapped in double quotes, and any internal double quotes are doubled. A label such as us-east-1, rack 4 is only safe because of that quoting. Tools that split lines on commas without honoring quotes will break such rows into the wrong columns.
"host","location","note"
"web-01","us-east-1, rack 4","migrated ""blue"" pool"
The inspect drawer offers CSV, not TSV. If a destination expects tab-separated text, convert the downloaded file with a tool that parses CSV quoting properly. A plain find-and-replace of commas with tabs will corrupt any quoted value that contains a comma.
Will the file stay readable and usable after sharing?
CSV is plain text, so it copies, diffs and moves between systems easily. Most problems come from the program that opens it.
Spreadsheet behavior
- Character encoding: some spreadsheet applications don't detect UTF-8 unless the file signals it, so accented or non-Latin characters can display incorrectly. Grafana's Excel-oriented download option exists to address this kind of compatibility problem. Confirm what it does in your version's documentation rather than assuming.
- Regional delimiters: in locales that use a comma as the decimal separator, spreadsheets may expect semicolon-separated files and put a comma-separated export into a single column. An import wizard with an explicit delimiter avoids this.
- Automatic type conversion: spreadsheets may strip leading zeros from identifiers, display long numeric IDs in scientific notation, or reinterpret date-like strings. Import those columns as text when the exact characters matter.
- Formatted units: values such as 42.1% or 3.2 GB exported as formatted text will not sum or chart as numbers until they are cleaned.
Formula injection
If a table contains text from untrusted sources, such as log messages, user-supplied labels or request paths, a cell beginning with =, +, - or @ may be interpreted as a formula when the file is opened in a spreadsheet. This is a general CSV risk, not a Grafana-specific one. No evidence was available on whether Grafana escapes such values, so treat exports with untrusted text cautiously and import them as text where possible.
Accessibility, search and editing
Because CSV holds real characters rather than visual styling, its contents can be searched, edited and read by screen readers once opened in a spreadsheet or table viewer. A screenshot of the same panel offers none of that. Whether column headers are announced well depends on the application and screen reader. No scoped test of specific assistive technologies was available for this review.
Readability for people and for machines can pull in different directions. Formatted values read better aloud and at a glance, while raw values work better in calculations. When a file serves both audiences, a raw export plus a short note stating units and time zone is usually the more durable choice.
Checks before you send the file
- The dashboard time range and variables match the period and scope the recipient expects.
- The chosen data frame, or the joined view, contains every column you intend to share.
- Transformations are applied or not applied on purpose.
- You know whether values are formatted or raw, and units and time zone are stated somewhere if they are not in the file.
- Identifier columns survive opening in the recipient's spreadsheet without lost zeros or scientific notation.
- No sensitive labels, hostnames or user data are included that the recipient shouldn't see.
Gaps in this review
- No hands-on test results, file samples from a live instance, or performance measurements were available. The examples above are illustrative.
- Option names and placement in the inspect drawer vary by Grafana version and were not confirmed for any specific release.
- The exact effect of the Excel-oriented download option, and whether exports escape formula-like cell values, were not verified.
- Scheduled or report-based CSV delivery, and any edition-specific export features, were outside the available evidence.