Grafana dashboard source control

Dear All,

Can you kindly suggest recommendations on how I can source control the dashboards/ definitions? I agree Grafana has it’s own version control but we wanted to have our own version into an external source code management system. There are 100+ dashboards - is there an easy way to get definitions/ JSON directly from Grafana server?

Thanks

Grafana API is your friend. You can use a simple bash scripting or more or less sophisticated nodejs/golang/… libraries.

IMHO the most professional option is Terraform Grafana provider - you can provision Grafana datasources/dashboards/alert notifications as “a code”.

1 Like

Awesome, worked like a charm! Thanks @jangaraj! This was sooooo handy

Cheers