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