I woulld like to receive data from one of my REST API url and display into the dashboard. Can someone walkthrough the process of configuring the following API?
METHOD
get
Headers
X-Authorization: Token
Authorization:Token
I woulld like to receive data from one of my REST API url and display into the dashboard. Can someone walkthrough the process of configuring the following API?
METHOD
get
Headers
X-Authorization: Token
Authorization:Token
Hi,
You probable want to use Simple JSON Datasource plugin. To do that you need to implement a rest api that conforms to simplejson request/response formats and that in turn calls out to your external api.
Please refer to my comment here Grafana simplejson dashboard
Marcus
Hi,
You can use grafana JSON data source as @mefraimsson explained for specific use cases.
Otherwise for simple use cases, you can use Infinity datasource. This is generic implementation for making API requests from Grafana.
NB: I am the author of the plugin.
Thanks,
Sriram
Hi @yesoreyeram,
Inifinity Datasource looks great. I have one doubt though, does it have support for Authorization headers? My usecase is to display JSON data from an API protected by Bearer token.
Thanks,
Omkar
Currently simple username/password or any header based tokens supported.
This is a popular topic with some old answers whose context has changed over time. So here’s a good up-to-date answer:
In Grafana you should use the Infinity data source plugin to do pretty much any work with REST APIs. It has many options for authentication and various other settings.
The Grafana docs gives a worked example of how you can do this end-to-end; on this particular documentation page, it’s working with an AWS API, but the principles are the same. If you’re looking to work with REST API data, check this page out, and simply substitute the AWS API endpoints for your own; this provides a walk-through of configuring each bit.