Untitled :: Kloudfuse Docs

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.