{"id":17911204,"url":"https://github.com/toddtreece/grafana-entity-sql","last_synced_at":"2025-07-14T11:08:06.406Z","repository":{"id":138428428,"uuid":"520319252","full_name":"toddtreece/grafana-entity-sql","owner":"toddtreece","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-06T23:04:03.000Z","size":120,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T09:41:24.405Z","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":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/toddtreece.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-08-02T02:01:02.000Z","updated_at":"2022-08-02T16:56:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"35d5dcff-f69c-4ed7-8d23-587062ca3fce","html_url":"https://github.com/toddtreece/grafana-entity-sql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/toddtreece/grafana-entity-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fgrafana-entity-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fgrafana-entity-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fgrafana-entity-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fgrafana-entity-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/toddtreece","download_url":"https://codeload.github.com/toddtreece/grafana-entity-sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/toddtreece%2Fgrafana-entity-sql/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265281185,"owners_count":23739868,"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:17.036Z","updated_at":"2025-07-14T11:08:06.360Z","avatar_url":"https://github.com/toddtreece.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Grafana Setup \n\n```\ngit fetch \u0026\u0026 git checkout toddtreece/entity-grpc-server\n```\n\n`grafana.ini` config:\n```ini\n[feature_toggles]\ngrpcServer = true\ntopnav = true\npanelTitleSearch = true\nstorage = true\nexport = true\ndashboardsFromStorage = true\n```\n\n### Running the server\n\nYou will need to create a [service account](http://localhost:3000/org/serviceaccounts) with an `ADMIN` role, and generate a new token. Copy the token, and set the `GRAFANA_SERVICE_ACCOUNT_TOKEN` env var before running the next command.\n\n```\ngo run . -token $GRAFANA_SERVICE_ACCOUNT_TOKEN\n```\n\nYou should then be able to connect to it using the `mysql` cli:\n\n```\nmysql -h localhost --protocol tcp grafana\n```\n\nExample query that will run against the `devenv/dev-dashboards` path:\n\n```\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nmysql\u003e select JSON_EXTRACT(payload, \"$.title\") as title from dashboards;\n+------------------------------------------+\n| title                                    |\n+------------------------------------------+\n| \"Datasource tests - Postgres\"            |\n| \"Datasource tests - Postgres (unittest)\" |\n+------------------------------------------+\n2 rows in set (0.01 sec)\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddtreece%2Fgrafana-entity-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoddtreece%2Fgrafana-entity-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoddtreece%2Fgrafana-entity-sql/lists"}