Coder Social home page Coder Social logo

efficiencygeek / pbi-dataops-monitoring Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kerski/pbi-dataops-monitoring

0.0 0.0 0.0 9.77 MB

Templates for monitoring Power BI components and related Power Platform elements for your data analytics projects

License: MIT License

PowerShell 100.00%

pbi-dataops-monitoring's Introduction

pbi-dataops-monitoring

Templates for monitoring Power BI components and related Power Platform elements for your data analytics projects.

Table of Contents

  1. Introduction
  2. Prerequisites
  3. Installation
  4. Monitoring Power Automate Flows
  5. Exceptions with unscheduled Power BI Datasets
  6. Azure DevOps Pipeline Monitoring - Add On

Introduction

Embracing the DataOps principle "Monitor Quality and Performance", this repository provides a set of templates and instructions for monitoring your Power BI solution/projects. If you're an administrator of a workspace or multiple workspaces you should be monitoring your datasets and/or dataflows. In addition, you may leverage Power Automate to schedule refreshes, deliver reports, move data between environments, or use the Power Automate visual in Power BI. All these components are crucial to your solution working and relying on email alone can be problematic due to alert fatigure or incorrect settings for how email notifications are sent.

The Power BI templates in this repository help you monitor for issues such as:

Power BI Issues

  1. Unresolved Failed Dataset Refreshes - If the latest dataset refresh has failed this template identifies the issue.
  2. Unscheduled Dataset Refresh - If a dataset fails multiple times then the schedule refresh is disabled. This can lead to latent data and this template highlights this issue.
  3. Long-running dataset refreshs - If a dataset is taking longer than two hours to run this is generally a concern and should be investigated.
  4. Unresolved Failed Dataflows Refreshes - If the latest dataflow has failed this template identifies the issue.
  5. Number of Data Quality Issue Tables within Dataset - If the dataset has hidden tables that start with "Errors in", this template identifies the issue. This indicates existing or prior cell-level errors that need to be resolved (and tables deleted).

Power Automate Issues

  1. Unresolved Failure with Scheduled Power Automate Flows - If the latest schedule flow in Power Automate fails this template identifies the issue.
  2. Failed Manually Triggered Power Automate Flows in past 72 hours - If manually triggered flows (often through Power Automate visuals) fail this template highlights this issue.

Prerequisites

To help automate checks of the issues, the templates use two open-source customer connectors.

Commercial Tenant

Please follow the instructions for the following connectors:

Power Query Custom Data Connector for Power BI REST APIs

Power Query Custom Data Connector for Power Automate REST APIs

Government Community Cloud (GCC) Tenant

Please follow the instructions for the following connectors:

Power Query Custom Data Connector for Power BI REST APIs

Power Query Custom Data Connector for Power Automate REST APIs

On-Premises Gateway

The custom data connectors will need to be installed in the a Power BI Gateway in order to refresh the monitoring template in the Power BI Service. For more information on installing a custom data connector with a gateway please see: https://learn.microsoft.com/en-us/power-bi/connect-data/service-gateway-custom-connectors.

Installation

  1. Download the appropriate .pbit file from the latest Release section.

  2. Open the .pbit template.

  3. You will see a prompt as shown in the Figure 1

Template Prompt Figure 1 - Example of Template Prompt

  1. In the field "Workspace(s) Query" enter the OData query that identifies the workspace or workspaces you wish to monitor.

For example if the workspace you wish to monitor is named 'Test1' you will enter "name eq 'Test1'".

For another example if the workspaces you wish to monitor are named 'Test1' and 'Test2' you will enter "name eq 'Test1' or name eq 'Test2'".

  1. Select the "Load" button. If this is your first time using the custom data connectors you will be prompted to sign into Office 365. Please follow the instructions to sign in and then choose the "Connect" button.

Sign-In Figure 2 - Sign In Prompt

  1. and the template will load.

Refresh in Progress Figure 3 - Example of Refresh In Progress 6. When completed you should see the Home tab of the monitoring report.

Example of Home tab Figure 4 - Example of Power BI Monitoring Report

  1. Please save this file. If you do not have a gateway installed, you will need to refresh this file locally to pull the latest information.

Monitoring Power Automate Flows

Since the connector uses the OAuth of the logged in accountto get the Power Automate flows, it's possible that you do not want to monitor all the Power Automate flows that are retrieved by the template. To specify the Power Automate flows you wish to monitor, within the template follow these steps:

  1. Open Power Query.

  2. Navigate to the table "Power Automate Flows".

  3. Filter the "Name" and specify with flows you wish to monitor.

Power Automate Figure 5 - Screenshot of where to filter the Power Automate flows that you wish to monitor.

Exceptions with unscheduled Power BI Datasets

If there are datasets that do not require an automated refresh scheduled with the Power BI Dataset settings, you can add those datasets to an exception list. Within the template, please follow these steps:

  1. Open Power Query.

  2. Navigate to the table "Refresh Exception List"

  3. Within the "Query Settings" pane, click the cog icon next to the "Source" step.

Refresh Exception List Figure 6 - Screenshot of where to add/update datasets on the refresh exception list.

  1. Add/Update the names of the datasets you wish to have an exception. When complete, click the "OK" button. Please note the name of the dataset must match exactly the name in the Power BI service.

Create Table Figure 7 - Example of editing refresh exception list

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.