Dashboard Configure Variables :: Kloudfuse Docs

Dashboard Configure Variables

Table of Contents

Dashboard variables act as placeholders in panel queries. They allow dashboards to adapt based on user selections—such as cluster, namespace, environment, or service—without changing the underlying queries.

Variables improve reusability by letting you:

You can configure several types of template variables:

Configure Template Variables

Template variables let you dynamically filter dashboards using runtime values from your telemetry data, such as namespace, cluster, pod, or service.

Create a Template Variable

  1. In the dashboard, open the Actions menu.
  2. Select Configure variables.
  3. Click Add Variable.

General Settings

Query Options

Filter values

Use filters to narrow results:

Use Regex

Use regex to extract or format display values.

Example:

/.+(?<text>.*):(?<value>.*)/

This lets you split a label or metric into display name and internal value.

Sort and Selection Options

Preview and Save

  1. Click Run query to test the variable setup.
  2. Use the preview at the bottom to confirm expected values.
  3. Click Save or Go back to list to apply the configuration.
Once configured, you can use the variable in any panel query using $variableName.

Use a Textbox Variable

Use a Textbox variable to let users input freeform text at runtime, such as a dynamic filter value or manual override.

General Settings

Same fields as other variable types:

Text Options

Use Cases

Textbox variables are useful when:

Textbox values must match the expected query format in your panels.

Use a Custom Variable

Set the variable type to Custom for a static list of manually defined values.

General Settings

Same as query variables:

Custom Options

Define custom values in the textbox using comma-separated format.

You can specify:

Escape commas (\,) if they’re part of the value.

Selection Options

Preview and Save

  1. Verify values using the Preview values section.
  2. Click Go back to list to save and return to the variable list.