Filter with template variables
Learn how to use template variables to dynamically filter dashboard data.
Template variables are a feature of Dashboard (Beta) that allows you to create dynamic dashboards that re-scope data on the fly. You can apply variables to troubleshoot a problem through your dashboard, and view the updated data in real time for a fast resolution to the root cause. This document shows you how to add a new template variable to a dashboard, and then how to edit or delete an existing template variable.
Adding a template variable
Editing a template variable
Deleting a template variable
Example: using variables in queries
Logs and metrics variables allow you to interject metadata into your queries. This section shows you how to use a variable you created in a query.