Skip to main content

Check out Port for yourself ➜ 

Measure delivery reliability and stability

Measuring delivery reliability and stability provides visibility into how consistently software changes move from commit to production, and where breakdowns disrupt engineering flow. By making failures, delays, and recovery patterns observable, teams can distinguish isolated issues from systemic instability that affects delivery outcomes.

Without this visibility, workflow failures and CI/CD friction are treated as one-off incidents rather than recurring signals, making it difficult to prioritize improvements, reduce delivery risk, and sustain predictable throughput as the organization scales.

This guide helps engineering managers, platform engineers, and product leaders answer questions such as:

  • Workflow failures: How often do CI/CD workflows fail, and where do failures concentrate?
  • Bottlenecks: Which workflows or services have the highest failure rates?
  • Impact on delivery: How frequently do failing workflows block pull requests and slow down delivery?

By the end of this guide, you'll have a working dashboard that tracks key reliability and stability metrics, enabling you to identify unstable workflows, measure the impact of failures on delivery, and prioritize improvements to your CI/CD infrastructure.

Common use cases

  • Track workflow failure rates to identify unstable CI/CD pipelines.
  • Monitor PRs blocked by failing CI/CD to understand delivery bottlenecks.
  • Identify services and workflows with the highest failure rates.
  • Understand where instability concentrates across services and teams.

Prerequisites

This guide assumes the following:

  • You have a Port account and have completed the onboarding process.
  • Port's GitHub integration is installed in your account.
  • The githubPullRequest and githubRepository blueprints are already created (these are created when you install the GitHub integration).
Initial scope

This guide focuses on measuring reliability and stability using source control management (SCM) data, including repositories, pull requests, and workflows. This is the first iteration of reliability and stability measurement and will expand in future versions to include additional metrics and data sources such as monitoring tools, and other operational signals.

Key metrics overview

We will track three key metrics to measure reliability and stability:

MetricWhat it measuresWhy it matters
Workflow failure rateHow often CI/CD workflows fail and where failures occurIdentifies unstable workflows and services that need attention, helping prioritize infrastructure improvements
PRs blocked by failing CI/CDNumber of pull requests blocked by failed workflow runsShows the direct impact of CI/CD failures on delivery velocity and helps quantify the cost of instability
CI/CD failure concentrationDistribution of CI/CD failures across workflows, services, or reposHelps to identify recurring failure patterns and prioritise the most important issues to fix

Set up data model

We will create blueprints to model your GitHub workflow data. The githubPullRequest and githubRepository blueprints should already exist from the GitHub integration installation.

Create the GitHub workflow blueprint

  1. Go to the Builder page of your portal.

  2. Click on + Blueprint.

  3. Click on the {...} button in the top right corner, and choose Edit JSON.

  4. Add this JSON schema:

    GitHub workflow blueprint (Click to expand)
    {
    "identifier": "githubWorkflow",
    "title": "Workflow",
    "icon": "Github",
    "schema": {
    "properties": {
    "path": {
    "title": "Path",
    "type": "string"
    },
    "status": {
    "title": "Status",
    "type": "string",
    "enum": [
    "active",
    "deleted",
    "disabled_fork",
    "disabled_inactivity",
    "disabled_manually"
    ],
    "enumColors": {
    "active": "green",
    "deleted": "red"
    }
    },
    "createdAt": {
    "title": "Created At",
    "type": "string",
    "format": "date-time"
    },
    "updatedAt": {
    "title": "Updated At",
    "type": "string",
    "format": "date-time"
    },
    "deletedAt": {
    "title": "Deleted At",
    "type": "string",
    "format": "date-time"
    },
    "link": {
    "title": "Link",
    "type": "string",
    "format": "url"
    }
    },
    "required": []
    },
    "mirrorProperties": {},
    "calculationProperties": {},
    "aggregationProperties": {},
    "relations": {
    "repository": {
    "title": "Repository",
    "target": "githubRepository",
    "required": false,
    "many": false
    }
    }
    }
  5. Click Save to create the blueprint.

Create the GitHub workflow run blueprint

  1. Go to the Builder page of your portal.

  2. Click on + Blueprint.

  3. Click on the {...} button in the top right corner, and choose Edit JSON.

  4. Add this JSON schema:

    GitHub workflow run blueprint (Click to expand)
    {
    "identifier": "githubWorkflowRun",
    "title": "Workflow Run",
    "icon": "Github",
    "schema": {
    "properties": {
    "name": {
    "title": "Name",
    "type": "string"
    },
    "triggeringActor": {
    "title": "Triggering Actor",
    "type": "string"
    },
    "status": {
    "title": "Status",
    "type": "string",
    "enum": [
    "completed",
    "action_required",
    "cancelled",
    "startup_failure",
    "failure",
    "neutral",
    "skipped",
    "stale",
    "success",
    "timed_out",
    "in_progress",
    "queued",
    "requested",
    "waiting"
    ],
    "enumColors": {
    "queued": "yellow",
    "in_progress": "yellow",
    "success": "green",
    "failure": "red"
    }
    },
    "conclusion": {
    "title": "Conclusion",
    "type": "string",
    "enum": [
    "completed",
    "action_required",
    "cancelled",
    "startup_failure",
    "failure",
    "neutral",
    "skipped",
    "stale",
    "success",
    "timed_out",
    "in_progress",
    "queued",
    "requested",
    "waiting"
    ],
    "enumColors": {
    "queued": "yellow",
    "in_progress": "yellow",
    "success": "green",
    "failure": "red"
    }
    },
    "createdAt": {
    "title": "Created At",
    "type": "string",
    "format": "date-time"
    },
    "runStartedAt": {
    "title": "Run Started At",
    "type": "string",
    "format": "date-time"
    },
    "updatedAt": {
    "title": "Updated At",
    "type": "string",
    "format": "date-time"
    },
    "runNumber": {
    "title": "Run Number",
    "type": "number"
    },
    "runAttempt": {
    "title": "Run Attempts",
    "type": "number"
    },
    "link": {
    "title": "Link",
    "type": "string",
    "format": "url"
    },
    "headBranch": {
    "title": "Head Branch",
    "description": "The branch that triggered the workflow run",
    "type": "string"
    }
    },
    "required": []
    },
    "mirrorProperties": {
    "repository": {
    "title": "Repository",
    "path": "workflow.repository.$title"
    }
    },
    "calculationProperties": {},
    "aggregationProperties": {},
    "relations": {
    "pullRequests": {
    "title": "Pull Requests",
    "target": "githubPullRequest",
    "required": false,
    "many": true
    },
    "workflow": {
    "target": "githubWorkflow",
    "required": true,
    "many": false
    }
    }
    }
  5. Click Save to create the blueprint.

Update integration mapping

Now we'll configure the GitHub integration to ingest workflow and workflow run data into your catalog. If you already have existing mappings for repositories and pull requests, make sure to include the workflow and workflow-run kinds.

Branch property required

For the workflow run to pull request relation to work correctly, ensure your githubPullRequest blueprint has a branch property. If it doesn't exist, add it to the blueprint schema as a string property. The mapping below includes the branch property in the pull request mapping.

  1. Go to your Data Source page.

  2. Select the GitHub integration.

  3. Add or update the following YAML block in the editor to ingest data from GitHub:

    GitHub integration configuration (Click to expand)
    resources:
    - kind: repository
    selector:
    query: 'true'
    teams: true
    port:
    entity:
    mappings:
    identifier: .full_name
    title: .name
    blueprint: '"githubRepository"'
    properties:
    readme: file://README.md
    url: .html_url
    defaultBranch: .default_branch
    last_push: .pushed_at
    - kind: pull-request
    selector:
    query: 'true'
    closedPullRequests: false
    port:
    entity:
    mappings:
    identifier: .id|tostring
    title: .title
    blueprint: '"githubPullRequest"'
    properties:
    status: .status
    closedAt: .closed_at
    updatedAt: .updated_at
    mergedAt: .merged_at
    createdAt: .created_at
    link: .html_url
    branch: .head.ref
    leadTimeHours: >-
    (.created_at as $createdAt | .merged_at as $mergedAt | ($createdAt
    | sub("\\..*Z$"; "Z") | strptime("%Y-%m-%dT%H:%M:%SZ") | mktime)
    as $createdTimestamp | ($mergedAt | if . == null then null else
    sub("\\..*Z$"; "Z") | strptime("%Y-%m-%dT%H:%M:%SZ") | mktime end)
    as $mergedTimestamp | if $mergedTimestamp == null then null else
    (((($mergedTimestamp - $createdTimestamp) / 3600) * 100 | floor) /
    100) end)
    pr_age: >-
    ((now - (.created_at | sub("\\.[0-9]+Z$"; "Z") | fromdateiso8601))
    / 86400) | round
    pr_age_label: >-
    ((now - (.created_at | sub("\\.[0-9]+Z$"; "Z") | fromdateiso8601))
    / 86400 | round) as $age | if $age <= 3 then "0-3 days" elif $age
    <= 7 then "3-7 days" else ">7 days" end
    cycle_time: >-
    if .merged_at then (((.merged_at | sub("\\.[0-9]+Z$"; "Z") |
    fromdateiso8601) - (.created_at | sub("\\.[0-9]+Z$"; "Z") |
    fromdateiso8601)) / 86400 | round) else null end
    relations:
    repository: .head.repo.full_name
    - kind: workflow
    selector:
    query: 'true'
    port:
    entity:
    mappings:
    identifier: >-
    (.url | capture("repos/(?<repo>[^/]+/[^/]+)/") | .repo) +
    (.id|tostring)
    title: .name
    blueprint: '"githubWorkflow"'
    properties:
    path: .path
    status: .state
    createdAt: .created_at
    updatedAt: .updated_at
    link: .html_url
    relations:
    repository: (.url | capture("repos/(?<repo>[^/]+/[^/]+)/") | .repo)
    - kind: workflow-run
    selector:
    query: 'true'
    port:
    entity:
    mappings:
    identifier: .repository.full_name + (.id|tostring)
    title: .display_title
    blueprint: '"githubWorkflowRun"'
    properties:
    name: .name
    triggeringActor: .triggering_actor.login
    status: .status
    conclusion: .conclusion
    createdAt: .created_at
    runStartedAt: .run_started_at
    updatedAt: .updated_at
    runNumber: .run_number
    runAttempt: .run_attempt
    link: .html_url
    headBranch: .head_branch
    relations:
    workflow: .repository.full_name + (.workflow_id|tostring)
    pullRequests: if (.pull_requests | length) > 0 then (.pull_requests | map(.id)) else null end
Existing mappings

If you already have mappings for repositories and pull requests, make sure to add the workflow and workflow-run kinds to your existing configuration. The mapping above includes all required kinds for this guide.

  1. Click Save & Resync to apply the mapping.

Visualize metrics

Once the GitHub data is synced, we can create a dedicated dashboard in Port to monitor and analyze reliability and stability metrics using customizable widgets.

Create a dashboard

  1. Navigate to your software catalog.
  2. Click on the + New button in the left sidebar.
  3. Select New dashboard.
  4. Name the dashboard Reliability.
  5. Click Create.

We now have a blank dashboard where we can start adding widgets to visualize reliability and stability metrics.

Add widgets

In the new dashboard, create the following widgets:

Workflow failure rate (last 7 days) (click to expand)
  1. Click + Widget and select Number Chart.

  2. Title: Workflow Failure Rate (Last 7 Days).

  3. Description: Total number of failed workflow runs in the past week.

  4. Select Count entities Chart type and choose Workflow Run as the Blueprint.

  5. Select count for the Function.

  6. Add this JSON to the Dataset filter editor:

    {
    "combinator": "and",
    "rules": [
    {
    "value": "failure",
    "property": "conclusion",
    "operator": "="
    },
    {
    "property": "runStartedAt",
    "operator": "between",
    "value": {
    "preset": "lastWeek"
    }
    }
    ]
    }
  7. Select custom as the Unit and input workflow(s) as the Custom unit.

  8. Click Save.

Workflow failure trend (weekly) (click to expand)
  1. Click + Widget and select Line Chart.

  2. Title: Workflow Failure Trend (Weekly).

  3. Description: Weekly trend of failed workflow runs over the past 30 days.

  4. Select Count Entities (All Entities) Chart type and choose Workflow Run as the Blueprint.

  5. Input # Failed Workflows as the Y axis Title.

  6. Select count for the Function.

  7. Add this JSON to the Additional filters editor:

    {
    "combinator": "and",
    "rules": [
    {
    "value": "failure",
    "property": "conclusion",
    "operator": "="
    }
    ]
    }
  8. Input Date as the X axis Title.

  9. Select runStartedAt for Measure time by.

  10. Set Time Interval to week and Time Range to In the past 30 days.

  11. Click Save.

Workflow runs with most failures (last 7 days) (click to expand)
  1. Click + Widget and select Bar Chart.

  2. Title: Workflow Runs with Most Failures (Last 7 Days).

  3. Description: Workflows with the highest number of failures in the past week.

  4. Choose the Workflow Run blueprint.

  5. Under Breakdown by property, select the Name property.

  6. Add this JSON to the Additional filters editor:

    {
    "combinator": "and",
    "rules": [
    {
    "value": "failure",
    "property": "conclusion",
    "operator": "="
    },
    {
    "property": "runStartedAt",
    "operator": "between",
    "value": {
    "preset": "lastWeek"
    }
    }
    ]
    }
  7. Click Save.

Services with highest CI/CD failure rate % (last 7 days) (click to expand)
  1. Click + Widget and select Pie chart.

  2. Title: Services with Highest CI/CD Failure Rate % (Last 7 Days).

  3. Description: Distribution of failed workflow runs by repository in the past week.

  4. Choose the Workflow Run blueprint.

  5. Under Breakdown by property, select the Repository property (this is a mirror property from the workflow relation).

  6. Add this JSON to the Additional filters editor:

    {
    "combinator": "and",
    "rules": [
    {
    "value": "failure",
    "property": "conclusion",
    "operator": "="
    },
    {
    "property": "runStartedAt",
    "operator": "between",
    "value": {
    "preset": "lastWeek"
    }
    }
    ]
    }
  7. Click Save.

Number of PRs blocked by failing CI/CD (click to expand)
  1. Click + Widget and select Number Chart.

  2. Title: PRs Blocked by Failing CI/CD.

  3. Select Count entities Chart type and choose Pull Request as the Blueprint.

  4. Select count for the Function.

  5. Add this JSON to the Dataset filter editor:

    {
    "combinator": "and",
    "rules": [
    {
    "value": 1,
    "property": "failedWorkflowsCount",
    "operator": ">="
    },
    {
    "value": "open",
    "property": "status",
    "operator": "="
    }
    ]
    }
  6. Select custom as the Unit and input prs as the Custom unit.

  7. Click Save.

PRs blocked by failing CI/CD table (click to expand)
  1. Click + Widget and select Table.

  2. Title the widget PRs Blocked by Failing CI/CD.

  3. Choose the Pull Request blueprint.

  4. Add this JSON to the Initial filters editor:

    {
    "combinator": "and",
    "rules": [
    {
    "value": 1,
    "property": "failedWorkflowsCount",
    "operator": ">="
    },
    {
    "value": "open",
    "property": "status",
    "operator": "="
    }
    ]
    }
  5. Click Save to add the widget to the dashboard.

  6. Click on the ... button in the top right corner of the table and select Customize table.

  7. In the top right corner of the table, click on Manage Properties and add the following properties:

    • Title: The title of the pull request.
    • Link: The URL to the pull request.
    • Repository: The related repository.
    • PR Age: The age of the pull request.
  8. Click on the save icon in the top right corner of the widget to save the customized table.