Grafana Firebase Admin Data Source Backend Plugin
This plugin adds Firebase Admin datasource that is using Firebase Admin SDK to query Firebase Auth data. Datasource simply calls client.Users()
to fetch users data and returns user fields:
- UID
- Display name
- Email
- Phone number
For the datasource to work, you need to provide JSON containing SA key which is needed by Firebase Admin SDK.
What is Grafana Data Source Backend Plugin?
Grafana supports a wide range of data sources, including Prometheus, MySQL, and even Datadog. There’s a good chance you can already visualize metrics from the systems you have set up. In some cases, though, you already have an in-house metrics solution that you’d like to add to your Grafana dashboards. Grafana Data Source Plugins enables integrating such solutions with Grafana.
For more information about backend plugins, refer to the documentation on Backend plugins.
Getting started
A data source backend plugin consists of both frontend and backend components.
Frontend
-
Install dependencies
yarn install
-
Build plugin in development mode or run in watch mode
yarn dev
or
yarn watch
-
Build plugin in production mode
yarn build
Backend
-
Update Grafana plugin SDK for Go dependency to the latest minor version:
go get -u github.com/grafana/grafana-plugin-sdk-go
go mod tidy
-
Build backend plugin binaries for Linux, Windows and Darwin:
mage -v
-
List all available Mage targets for additional commands:
mage -l
Sign & Pack
To read more about plugin signature click here
Packing is simple
zip firebase-admin-1.0.0.zip dist -r
Learn more