Skip to main content

Data health tile

With data health tiles, stakeholders will get an at-a-glance confirmation on whether the data they’re looking at is stale or degraded. It allows teams to immediately go back into Explorer to see more details and investigate issues.

The data health tile:

  • Distills data health signals for data consumers.
  • Deep links you into dbt Explorer where you can further dive into upstream data issues.
  • Provides richer information and makes it easier to debug.
  • Revamps the existing, job-based tiles.

Data health tiles rely on exposures to surface data health signals in your dashboards. When you configure exposures in your dbt project, you are explicitly defining how specific outputs—like dashboards or reports—depend on your data models.

Example of passing Data health tile in your dashboard.Example of passing Data health tile in your dashboard.
Embed data health tiles in your dashboards to distill data health signals for data consumers.Embed data health tiles in your dashboards to distill data health signals for data consumers.

Prerequisites

View exposure in dbt Explorer

First, be sure to enable source freshness in the job that generates this exposure.

  1. Navigate to dbt Explorer by clicking on the Explore link in the navigation.
  2. In the main Overview page, go to the left navigation.
  3. Under the Resources tab, click on Exposures to view the exposures list.
  4. Select a dashboard exposure and go to the General tab to view the data health information.
  5. In this tab, you’ll see:
    • Name of the exposure.
    • Data health status: Data freshness passed, Data quality passed, Data may be stale, Data quality degraded.
    • Resource type (model, source, and so on).
    • Dashboard status: Failure, Pass, Stale.
    • You can also see the last check completed, the last check time, and the last check duration.
  6. You can click the Open Dashboard button on the upper right to immediately view this in your analytics tool.
View an exposure in dbt Explorer.View an exposure in dbt Explorer.

Embed in your dashboard

Once you’ve navigated to the exposure in dbt Explorer, you’ll need to set up your data health tile and service token. You can embed data health tile to any analytics tool that supports URL or iFrame embedding.

Follow these steps to set up your data health tile:

  1. Go to Account settings in dbt Cloud.
  2. Select API tokens in the left sidebar and then Service tokens.
  3. Click on Create service token and give it a name.
  4. Select the Metadata Only permission. This token will be used to embed the tile in your dashboard in the later steps.
Set up your dashboard status tile and service token to embed a data health tileSet up your dashboard status tile and service token to embed a data health tile
  1. Copy the Metadata Only token and save it in a secure location. You'll need it token in the next steps.
  2. Navigate back to dbt Explorer and select an exposure.
  3. Below the Data health section, expand on the toggle for instructions on how to embed the exposure tile (if you're an account admin with develop permissions).
  4. In the expanded toggle, you'll see a text field where you can paste your Metadata Only token.
Expand the toggle to embded data health tile into your dashboard.Expand the toggle to embded data health tile into your dashboard.
  1. Once you’ve pasted your token, you can select either URL or iFrame depending on which you need to add to your dashboard.

If your analytics tool supports iFrames, you can embed the dashboard tile within it.

Examples

The following examples show how to embed the data health tile in Tableau and PowerBI.

You can embed the data health tile iFrame in PowerBI using PowerBI Pro Online, Fabric PowerBI, or PowerBI Desktop.

Embed data health tile iFrame in PowerBIEmbed data health tile iFrame in PowerBI

Follow these steps to embed the data health tile in PowerBI:

  1. Create a dashboard in PowerBI and connect to your database to pull in the data.
  2. Create a new PowerBI measure by right-clicking on your Data, More options, and then New measure.
Create a new PowerBI measure.Create a new PowerBI measure.
  1. Navigate to dbt Explorer, select the exposure, and expand the Embed data health into your dashboard toggle.

  2. Go to the iFrame tab and copy the iFrame code. Make sure the Metadata Only token is already set up.

  3. In PowerBI, paste the iFrame code you copied into your measure calculation window. The iFrame code should look like this:

        Website =
    "<iframe src='https://1234.metadata.ACCESS_URL/exposure-tile?uniqueId=exposure.EXPOSURE_NAME&environmentType=staging&environmentId=123456789&token=YOUR_METADATA_TOKEN' title='Exposure status tile' height='400'></iframe>"
    In the 'Measure tools' tab, replace your values with the iFrame code.In the 'Measure tools' tab, replace your values with the iFrame code.
  4. PowerBI desktop doesn't support HTML rendering by default, so you need to install an HTML component from the PowerBI Visuals Store.

  5. To do this, go to Build visuals and then Get more visuals.

  6. Login with your PowerBI account.

  7. There are several third-party HTML visuals. The one tested for this guide is HTML content. Install it, but please keep in mind it's a third-party plugin not created or supported by dbt Labs.

  8. Drag the metric with the iFrame code into the HTML content widget in PowerBI. This should now display your data health tile.

Drag the metric with the iFrame code into the HTML content widget in PowerBI. This should now display your data health tile.Drag the metric with the iFrame code into the HTML content widget in PowerBI. This should now display your data health tile.

Refer to this tutorial for additional information on embedding a website into your Power BI report.

Job-based data health Legacy

The default experience is the environment-based data health tile with dbt Explorer.

This section is for legacy job-based data health tiles. If you're using the revamped environment-based exposure tile, refer to the previous section. Expand the following to learn more about the legacy job-based data health tile.

 Job-based data health
0