Configure Dashboard Variables
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: * Switch between environments without duplicating dashboards. * Filter data across all panels with a single selection. * Provide drop-downs, text inputs, or pre-defined options to dashboard viewers.
You can configure several types of template variables:
-
Query Template Variable — Populate variable values dynamically from metrics, logs, or traces.
-
Custom Template Variable — Define static options for fixed value sets.
-
Text Template Variable — Accept freeform text input from the user.