This is documentation for the next version of Grafana documentation. For the latest stable release, go to the latest version.
Set up instantaneous pulling and dashboard previews in Pull Requests
Caution
Git Sync is available in public preview for Grafana Cloud, and is an experimental feature in Grafana v12 for open source and Enterprise editions. Documentation and support is available based on the different tiers but might be limited to enablement, configuration, and some troubleshooting. No SLAs are provided.
Git Sync is under development. Refer to Usage and performance limitations for more information. Contact Grafana for support or to report any issues you encounter and help us improve this feature.
After setup, you can optionally extend Git Sync by enabling pull request notifications and image previews of dashboard changes.
Set up webhooks for real-time notification and pull request integration
Real-time notifications (or automatic pulling) is enabled and configured by default in Grafana Cloud.
In Grafana OSS/Enterprise, Git Sync uses webhooks to enable real-time updates from GitHub public repositories, or to enable pull request integrations. Without webhooks the polling interval is set during configuration, and is 60 seconds by default. You can set up webhooks with whichever service or tooling you prefer: Cloudflare Tunnels with a Cloudflare-managed domain, port-forwarding and DNS options, or a tool such as ngrok.
To set up webhooks:
- Expose your Grafana instance to the public Internet.
- Use port forwarding and DNS, a tool such as
ngrok, or any other method you prefer. - The permissions set in your GitHub access token provide the authorization for this communication.
- After you have the public URL, add it to your Grafana configuration file:
[server]
root_url = https://<PUBLIC_DOMAIN>- Replace
<PUBLIC_DOMAIN>with your public domain.
To check the configured webhooks, go to Administration > General > Provisioning and click the View link for your GitHub repository.
Expose necessary paths only
If your security setup doesn’t permit publicly exposing the Grafana instance, you can either choose to allowlist the GitHub IP addresses, or expose only the necessary paths.
The necessary paths required to be exposed are, in RegExp:
/apis/provisioning\.grafana\.app/v0(alpha1)?/namespaces/[^/]+/repositories/[^/]+/(webhook|render/.*)$
Set up image rendering for dashboard previews
Caution
Only available in Grafana OSS and Grafana Enterprise.
Set up image rendering to add visual previews of dashboard updates directly in pull requests. Image rendering also requires webhooks.
To enable this capability, install the Grafana Image Renderer in your Grafana instance. For more information and installation instructions, refer to the Image Renderer service.
Next steps
To learn more about using Git Sync refer to the following documents:



