This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/runtimegetBackendSrv

getBackendSrv variable

getBackendSrv variable

Used to retrieve the BackendSrv that can be used to communicate via http(s) to a remote backend such as the Grafana backend, a datasource etc.


getBackendSrv: () => BackendSrv


import { getBackendSrv } from '@grafana/runtime';