Import Dashboard using provisioning

Hi,

Can I import dashboard (the json file exported from export function of Grafana) using https://grafana.com/docs/administration/provisioning/#dashboards.
I have to achieve that Dashboard I created in main org to automatically get imported in newly created org(on org creation) .
I tried HTTP API “POST /api/dashboards/db” but getting 400 series error while passing JSON I generated through export functionality.

Please provide direction.

Thanks in advance

Hi,

Can I import dashboard (the json file exported from export function of
Grafana) using
Provision Grafana | Grafana documentation.

Yes, you can. I do it like that (with sometimes a bit of editing in the
middle).

I have to achieve that Dashboard I created in main org to automatically get
imported in newly created org(on org creation) . I tried HTTP API “POST
/api/dashboards/db” but getting 400 series error while passing JSON I
generated through export functionality.

I’ve never tried the HTTP API, so I can’t comment on how that may differ.

Please provide direction.

You’ve already posted the link to the instructions.

Try them out and if you run into problems, show us what you did and what
problem resulted. Remember that /var/log/grafana/grafana.log can be a useful
source of information if Grafana has problems loading a new dashboard.

Regards,

Antony.

1 Like