I am using grafana in Ubuntu. I want to automate two things.
1. Setting up Datasource.
2. Load json template to dashboard.
Rather than GUI is there any option available like CLI ?
Or you can use wizzy to automate Grafana entities with two commands:
wizzy export datasource <datasource_name>
wizzy insert temp-var <temp-var-name>
Here are the links for getting starting with wizzy:
https://github.com/utkarshcmu/wizzy
https://utkarshcmu.github.io/wizzy-site/home/getting-started/#installation
Yes you can automate such things with the Grafana HTTP API.
Taken from the docs you can for example create a new datasource with:
I use python to automate such things with grafana since its straight forward. But you can use any language that can do http requests.