Skip to content

Push metrics to leadership dashboards (Grafana / BI)

Engineers live in Understand; leadership lives in dashboards. You can bridge the two by exporting Understand's metrics on a schedule and feeding them into whatever your organization already watches — Grafana, a BI tool, or a shared spreadsheet — so managers see code-health trends without anyone learning a new tool.

1. Export metrics headlessly

The und metrics command produces the same data as the GUI Metrics Export, from the command line — ideal for a scheduled job:

# Project-wide CSV, one row per entity (defaults to all enabled, applicable metrics)
und metrics outputfile.csv project.und

Many reports can also be used to export a CSV of metrics. The default metrics export only works for entities, so to get architecture metrics instead you can use the "Architecture Metrics CSV" report:

# Project-wide CSV, one row per architecture (defaults to summary metrics)
und report -format csv "Architecture Metrics CSV" output_directory project.und

Roll up by architecture, not by file

Leadership wants subsystem-level trends, not thousands of function rows. Build an architecture that matches how the org thinks about the product, then export architecture metrics so each row is a component leaders recognize.

2. Schedule it

Run the export automatically so the dashboard stays current:

3. Feed the dashboard

Point your dashboard at the exported data:

  • Grafana / BI — ingest the CSV (or load it into the database/table your dashboard already reads). Each scheduled export becomes a new data point, so you get trend lines over releases.
  • Spreadsheet — the CSV opens directly; chart the columns you care about (CCViolDensityCode, average Cyclomatic, coverage, custom metrics).

The Entity_Uniquename column lets your dashboard match the same entity across runs even when names collide.

Understand doesn't ship a Grafana connector

The integration is via the exported files/data, not a built-in plugin — which is what keeps it tool-agnostic. Any dashboard that can read a CSV or a table can consume it.

Where to next