---
title: "Variables | Grafana Plugins documentation"
description: "This document explains how to setup variables with CSV datasource"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

[Documentation](/docs/)![breadcrumb arrow](/static/assets/img/icons/grafana-icon-breadcrumb-arrow-gray.svg) [Plugins](/docs/plugins/)![breadcrumb arrow](/static/assets/img/icons/grafana-icon-breadcrumb-arrow-gray.svg) [CSV data source](/docs/plugins/marcusolsson-csv-datasource/latest/)![breadcrumb arrow](/static/assets/img/icons/grafana-icon-breadcrumb-arrow-gray.svg) Variables

Open source Grafana Cloud

> Warning
> 
> This plugin is now in maintenance mode, no new features will be added. We recommend using the [Infinity data source plugin](/grafana/plugins/yesoreyeram-infinity-datasource/) instead. If you want to get started quickly with CSV and Grafana, please read [How to Visualize CSV Data with Grafana](/blog/2025/02/05/how-to-visualize-csv-data-with-grafana/), which uses the recommended approach.

[Query variables](/docs/grafana/latest/variables/variable-types/add-query-variable/) let you extract data from a data source and use it to populate a dashboard variable.

To query the CSV data source for variables, follow the instructions on how to [Add a query variable](/docs/grafana/latest/variables/variable-types/add-query-variable/). Make sure to select the CSV from the list of data sources.

For more information on how to configure a query, refer to [Query editor](query-editor.md).
