dub
                                
                                 dub copied to clipboard
                                
                                    dub copied to clipboard
                            
                            
                            
                        Exporting the Analytics Data
Our organization uses Prometheus and Grafana to view analytics, and we would really love to have all the analytics in one place. Is there any way to export the data periodically?
Hey, yes there is a way to export data periodically. we can use Prometheus API to get the data programmatically and Grafana supports scheduled exports. we can export and send data periodically using this. I can work on this
Exporting analytics data is especially important now that all paid Dub plans have limits on analytics retention. Pro and Business plan changed from unlimited link history to 1 and 2 years respectively.
@tonyflo thanks for the callout – will get this prioritized soon 
I can work on this if you want ? @steven-tey
A hacky fix if you self host dub, you can just plug MySQL with grafana and write SQL queries :)
@Prajwalprakash3722 sure, thank you! A good approach would be the way Plausible handles this: https://plausible.io/plausible.io
Let me clarify, do we want to export the analytics as:
- API (https://plausible.io/docs/stats-api)
- Download option (https://plausible.io/docs/export-stats)
- Expose it in Prometheus metric format
Plausible supports options 1 and 2.
Let's start with the Download Option @Prajwalprakash3722 🙏
Alright 🆗
Wanted to follow up here – this feature has been shipped: https://d.to/export
Shoutout to @flornkm for building this out!