You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Comments describe behavior applying to our "dev" Team/tier.# Applies and loads successfully.resource"coralogix_hosted_dashboard""bug_dashboard_copied_from_dev" {
grafana {
config_json=file("${path.module}/grafana-bug-dev.json")
}
}
# Dashboard loads broken with "Datasource XFs7pbK4z was not found",resource"coralogix_hosted_dashboard""bug_dashboard_copied_from_test" {
grafana {
config_json=file("${path.module}/grafana-bug-test.json")
}
}
# Dashboard loads broken with "Datasource ${DS_LOGS} was not found"resource"coralogix_hosted_dashboard""bug_dashboard_exported_for_sharing" {
grafana {
config_json=file("${path.module}/grafana-bug-exported-for-sharing.json")
}
}
# Dashboard loads without errors but NO Data. Widget is linked to "Metrics" (the default?) instead of "Logs" as expected.resource"coralogix_hosted_dashboard""bug_dashboard_delete_elastic_datasource_uid" {
grafana {
config_json=file("${path.module}/grafana-bug-delete-datasource-uid.json")
}
}
The Grafana json includes a "datasource uid" for each data source (Logs or Metrics). This uid is not the same for each Coralogix instance, so the dashboard does not import correctly to a different Coralogix Team.
Debug Output
There is no debug output. The dashboards are created successfully but have errors when loading in Grafana.
Panic Output
None.
Expected Behavior
I don't know if these options should "magically work", but there should be a recommended way to apply the same Grafana dashboards to different Coralogix teams. This could be something explicit like detecting the datasource ID as a Terraform Data source and passing it as a parameter. Or it could be automatic.
The Grafana "export for sharing externally" feature was created for this purpose but it's implemented in the Grafana UI.
Actual Behavior
The failure in grafana is either:
"Datasource <some_name> was not found"
Dashboard loads linked to default Metrics datasource instead of logs.
See comments in the terraform config for more details.
Steps to Reproduce
Create a grafana dashboard in the Grafana instance for Coralogix Team "test"
Export the dashboard json either by (a) copying the JSON Model or (b) using the "Export for sharing externally" option or (c) delete the datasource uid.
terraform apply to a different Coralogix Team "dev"
Open the created dashboard(s) on dev to see errors.
Note that in the example terrraform I have manually changed the dashboard uid and name to allow deploying multiple versions of the same dashboard.
Important Factoids
We use a separate Coralogix Team for each environment (i.e. dev/test/astarche-demo) with common Terraform to apply the configuration.
References
None.
Community Note
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The text was updated successfully, but these errors were encountered:
Affected Resource(s)
Terraform Configuration Files
See gist for json files: https://gist.github.com/astarche/5d84f939328959975d997e50dabc52b6
The Grafana json includes a "datasource uid" for each data source (Logs or Metrics). This uid is not the same for each Coralogix instance, so the dashboard does not import correctly to a different Coralogix Team.
Debug Output
There is no debug output. The dashboards are created successfully but have errors when loading in Grafana.
Panic Output
None.
Expected Behavior
I don't know if these options should "magically work", but there should be a recommended way to apply the same Grafana dashboards to different Coralogix teams. This could be something explicit like detecting the datasource ID as a Terraform Data source and passing it as a parameter. Or it could be automatic.
The Grafana "export for sharing externally" feature was created for this purpose but it's implemented in the Grafana UI.
Actual Behavior
The failure in grafana is either:
<some_name>
was not found"See comments in the terraform config for more details.
Steps to Reproduce
terraform apply
to a different Coralogix Team "dev"Note that in the example terrraform I have manually changed the dashboard uid and name to allow deploying multiple versions of the same dashboard.
Important Factoids
We use a separate Coralogix Team for each environment (i.e. dev/test/astarche-demo) with common Terraform to apply the configuration.
References
None.
Community Note
The text was updated successfully, but these errors were encountered: