@kawaiipunk Grafana gets it's data from Prometheus, which is configured to scrape various http endpoints for metrics data in a specific format.
I wrote a tiny http server https://git.pixie.town/f0x/backup-monitoring-exporter that gets scraped by prometheus. my borg units have a postCreate hook where they send all borg's data of the repo in json to that same server, which can then convert them into prometheus metrics
this setup also links into alertmanager, so I get notifications when a repository hasn't had a successful backup in 24 hours