Export Grafana data to CSV

How Grafana's CSV download works, what the formatting, joining and Excel options change in the file, and when an exported CSV stays usable after you share it.

Is a Grafana CSV export the right fit?

Grafana's built-in CSV download is usually the most direct way to move a panel's query results into a spreadsheet, a script or an attachment. Its main benefit is portability. The output is plain comma-separated text that almost any tool can open. Its main limitation is scope. You get a snapshot of what the panel queried for the current time range and resolution, not a full copy of the underlying data source. The export settings can also change the values that end up in the file.

A one-off panel download works well for quick analysis, sharing a specific incident window or handing numbers to someone without Grafana access. It is a weaker choice for recurring exports, long time ranges at full resolution, or data where exact types matter. In those cases, querying the data source directly or exporting a structured format is safer. If the goal is to show how a dashboard looked, a screenshot or rendered report preserves the colors and layout that CSV discards.

How to download CSV from a panel

  • Open the menu of the panel whose data you want.
  • Choose Inspect, then Data. This opens the data inspector, which shows the query results as a table.
  • Review the data options, such as formatted values, joining series by time and applying panel transformations, before downloading.
  • Select Download CSV. Some versions offer an Excel-oriented variant of the download.

Menu labels and available options differ between Grafana versions and editions. This guide was not checked against a specific release, so confirm the names in your own instance's inspector.

What the export actually changes

A CSV export is a real conversion, not a visual effect. Grafana writes the panel's data frames to a text file, and the options you choose decide which characters are stored. Units, colors, thresholds and other panel styling are presentation on screen. Some of that presentation can be baked into the file as text, while the rest is lost completely.

Option | What it changes in the file | What to watch for
Formatted data on | Values are written as the panel displays them, with units, decimal rounding, value mappings and readable dates applied | Numbers become text such as 42.3%, which spreadsheets and scripts may not treat as numeric
Formatted data off | Values are written as the query returned them, and time is often written as epoch milliseconds | Timestamps need converting before most people can read them
Series joined by time | Multiple series are merged into one table that shares a time column | Where timestamps don't line up, cells are left empty, which can look like missing data
Apply panel transformations | The file reflects the panel's transformations, such as renamed fields, filters or calculations | Without it, you may get pre-transformation data that doesn't match what the panel shows
Excel-oriented download | The file is adjusted to match what Excel expects on import | It may be less convenient for tools other than Excel

The illustration below shows how one data point might look in each mode. The values are made up to show the mechanism and were not taken from a real export. The formatted time is shown in UTC, but Grafana normally formats time in the dashboard or browser time zone.

# Formatted data off (raw)
Time,cpu_usage
1730368800000,0.4231

# Formatted data on (percent unit, 1 decimal)
Time,cpu_usage
2024-10-31 10:00:00,42.3%

Resolution is a separate change that is easy to overlook. Panel queries are shaped by the time range, the interval and the max data points setting, so the export may contain aggregated or downsampled points rather than every stored sample. If you need full-resolution data, narrow the time range, adjust the query options, or query the data source outside the dashboard.

Will the file stay readable and usable after sharing?

Conventions for CSV vary. The delimiter, quoting, line endings and character encoding can all differ, and the receiving application has to guess or be told which conventions apply. Several common problems follow from that:

  • Locale: In regions where the comma is the decimal separator, a spreadsheet may split columns differently than you expect.
  • Encoding: Series names or labels with accented letters, non-Latin scripts or symbols depend on the receiver reading the file as UTF-8. Some spreadsheet applications guess encoding differently.
  • Spreadsheet re-saving: Opening a CSV in a spreadsheet and saving it again commonly reformats dates, strips leading zeros and turns long numeric IDs into scientific notation. Keep the original file if accuracy matters.

None of these destination behaviors were tested for this article. Before you send a file widely, open a sample in the application your recipients will actually use.

For accessibility, plain CSV has one advantage over a dashboard: it contains no color-only meaning. A screen reader in a spreadsheet or text editor reads it cell by cell. The cost is that anything the panel conveyed visually, such as threshold colors, trend lines or highlighted states, is gone unless it also exists as a value. Column headers come from field and series names, which are often cryptic metric identifiers. Renaming fields with overrides or a transformation before export, and turning on the option to apply transformations, makes the header row understandable to everyone, including people using assistive technology. No assistive technology was tested here.

Because the file is plain text, it is easy to search, diff and edit. That works best with raw values, since formatted strings mix numbers with unit symbols and are awkward to filter or calculate with. A practical approach is to export raw data for anything that will be processed and formatted data only for files people will just read.

When another route is better

  • Recurring or scheduled exports: Use a script that queries the data source or Grafana's query API, or a reporting feature if your edition includes one. Feature availability by edition was not verified here.
  • Large or full-resolution datasets: Query the source database or time-series store directly instead of going through panel query limits.
  • Data where types and structure matter: Exporting JSON from the inspector or the API keeps field types and nesting that CSV flattens into text.
  • A record of how the dashboard looked: A screenshot or rendered PDF keeps layout and color, which CSV cannot represent.

Gaps and cautions

This overview relies on general, documented Grafana behavior and general CSV principles. It does not include version-specific testing, measured row or file-size limits, or verified results in specific spreadsheet applications. An exported file contains whatever the query returned, which can include hostnames, user identifiers or other sensitive labels. Grafana's interface does not tell you how recipients will store or forward the file, so follow your organization's data-handling rules before sharing an export.