https://github.com/pgollangi/firestore-grafana-datasource
I do not own the original code, I was just frustrated how outdated the Firestore grafana datasource is, hence implemented some changes myself.
Because the original pgollangi/firestore-grafana-datasource does not support:
- Named databases
- Inconsistent document attributes
- Doesnt return document ID
There are prebuilt plugin packages in ./dist for Grafana for amd64 arch. In case you need another arch you have to build it yourself with:
(yarn needs nodejs 18)
yarn install
yarn build
go clean --modcache
go mod tidy
go mod download
go mod verify
go build -o dist/gpx_firestore_linux_amd64 ./pkg
The datasource relies on FireQL, another implementation of pgollangi which also needed some modifications
https://github.com/pgollangi/FireQL
Therefore, this repo also has ./FireQL folder which contains the modified lib.