Forum Discussion
Padmanabhan
Helper II
10 months agoFabric metric extraction using rest api
I extracted the needed metrics of fabric using the powerBI rest API. "https://api.powerbi.com/v1.0/myorg/groups/{workspace_id}/datasets/{dataset_id}/executeQueries" But the data is extracted on...
- 10 months ago
I'd suggest -
Resume the capacity via API just before pulling metrics (then pause again). Use the Azure Fabric Capacities REST API: POST .../providers/Microsoft.Fabric/capacities/{capacityName}/resume and .../suspend for pause; automate with Logic Apps/Runbooks.
then turn it off.
Padmanabhan
Helper II
10 months agoHi,
I am doing a cost optimization recommendation, for that i need to extract the cu consumption metrics.
And i am extracting it through a power BI rest API .
And also i am using a batch scheduler to extract metrics for all services . In that case when fabric is paused this task flow is failing.
tayloramy
Super User
10 months agoHi Padmanabhan,
In order to get the capacity utilization metrics, the capacity needs to be active. I think both capacity metrics and the capacity utilization events in RTH require the capacity to be active, not suspended.
I don't think you can do this without enabling the capacity.
If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.