Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create graphs in Grafana via HTTP API

Tags:

grafana

I have a Grafana dashboard with existing graphs and stats.

Now I want to add new graphs automatically to my current dashboard.

As far as I can refer to Grafana's HTTP API documentation, there're only ones to create new dashboard but not graph, stats, ...etc.

Is there a way to do this?

like image 961
Nhan Trinh Avatar asked Feb 28 '26 05:02

Nhan Trinh


1 Answers

Graph is a part of dashboard. You should create dashboard as one piece, with all panels, rows, graphs, stats and alerts inside. Projects like https://github.com/uber/grafana-dash-gen can help with that.

like image 88
deniszh Avatar answered Mar 07 '26 11:03

deniszh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!