The uid allows having consistent urls for accessing dashboards and when syncing dashboards between multiple grafana installs. ${dasbhoard_uid} this way, you are telling terraform to replace the variable dasbhoard_uid in the templated file by the value you are getting from the data. Terraform grafana provider does not expose in any way uid.
As a suggestion having an output with this field available for reference would be useful. Org_id (string) the organization id. Schema optional folder_uids (list of string) uids of grafana folders containing dashboards.
See grafana's data sources guides for more details on the supported data source types and the. Data sources relevant source files this page describes how to manage grafana data sources using the terraform provider. The terraform provider enables you to automate the creation, configuration, and management of. If not set, the org id defined in the provider block will be used.
Grafana_data_source the data source resource allows a data source to be created on a grafana server. In order to fully manage a dashboard with terraform, necessary data sources can be created using the grafana_data_source resource. Terraform configuration for grafana provider this terraform configuration configures the grafana provider to provide necessary authentication when creating folders and dashboards in the grafana instance. If not set, the org id defined in.
Create a service account and token in the grafana instance by following these. Limit (number) maximum number of dashboard search results to return. The following example is for influxdb. Specify either this or uid.
[general] for general folder), or leave blank to get all dashboards in all folders. Specify either this or dashboard_id. Dasbhoard_uid = data.grafana_data_source.azure_monitor.uid }) } for this to work as expected, the change would also need to happen in the vmdashboard.json file, by doing the following: Org_id (string) the organization id.
This breaks dashboard provisioning from json templates. Url (string) the full url of the dashboard. Schema optional dashboard_id (number) the numerical id of the grafana dashboard. Uid (string) the uid of the grafana dashboard.
Grafana provider the grafana provider configures data sources and dashboards in grafana, which is a web application for creating, viewing and sharing metrics dashboards. Managing fleet management in grafana cloud using terraform describes how to create collectors and pipelines in grafana fleet management using terraform.