Documentation Index
Fetch the complete documentation index at: https://docs.chronosphere.io/llms.txt
Use this file to discover all available pages before exploring further.
You can export dashboards from Grafana as JSON, then import them into Chronosphere
as classic dashboards.
For steps on exporting a dashboard from Grafana, see its documentation.
Chronosphere supports dashboards exported from Grafana versions up to 7.5. Dashboards
exported from newer versions of Grafana might not be importable without modification.
To import a Grafana dashboard in the Observability Platform interface, see
import a dashboard.
-
From a directory of Grafana dashboard JSON files, run
chronoctl convert grafana
to write Chronoctl YAML to a file:
chronoctl convert grafana -D <DIRECTORY> > <DASHBOARDS FILE.YML>
Replace DIRECTORY with the path that contains the JSON files, and replace
DASHBOARDS FILE.YML with the output filename.
-
Optional. Add the
--graphite-datasource option to the convert grafana command
for dashboards that use a Graphite data source.
-
Apply the YAML to import the dashboards:
chronoctl apply -f DASHBOARDS FILE.YML
Replace DASHBOARDS FILE.YML with the same output filename you used with
convert grafana.
To import a Grafana dashboard using Terraform:
-
Declare a
chronosphere_classic_dashboard resource in a Terraform file and provide
a resource name.
For example, the following code creates a dashboard that Terraform refers to as
kubelet and Chronosphere associates with a specific collection:
resource "chronosphere_classic_dashboard" "kubelet" {
# Reference to the collection to which the alert belongs
collection_id = chronosphere_bucket.service.id
# Inlined Grafana dashboard JSON. Note the inlined service_name variable in the definition
dashboard_json = <<EOF
{
"title": "${var.service_name} Overview",
// ...
}
EOF
}
-
Add the Grafana dashboard JSON
inline as the content of the
dashboard_json field. If the Grafana dashboard sets
the uid field, the Terraform provider ignores it and assigns a unique identifier.
-
Use
terraform apply to apply the Terraform file and create the resource.