Menu
Documentationbreadcrumb arrow Pluginsbreadcrumb arrow Azure Cosmos DB data sourcebreadcrumb arrow Azure Cosmos DB templates and variables

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