Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom grafana datasource plugin to wrap external REST API

Tags:

grafana

I'm trying to figure out a way to create a data-source plugin which can communicate with an external REST API and provide relevant data to draw a panel.

Anyone with previous experience?

like image 613
udarakr Avatar asked Sep 21 '16 05:09

udarakr


2 Answers

The Simple JSON Datasource does roughly what you're proposing, and would definitely be a good base for you to start from.

There is also documentation on datasource plugins available.

like image 131
AussieDan Avatar answered Oct 07 '22 19:10

AussieDan


You can use Grafana Infinity datasource for connecting to REST API endpoints.

This plugin can connect to any REST API and present the data to grafana. You can use CSV,JSON and GraphQL endpoints. Documentation site have more examples on how to connect with external APIs

Note: I am the author of the plugin. If you see any bugs in the datasource, report it at github site.

like image 42
Sriram Avatar answered Oct 07 '22 20:10

Sriram