Closed maurodelazeri closed 5 years ago
Is the dashboard being rendered at all into a configmap?
@brancz yes, it creates the configmap just fine but does not import onto grafana, I need to do manually
Check the grafana logs, if it sees the dashboard and tries to import it then it logs that at start up.
It complains about this:
t=2019-06-06T13:51:25+0000 lvl=eror msg="failed to save dashboard" logger=provisioning.dashboard type=file name=0 error="Alert validation error: Data source used by alert rule not found, alertName=Outstanding Requests alert, datasource=${datasource}"
the datasource is fine, maybe this Data source used by alert rule not found
?
The problem is the "${datasource}" in the template. That doesn't work with the provisioning API, you need to specify an explicit datasource. That template is usually filled out at import time, but since this is not using the UI to import, it has to be specified upfront.
@brancz yeah, that solves the problem... thanks
is there anything special that needs to be done to import a grafana exported json ?
It does not show any error and does not import, if I import manually with grafana UI it works fine
cat example.jsonnet
kafka-grafana-dashboard.json
--> http://cdn.paste.click/NDAp8S7CwnYiCaZpcRTOdQ