{"id":13582092,"url":"https://github.com/kckecheng/grafana_cli","last_synced_at":"2026-01-17T02:57:33.378Z","repository":{"id":57695173,"uuid":"324471553","full_name":"kckecheng/grafana_cli","owner":"kckecheng","description":"A CLI based utility to operate Grafana dashboards, folders, annotations, etc.","archived":false,"fork":false,"pushed_at":"2021-01-04T13:58:55.000Z","size":5139,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T11:45:43.382Z","etag":null,"topics":["grafana","monitoring","prometheus","utility"],"latest_commit_sha":null,"homepage":"","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/kckecheng.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2020-12-26T03:06:55.000Z","updated_at":"2022-10-29T02:04:52.000Z","dependencies_parsed_at":"2022-09-02T08:50:47.981Z","dependency_job_id":null,"html_url":"https://github.com/kckecheng/grafana_cli","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kckecheng/grafana_cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kckecheng%2Fgrafana_cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kckecheng%2Fgrafana_cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kckecheng%2Fgrafana_cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kckecheng%2Fgrafana_cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kckecheng","download_url":"https://codeload.github.com/kckecheng/grafana_cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kckecheng%2Fgrafana_cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28492593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T02:39:23.645Z","status":"ssl_error","status_checked_at":"2026-01-17T02:34:19.649Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["grafana","monitoring","prometheus","utility"],"created_at":"2024-08-01T15:02:25.479Z","updated_at":"2026-01-17T02:57:33.350Z","avatar_url":"https://github.com/kckecheng.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"About\n=====\n\nA CLI based utility to operate Grafana, such as list/export/import/delete dashboards, create/delete/list annotations, etc.\n\nUsage\n-----\n\n**Build**\n\n::\n\n  # Linux\n  go build\n  # Compile on Linux for Windows\n  GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build\n\n\n**Provide Grafana Information with CLI Options**\n\n::\n\n  ./grafana_cli help\n  ./grafana_cli --server http://localhost:3000 --user admin --password admin dashboard list\n\n**Provide Grafana Information with Env Vars**\n\n::\n\n  export GRAFANA_SERVER='http://localhost:3000'\n  export GRAFANA_USER='admin'\n  export GRAFANA_PASSWORD='admin'\n  ./grafana_cli dashboard --help\n  ./grafana_cli dashbaord export --help\n  ./grafana_cli dashboard export --uid 'qpQbDyxMk' --path dashboard1.json\n\nCoverage\n--------\n\nFunctions as below (which are used for automation during my daily usage) are implemented:\n\n- Annotation: list, create, delete;\n- Dashboard: list, export, import, delete, panel (list panels of a dashboard);\n- Data Source: list, export, import, delete;\n- Folder: list, create, delete;\n- Snapshot: list, export, delete.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkckecheng%2Fgrafana_cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkckecheng%2Fgrafana_cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkckecheng%2Fgrafana_cli/lists"}