convert grafana command in Chronoctl,
which produces YAML for classic dashboards.
Before you convert
Copy the Grafana-format dashboard JSON you want to convert from one of the following sources:- Export a dashboard from Grafana. For export steps, see the Grafana documentation.
-
From an existing classic dashboard in Observability Platform:
- Click Settings, then click Advanced settings.
- Open the General tab.
- Copy the JSON from JSON Model.
-
Use the
ReadClassicDashboardendpoint to read an existing classic dashboard by slug. -
Copy the
dashboard_jsonvalue from an existingchronosphere_classic_dashboardTerraform resource.
Import a converted dashboard
To convert Grafana-format JSON and create a standard dashboard, callImportDashboardFromClassic:
Because the Chronosphere API requires authentication, include an API token with your
curl request, as shown in the following example. For more details, see
Create an API token.
TOKEN: Your API token.INSTANCE: The subdomain name for your organization’s Observability Platform instance.METHOD: The HTTP method to use with the request, such asGETorPOST.ENDPOINT_PATH: The specific endpoint you want to access.
unsupported_features entries from the conversion.
Example
The following request previews conversion of a Grafana export without saving the dashboard. Theclassic_dashboard_json value is a string that contains the dashboard
JSON.
TOKEN with your API token and INSTANCE with your Observability Platform
subdomain. Set dry_run to false to persist the dashboard.
Preview a conversion with dry run
Setdry_run to true to convert and validate a dashboard without persisting it.
The response still includes the converted dashboard as a preview of what would be
created, along with any unsupported_features.
Unlike most dry-run responses in the Config API, this endpoint returns the would-be
dashboard so you can review the conversion before you save it.
Replace an existing standard dashboard
Setupdate_if_exists to true and provide the target dashboard’s slug to update
an existing standard dashboard in place with the converted result. When the slug
doesn’t exist, Observability Platform creates the dashboard.
The update replaces the entire dashboard. Fields that the request doesn’t carry, such
as labels, are cleared.
Review unsupported features
Theunsupported_features array lists classic dashboard features that were dropped,
approximated, or otherwise noteworthy during conversion. Entries are de-duplicated
by feature kind.
Each entry can include the following fields:
Review these entries before you rely on a migrated dashboard in production. A non-empty
list doesn’t always mean the conversion failed, but it indicates where the standard
dashboard might differ from the original classic dashboard.

