{"id":17911295,"url":"https://github.com/toddtreece/grafana-grpc-server-example-datasource","last_synced_at":"2026-02-06T00:01:36.837Z","repository":{"id":138428458,"uuid":"536684935","full_name":"toddtreece/grafana-grpc-server-example-datasource","owner":"toddtreece","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-07T02:59:30.000Z","size":2154,"stargazers_count":2,"open_issues_count":8,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-14T05:30:59.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toddtreece.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-14T17:14:58.000Z","updated_at":"2022-11-02T11:00:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"411bcd72-ad18-4360-b6fa-84a4d03f2b19","html_url":"https://github.com/toddtreece/grafana-grpc-server-example-datasource","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"grafana/grafana-starter-datasource-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fgrafana-grpc-server-example-datasource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fgrafana-grpc-server-example-datasource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fgrafana-grpc-server-example-datasource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fgrafana-grpc-server-example-datasource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toddtreece","download_url":"https://codeload.github.com/toddtreece/grafana-grpc-server-example-datasource/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247805848,"owners_count":20999230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-28T19:37:39.482Z","updated_at":"2026-02-06T00:01:36.808Z","avatar_url":"https://github.com/toddtreece.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## gRPC Server query proxy example\n\nThis demonstrates making `QueryDataRequest` calls from a backend plugin to the experimental Grafana gRPC server by proxying queries through this plugin and modifying the datasource ref.\n\nIn the grafana repo:\n```\ngit fetch\ngit checkout toddtreece/grpc-server-plugin-protobuf\n```\n\n`grafana.ini` changes:\n\n```ini\n[feature_toggles]\ngrpcServer = true\n```\n\n[Example Query](https://user-images.githubusercontent.com/360020/192410785-cc0913eb-139c-4783-b48c-db8e97f0dc55.webm)\n\n\n### Frontend\n\n1. Install dependencies\n\n   ```bash\n   yarn install\n   ```\n\n2. Build plugin in development mode or run in watch mode\n\n   ```bash\n   yarn dev\n   ```\n\n   or\n\n   ```bash\n   yarn watch\n   ```\n\n3. Build plugin in production mode\n\n   ```bash\n   yarn build\n   ```\n\n### Backend\n\n1. Update [Grafana plugin SDK for Go](https://grafana.com/docs/grafana/latest/developers/plugins/backend/grafana-plugin-sdk-for-go/) dependency to the latest minor version:\n\n   ```bash\n   go get -u github.com/grafana/grafana-plugin-sdk-go\n   go mod tidy\n   ```\n\n2. Build backend plugin binaries for Linux, Windows and Darwin:\n\n   ```bash\n   mage -v\n   ```\n\n3. List all available Mage targets for additional commands:\n\n   ```bash\n   mage -l\n   ```\n\n## Learn more\n\n- [Build a data source backend plugin tutorial](https://grafana.com/tutorials/build-a-data-source-backend-plugin)\n- [Grafana documentation](https://grafana.com/docs/)\n- [Grafana Tutorials](https://grafana.com/tutorials/) - Grafana Tutorials are step-by-step guides that help you make the most of Grafana\n- [Grafana UI Library](https://developers.grafana.com/ui) - UI components to help you build interfaces using Grafana Design System\n- [Grafana plugin SDK for Go](https://grafana.com/docs/grafana/latest/developers/plugins/backend/grafana-plugin-sdk-for-go/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddtreece%2Fgrafana-grpc-server-example-datasource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoddtreece%2Fgrafana-grpc-server-example-datasource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddtreece%2Fgrafana-grpc-server-example-datasource/lists"}