---
title: "Create custom variables | Grafana Labs"
description: "Learn how to create variables with manually defined option lists."
---

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

# Create custom variables

Custom variables use manually defined option lists rather than querying data sources, making them ideal for static values that don’t change frequently or don’t exist in your data. They’re perfect for cases where you want to present specific choices to users without depending on query results. They also offer predictability and control when the available options should remain consistent regardless of what data exists in your data sources.

While query-based variables are excellent for discovering dynamic infrastructure, custom variables provide control over exact options and ordering for business logic that exists outside your monitoring data.

To create a custom variable, complete the following steps:

1. Open your dashboard, click **Edit**, then go to **Dashboard options &gt; Settings** and click the **Variables** tab.
2. On the **Variables** tab, click **Add variable**.
3. In the **Variable type** drop-down list, choose **Custom**.
4. In the **General** section, enter the name of the variable. This is the name that you’ll use later in queries.
   
   For example, `severity`.
5. In the **Custom options** section, enter the values for this variable in a comma-separated list.
   
   For example, `critical,warning,info,debug`.
6. In the **Preview of values** section, Grafana displays a list of the current variable values. Review them to ensure they match what you expect.
7. Click **Save**.
8. (Optional) Enter a description of the changes you’ve made.
9. Click **Save** and **Back to dashboard**.

The dashboard displays the custom variable at the top as a drop-down list with your defined options.

In the next milestone, you learn how to reference variables in panel queries to filter data based on user selections.
