Post

Grafana dashboard via curl

Grafana dashboard via curl

  • do not forget to add “id: null”
  • encapsulate to {“dashboard”: …}
1
2
3
4
5
6
7
8
curl -L \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST \
-uadmin \
--data @/tmp/path/dashboards/dashboard.json \
http://hostname/grafana/api/dashboards/db

This post is licensed under CC BY 4.0 by the author.