{"id":50385231,"url":"https://github.com/stackhpc/ansible-role-grafana-conf","last_synced_at":"2026-05-30T14:31:12.167Z","repository":{"id":37765131,"uuid":"111669091","full_name":"stackhpc/ansible-role-grafana-conf","owner":"stackhpc","description":"Ansible role for configuring Grafana dashboards and data sources","archived":false,"fork":false,"pushed_at":"2022-08-03T08:02:24.000Z","size":34,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-14T22:50:17.262Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/stackhpc.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":".github/CODEOWNERS","security":null,"support":null}},"created_at":"2017-11-22T10:20:22.000Z","updated_at":"2022-07-27T14:28:31.000Z","dependencies_parsed_at":"2022-08-08T21:31:18.407Z","dependency_job_id":null,"html_url":"https://github.com/stackhpc/ansible-role-grafana-conf","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/stackhpc/ansible-role-grafana-conf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fansible-role-grafana-conf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fansible-role-grafana-conf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fansible-role-grafana-conf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fansible-role-grafana-conf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackhpc","download_url":"https://codeload.github.com/stackhpc/ansible-role-grafana-conf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhpc%2Fansible-role-grafana-conf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33696681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"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":[],"created_at":"2026-05-30T14:31:11.325Z","updated_at":"2026-05-30T14:31:12.163Z","avatar_url":"https://github.com/stackhpc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Configure Grafana datasources and dashboards\n============================================\n\nA simple role for loading dashboards and datasources for\nGrafana. It follows the rule that if a dashboard or datasource\nwith the same name already exists, then it is not updated. \n\nIt currently works at the organisation level.\n\nUsage\n-----\n\nAn example of how to use the role is included in ```example/```.\n\nRequires Ansible \u003e=2.2. If your distro doesn't provide this\nyou can run Ansible from a venv:\n\n1. Create venv: ```$ virtualenv ansible```\n2. Activate venv: ```$ source ansible/bin/activate```\n3. Update pip (optional): ```$ pip install -U pip```\n4. Install Ansible: ```$ pip install ansible```\n\nCreating dashboards\n-------------------\n\nTo prevent Grafana stripping out datasource names dashboards\nshould be downloaded via the API. This can be done via [curl](http://docs.grafana.org/tutorials/api_org_token_howto/#api-tutorial-how-to-create-api-tokens-and-dashboards-for-a-specific-organization),\nor via a browser. In this case an example is given for a\nbrowser.\n\nIn Grafana switch to the organisation in which the dashboard you\nwish to save is located. Then in the same browser access the\ndashboard via the API:\n\nhttp://10.1.2.3:3000/api/dashboards/db/tenant-logs\n\nThis will return the dashboard as a JSON string. To allow the\ndashboard to load successfully it is required to nullify the\ndashboard id. For example:\n\n```\n\u003csnip\u003e\n\"dashboard\":{\n  \"annotations\":{\"list\":[]},\n  \"editable\":true\",\n  \"gnetId\":null,\n  \"hideControls\":false,\n  \"id\":null,                               \u003c-- Must be null\n  \"links\":[],\n  \"rows\": \u003c/snip\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackhpc%2Fansible-role-grafana-conf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackhpc%2Fansible-role-grafana-conf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackhpc%2Fansible-role-grafana-conf/lists"}