API or solution for Audience Stream connector data to PowerBi

Bronze Contributor
Bronze Contributor

Is there a way to monitor the connectors data like total, success, error for all connectors in PowerBi using an API or other solution? Because monitoring a large amount of connectors one by one is taking up lot of time.

2 REPLIES 2

API or solution for Audience Stream connector data to PowerBi

Gold Contributor
Gold Contributor
 

Yes, there are a few ways to monitor the connectors data like total, success, error for all connectors in Power BI using an API or other solution.

One way is to use the Power BI REST API. The Power BI REST API allows you to programmatically access and manage Power BI resources, including connectors. You can use the Power BI REST API to get the total, success, and error counts for all connectors.

To use the Power BI REST API, you will need to:

  1. Register an Azure Active Directory (Azure AD) application.
  2. Obtain a client secret for your Azure AD application.
  3. Use the client secret to authenticate to the Power BI REST API.
  4. Use the Power BI REST API to get the total, success, and error counts for all connectors.

Here is an example of how to use the Power BI REST API to get the total, success, and error counts for all connectors:

Code snippet
import requests

# Get the client secret for your Azure AD application.
client_secret = "your_client_secret"

# Create a request object.
headers = {
    "Authorization": "Bearer " + client_secret,
}

url = "https://api.powerbi.com/v1.0/myorg/connectors"

# Make a GET request to the Power BI REST API.
response = requests.get(url, headers=headers)

# Get the total, success, and error counts from the response.
total_count = response.json()["total"]
success_count = response.json()["success"]
error_count = response.json()["error"]

# Print the total, success, and error counts.
print("Total:", total_count)
print("Success:", success_count)
print("Error:", error_count)

Another way to monitor the connectors data like total, success, error for all connectors in Power BI is to use a third-party monitoring solution. There are a number of third-party monitoring solutions that can be used to monitor Power BI, including:

  • Microsoft Azure Monitor
  • AppDynamics
  • New Relic
  • Dynatrace

These third-party monitoring solutions can be used to collect data from Power BI, including data on the connectors. This data can then be used to monitor the connectors for errors and other issues.

Monitoring the connectors data like total, success, error for all connectors in Power BI is important for ensuring that the connectors are working properly and that data is being imported and exported successfully. By monitoring the connectors data, you can identify and resolve any issues with the connectors as soon as possible.

shivam joshi

API or solution for Audience Stream connector data to PowerBi

Tealium Employee

Hi @ST03 

I'd encourage you to log this as a Product Idea, as I know this is something the Product team are looking at.

Public