How do I get all the metrics that are used in all dashboards?

My team is evaluating the Grafana Cloud product, and since its pricing is based on the amount of active-series/data-series that are being sent to the server, we need a way to filter out unnecessary metrics.

Is there a way to get a list of all metrics that are being used in all of the active dashboards in my Grafana?