Skip to main content

Lineage Tab

When you open the Performance Analyzer on your DataDios data source (the datadios_self data source, see The DataDios Data Source), the Lineage tab shows how DataDios builds your lineage graphs: which rebuilds ran, which failed and why, how long each stage took, how big the graphs are, which vertices have the most edges, and how lineage reads and the lineage store are doing. It draws on the DD Lineage metric group, which is for Admin users and is extracted once an hour, so new rows appear once an hour.

Each view covers the date range you pick. Unless a view says otherwise below, a range longer than 28 days is drawn one point per day, and a shorter one is drawn one point per hour.

The twelve views​

ViewShapeWhat it shows
Recent RunsTableOne row per graph rebuild
Failures by Error ClassTableFailed and aborted rebuilds and data sources, counted by error class
Maximum Stage DurationLine chart, one line per stageThe longest time a stage took in each hour (or day)
Provider FailuresLine chart, one line per stageApplication-object kinds that failed to build
Graph Size by TypeLine chart, one line per typeActive vertices and edges in your graphs
Orphan Vertices by TypeLine chart, one line per typeActive vertices that have no active edge
Top HubsTableThe vertices with the most active edges
Most Queried EntitiesTableThe entities that lineage reads start from, by read count
Read Latency by RouteLine chart, one line per routeThe slowest lineage read in each hour (or day)
Read Health DetailsTableReads, slowest read, server failures and cut pages for each route
Write Batching (records per statement)Line chart, one line per operationRecords written for each statement sent to the lineage store
Store Health DetailsTableStatements, records, retries and failures of the lineage store for each operation

Maximum Stage Duration and Provider Failures are two views of the same Stage Duration group, Graph Size by Type and Orphan Vertices by Type are two views of the same Graph Size by Type group, Read Latency by Route and Read Health Details are two views of the same Read Health group, and Write Batching (records per statement) and Store Health Details are two views of the same Store Health group. The first of each pair is the one shown by default.

Recent Runs​

A table of graph rebuilds, newest hour first, limited to 50 rows. Within an hour, runs that did not succeed come before runs that did, so a failure is not pushed off the 50 rows by successes.

ColumnWhat it holds
HourThe hour the run was recorded
Graph ID, Run IDThe graph and the rebuild
Outcomesucceeded, failed or aborted
Error ClassWhy a run failed or was aborted (see below)
Duration (ms)How long the run took
Members, Members FailedHow many data sources the final pass of the run built, and how many of them failed
Entities, EdgesThe size of the graph after the run. Only a succeeded run has these

aborted means the graph was deleted while it was being built, or the worker building it died and its lease ran out. A run that is aborted for the second reason has the error class timeout.

The Error Class is one of:

Error classMeaning
timeoutThe work ran out of time, or the worker building the graph died
connectionA connection or network problem with a data source
authA data source's credentials were refused
storeThe lineage store failed or was unavailable
dataA required input was not usable, for example a metadata refresh that was still running
unknownThe cause could not be classified

The error text itself never appears in these views. It stays on the run's own record.

Failures by Error Class​

A table that counts runs and data sources whose outcome is failed or aborted. It has one row for each combination of these columns, with the biggest count first.

ColumnWhat it holds
Run or MemberRun for a whole rebuild, Data-source member for one data source inside a rebuild
Source TypeThe data source type for a member row. A run row shows All sources
Error ClassAs above
FailuresHow many

Members are counted by source type, so two data sources of the same type are counted together. If nothing failed in the date range, the table is empty.

Maximum Stage Duration​

The longest single stage, in milliseconds, in each hour (each day for a range over 28 days), with one line for each stage. The stages are bootstrap (a data source's table build), dbt, airflow and databricks (the transform and job lineage added to a data source), and declarations, rollups and application_objects (steps that run once per pass over the whole graph).

Two more stages come from GitHub code files, not from a graph build: code_links (a file's links, read when it is opened in the Data Explorer Lineage tab) and code_functions (a file's function list, read by the Lineage tab, the Metadata tab, and again on every open of a file with no links). Each event is one read of one file, so the counts are reads, not distinct files. The time is the parse, plus for code_links the lookups of saved files for its imports; it never includes the download from GitHub. They have no graph or run.

A stage that never started has no row.

Provider Failures​

The number of application-object kinds that failed to build, counted per stage in each hour (each day for a range over 28 days). Only the application_objects stage can be above 0. Other stages show 0.

This is a count of failed kinds in each pass, not a count of distinct providers and not a count of failed runs:

  • A kind that fails in two passes of the same run counts twice.
  • The run still succeeds. A failed kind is a note on a succeeded run.
  • A kind whose listing came back empty, and an object that was dropped or collided with another, are not counted. DataDios only logs a warning for them.
  • A stage that raised an error is not counted here. It fails the whole run, and Failures by Error Class counts it.

Graph Size by Type​

The number of active vertices and edges, added up across your graphs, with one line for each type. The eight types that are largest at their peak in the date range get a line of their own. All the others are added together as Other.

Graph size is measured after each successful rebuild. Between two rebuilds, DataDios carries each graph's latest measurement forward, so a graph that is rebuilt once a day does not drop to zero in the hours in between. The measurement can come from up to 11 days before the start of the date range, so a graph that is rebuilt once a week stays on the chart between rebuilds.

Orphan Vertices by Type​

The number of active vertices that have no active edge, one line for each vertex type, with the same eight-types-and-Other rule and the same carrying-forward as Graph Size by Type.

Top Hubs​

A table of the vertices that have the most active lineage edges, biggest first. After each successful rebuild, DataDios records the ten vertices of the graph with the most active edges. Contains edges are structure and are not counted. The table shows up to 10 rows.

ColumnWhat it holds
GraphThe graph the vertex is in
Entity, TypeThe vertex's name and type. If the name changed in the date range, the newest name in the range is shown, cut to 128 characters
Edges In, Edges OutActive edges that point to the vertex, and active edges that leave it

Each vertex is ranked by its peak total (Edges In plus Edges Out) in the date range, so a vertex that has lost most of its edges since still ranks by its count at its peak in the window. Edges In and Edges Out both come from that one peak measurement, so they never mix two different hours. A vertex that was outside the ten biggest of its graph at every rebuild in the range is not listed. Ties are broken by graph and then by vertex ID.

Most Queried Entities​

A table of the entities that lineage reads start from, most-read first. It counts requests to the lineage entity, relationship, full-graph, live-graph and declaration reads, grouped by the graph and the entity the read starts from.

ColumnWhat it holds
Graph, Entity ID, Entity, TypeThe graph, and the entity the reads start from. If the name or type changed in the date range, the newest one is shown
Read AttemptsHow many reads started from the entity. Failed and denied reads count
Slowest (ms)The longest single read
Pages CutHow many reads came back cut short. Only a response marked as truncated counts. Ordinary paging does not

Keep these limits in mind:

  • A read that is refused before it reaches the lineage handler, for example for lack of permission on the route, is not recorded.
  • A read that the graph-level check refuses is recorded without a graph. Those reads are grouped into their own row, with an empty Graph.
  • Each hour, DataDios keeps the 1,000 most-read graph and entity pairs for your tenant. Less-read pairs are folded into rows that have no entity, so they do not appear here. Request totals in Read Health Details stay exact.

Read Health​

The lineage reads of each route. The 24 hours range is drawn one point per hour. Every other range, including a custom one, is drawn one point per day. This view does not use the 28-day rule. The route is the URL pattern of the lineage read.

Read Latency by Route is the default view. It draws Slowest (ms), one line for each route. Read Health Details is the table with every measure:

ColumnWhat it holds
Date, RouteThe hour (or day) and the route
ReadsHow many reads were requested, whatever they answered
Slowest (ms)The longest single read
Server FailuresReads that were answered with a server error (status 500 to 599). This includes the 503 a tenant gets while lineage is switched off
Pages CutAs in Most Queried Entities

Store Health​

How the lineage store, where the graphs are kept, is doing, for each operation. Like the other charts, it is drawn one point per hour up to 28 days and one point per day beyond. The operations are write, walk, search and canvas. DataDios records these measures with every rebuild, and also when a read fails after the store itself failed.

Write Batching (records per statement) is the default view. It draws Records / statement, one line for each operation. Store Health Details is the table with every measure:

ColumnWhat it holds
Date, OperationThe hour (or day) and the operation
StatementsHow many statements were sent to the store
RecordsHow many records were written
Records / statementRecords divided by Statements
Conflict RetriesRetries after a conflict between concurrent writers
Retries ExhaustedWrites that ran out of retries
Store UnavailableTimes the store was unavailable
Statements FailedStatements whose required work was refused or timed out. A conflict counts as a retry instead

Statements also includes the read-backs and the measurements taken after a build. Records / statement therefore shows whether batching works. It is not the size of a write batch. Batching that silently stops shows as the write line falling toward 1. Watch the chart. There is no rule for it.

If a worker dies and its lease runs out, the counts of that rebuild die with it. That rebuild's counts are missing from the hour.

Alert rules to create​

DataDios does not create any rules for you. Create them in Workload Alerts from the graph, with these starting values. Each of these views refreshes once an hour, so a rule's check interval cannot be shorter than 60 minutes.

RuleViewCondition
A rebuild failedFailures by Error Class, Run or Member = RunFailures is greater than 0
A data source keeps failingFailures by Error Class, Run or Member = Data-source memberFailures is greater than or equal to 2 over a one-day window, with Aggregation = max
A provider failedProvider Failures, stage application_objectsProvider Failures is greater than 0
Concurrent writers ran out of retriesStore Health Details, Operation = writeMetric column = retries_exhausted is greater than 0, with Aggregation = max
The lineage store is unavailableStore Health DetailsMetric column = store_unavailable is greater than 0 for any Operation, with Aggregation = max
  • A rebuild failed. Rows with the class timeout that are aborted mean a worker died or the graph was deleted mid-build. Several of them in a day point to a worker dying during builds, not to a bad graph.
  • A data source keeps failing. The view has one row for each source type and error class. Aggregation = max takes the largest single row, so the rule fires when any one source type and error class reaches 2 failures. The default, mean, averages the rows, so one source can hide behind the others. connection and auth are the data source's own problem (credentials, network). store is DataDios's.
  • A provider failed. See Provider Failures for what is counted.
  • The two store rules. Store Health Details is not the default view of its pair. Pick Store Health Details from the card's metric dropdown first. The alert form starts on the first numeric column, Statements, so set Metric column to retries_exhausted or store_unavailable. Left unchanged, the rule watches Statements. Operation lists write, walk, search and canvas up front, so write can always be selected.
  • Concurrent writers ran out of retries. The view has one row for each hour and operation. Aggregation = max takes the largest row, so one bad hour fires the rule. min would hide it. A rebuild that ran out of retries also failed with the error class store, so A rebuild failed fires as well. Conflict Retries rising while Retries Exhausted stays at 0 is the warning before it.
  • The lineage store is unavailable. Reads see it first: Server Failures in Read Health Details rises with it. That count also includes the 503 a tenant gets while lineage is switched off, so use Store Unavailable for the rule.

An empty result and your rules​

What an empty result means depends on the column a rule watches. These columns declare that a result with no rows means zero:

ViewReads 0 on an empty resultKeeps the rule's state
Failures by Error ClassFailures
Provider FailuresProvider Failures
Read Health Details and Read Latency by RouteServer Failures, Pages CutReads, Slowest (ms)
Store Health Details and Write Batching (records per statement)Conflict Retries, Retries Exhausted, Store Unavailable, Statements FailedStatements, Records, Records / statement

A rule on one of these failure counts reads 0, not "no data", in an hour with no failures, and a rule that was firing resolves when the failures stop. A latency, a read count or a ratio has no value when nothing was measured, so a rule on it gets no reading and keeps the state it had.

Top Hubs, Most Queried Entities, Graph Size by Type and Orphan Vertices by Type are the heavy views. A query stops after 30 seconds, and the view shows "Query exceeded its 30000 ms time limit". An alert whose check times out gets no reading: it keeps its current state and sends nothing.

The other views, Maximum Stage Duration, Graph Size by Type, Orphan Vertices by Type, Top Hubs and Most Queried Entities, have no such rule. If they return no rows, the rule gets no reading, and keeps the state it had.

The same thing happens when the hourly extraction stops: no new rows arrive, the view returns nothing, the rules on the failure counts read 0 and resolve. A stopped extraction therefore looks the same as a healthy hour with no failures. The store rules behave the same way when nothing was built, no read failed, or the extraction stopped.

Pair these rules with a scheduler alert that fires when the job that extracts the DD Lineage group fails or is overdue. That job is the one named <data source>_DD_Lineage_wl_extraction in the scheduler. It catches an extraction that has stopped, which the rules above cannot. It does not catch an extraction that runs but reads nothing.

Known limits​

  • A deleted graph can stay in Graph Size by Type and Orphan Vertices by Type for up to 11 days. Graph deletion is not recorded as a size event, so these views carry the graph's last measurement forward, including into the days after it was deleted, until it is 11 days old. The 11 days count back from the start of the date range, so on a longer range a deleted graph stays to the end of the chart. They show the last measured state. The graph's own record, not these views, tells you whether a graph still exists.
  • A live graph can drop out of Graph Size by Type and Orphan Vertices by Type. A graph with no size measurement in the date range or in the 11 days before its start, for example because its rebuilds fail or skip the measurement, or because it is set to rebuild manually and has not been rebuilt, is not drawn. The chart shows that as a fall, not as the graph shrinking.
  • Two rebuilds of one graph in the same hour tie. The views group by hour, so either of the two rebuilds may be shown, not always the later one, until the next rebuild.
  • A rule on Graph Size by Type or Orphan Vertices by Type costs a scan of the last 11 days of measurements each time it is checked. The cost grows with the number of graphs. It was tested at about 100 graphs. On a tenant with hundreds of graphs, keep the number of such rules small.