Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Azure Cosmos DB templates and variables
Instead of hard-coding details such as database, containers, partition keys, and WHERE
clause filters, you can use variables. Grafana lists these variables in dropdown select boxes at the top of the dashboard to help you change the data displayed in your dashboard. Grafana refers to such variables as template variables.
For an introduction to templates and variables, see the following topics:
To add a new Azure Cosmos DB query variable, see Add a query variable. Use your Azure Cosmos DB data source as your data source. The following queries are available:
- Database - Fetches all of the available databases
- Container - After a database has been selected, fetches all of the available databases
- Query - After a database and container has been selected, enter a Cosmos DB NoSQL query that returns one field. For more information refer to Azure Cosmos DB query editor