{"id":15481839,"url":"https://github.com/zpascal/grafana_dashboard_templater","last_synced_at":"2025-09-14T23:29:26.362Z","repository":{"id":37848071,"uuid":"440325889","full_name":"ZPascal/grafana_dashboard_templater","owner":"ZPascal","description":"The Grafana dashboard templater create a valid Grafana dashboard as dictionary based on a template and injected values.","archived":false,"fork":false,"pushed_at":"2025-05-05T11:51:18.000Z","size":5963,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-11T04:02:10.821Z","etag":null,"topics":["dashboard","grafana","monitoring","template"],"latest_commit_sha":null,"homepage":"https://zpascal.github.io/grafana_dashboard_templater/","language":"Python","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/ZPascal.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,"zenodo":null}},"created_at":"2021-12-20T22:43:52.000Z","updated_at":"2025-05-05T11:51:22.000Z","dependencies_parsed_at":"2023-11-27T10:40:21.365Z","dependency_job_id":"589d95ea-7011-4b73-b8b6-a04078c51958","html_url":"https://github.com/ZPascal/grafana_dashboard_templater","commit_stats":{"total_commits":48,"total_committers":3,"mean_commits":16.0,"dds":"0.41666666666666663","last_synced_commit":"ed3d625793028481c3b47d6680096684d0adcd9e"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/ZPascal/grafana_dashboard_templater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZPascal%2Fgrafana_dashboard_templater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZPascal%2Fgrafana_dashboard_templater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZPascal%2Fgrafana_dashboard_templater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZPascal%2Fgrafana_dashboard_templater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZPascal","download_url":"https://codeload.github.com/ZPascal/grafana_dashboard_templater/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZPascal%2Fgrafana_dashboard_templater/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266991020,"owners_count":24017732,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dashboard","grafana","monitoring","template"],"created_at":"2024-10-02T05:06:32.906Z","updated_at":"2025-07-25T10:33:37.569Z","avatar_url":"https://github.com/ZPascal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grafana dashboard templater ![Coverage report](https://github.com/ZPascal/grafana_dashboard_templater/blob/main/docs/coverage.svg)\n\n## Description\n\nThe Grafana dashboard templater create a valid Grafana dashboard as dictionary based on a template and injected values. You can find sample dashboards [here](./dashboard-templates/database), but note that you will need to adjust the appropriate settings for your own data sources.\n\n## Dashboard template folder structure\n\n```\ndashboard-templates \u003c- Folder of the dashboard templates\n     database \u003c- Dashboard type\n        postgresql \u003c- Dashboard name\n            v13 \u003c- Dashboard version\n                dashboard.json.sample \u003c- Dashboard template\n```\n\n## Installation\n\n`pip install grafana-dashboard-templater`\n\n## Example\n\n```python\nfrom grafana_dashboard.model import Model\nfrom grafana_dashboard.dashboard import Dashboard\n\ndashboard_model: Model = Model(dashboard_templates_path=\"./dashboard-templates\", dashboard_type=\"database\",\n                               dashboard_name=\"postgresql\", dashboard_version=\"v13\")\n\ndashboard: Dashboard = Dashboard(dashboard_model)\ndashboard_json = dashboard.get_dashboard_json(template_values={\"app_name\": \"PostgreSQL\", \"prometheus_name\": \"k8s-sonarqube-postgresql\"})\n```\n\n## Contribution\nIf you would like to contribute something, have an improvement request, or want to make a change inside the code, please open a pull request.\n\n## Support\nIf you need support, or you encounter a bug, please don't hesitate to open an issue.\n\n## Donations\nIf you want to support my work, I ask you to take an unusual action inside the open source community. Donate the money to a non-profit organization like Doctors Without Borders or the Children's Cancer Aid. I will continue to build tools because I like them, and I am passionate about developing and sharing applications.\n\n## License\nThis product is available under the Apache 2.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpascal%2Fgrafana_dashboard_templater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzpascal%2Fgrafana_dashboard_templater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpascal%2Fgrafana_dashboard_templater/lists"}