Skip to content

[Grafana Dashboards] Missing support for Dashboards V2 schema (aka Dynamic Dashboards) #2543

Description

@hatamiarash7

Terraform Version

v1.14.5

Terraform Grafana Provider Version

4.25.0

Grafana Version

12.3

Affected Resource(s)

grafana_dashboard (resource)

Terraform Configuration Files

resource "grafana_dashboard" "general_traefik" {
  config_json = file("/etc/grafana/dashboards/general/traefik")
  overwrite = true
}

Expected Behavior

  1. With the current version of the provider, we cannot use dashboards in YAML format. This format is currently available within the dashboard and can be exported ( V1 Resource / V2 Resource ).
Error: invalid character 'a' looking for beginning of value

apiVersion: dashboard.grafana.app/v2beta1
kind: Dashboard
metadata:
...
...
  1. Even if we use V1 Resource or V2 Resource in JSON format, we will encounter an error when applying.
Error: [POST /dashboards/db][400] postDashboardBadRequest {"message":"Dashboard title cannot be empty","status":"empty-name"}

Will support for new models be added to the provider?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions