# Cost Profiler: User Guide

> Learn to navigate the Cost Profiler flamegraph, interpret cost estimates and filter GitHub Actions telemetry in Pipetrics.

Source: <https://pipetrics.com/docs/cost-profiler>

Cost Profiler is a Pipetrics view for exploring GitHub Actions costs. It uses a flamegraph to show how modeled runner costs are distributed across your organization's repositories, workflows, jobs and steps.

This guide explains how to navigate the flamegraph, interpret cost figures and use filters to investigate specific parts of your CI workload.

## Open Cost Profiler \[#open-cost-profiler]

To use Cost Profiler, complete the [read-only GitHub App integration](https://pipetrics.com/docs/integration) and activate at least one repository. Once Pipetrics has collected workflow runs, you can explore their costs.

1. Select an organization in [Pipetrics](https://app.pipetrics.com/).
2. Open **Cost Profiler** from the sidebar.
3. Select the month you want to inspect.

The initial flamegraph shows the distribution of modeled cost across the organization for the selected period. The available data depends on your workspace's telemetry retention.

![Cost Profiler flamegraph at organization level](https://pipetrics.com/docs/cost-explorer/cost-explorer-whole-org.webp)

## Navigate the flamegraph \[#navigate-the-flamegraph]

The flamegraph represents the hierarchy of GitHub Actions telemetry. Larger blocks account for a greater share of modeled cost within the current view and filter selection.

| Level        | What you can inspect                    |
| ------------ | --------------------------------------- |
| Organization | Cost distribution across repositories   |
| Repository   | Cost distribution across workflow files |
| Workflow     | Cost distribution across jobs           |
| Job          | The steps that make up the job          |

Select a repository block to see its workflows. From there, drill into a workflow to inspect its jobs and continue to the step level for more detail.

![Cost Profiler showing workflows within a selected repository](https://pipetrics.com/docs/cost-explorer/cost-explorer-repo-level.webp)

Use the details panel to inspect the selected item. At workflow level, consider execution count and runtime alongside modeled cost. A workflow that runs frequently can account for a large share of cost even when individual runs are short.

Use the breadcrumbs to return to a previous level without resetting your investigation.

## Understand the cost figures \[#understand-the-cost-figures]

Cost Profiler models runner usage at GitHub list prices. Estimated billable cost also takes available information about the GitHub plan and included minutes into account.

| Metric                  | Meaning                                                                      |
| ----------------------- | ---------------------------------------------------------------------------- |
| Modeled cost            | The value of runner usage at GitHub list prices                              |
| Estimated billable cost | An estimate that accounts for available plan and included-minute information |

The two figures serve different purposes. Modeled cost helps you compare resource usage across repositories and workflows. Estimated billable cost helps you assess usage in the context of GitHub billing. The final amount charged is determined by GitHub.

### Retries, reruns and skipped jobs \[#retries-reruns-and-skipped-jobs]

Pipetrics includes valid retry and rerun attempts in its calculations because they represent work performed by GitHub Actions. Skipped jobs and invalid intervals where the end timestamp precedes the start timestamp are excluded from runtime and cost calculations.

## Filter the flamegraph \[#filter-the-flamegraph]

Use filters to restrict the telemetry included in the flamegraph. You can combine filters to investigate a particular subset of workflow activity.

![Cost Profiler filter controls](https://pipetrics.com/docs/cost-explorer/cost-explorer-filters.webp)

| Filter               | Usage                                                                                                                                |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| **Billing category** | View all usage or restrict the view to billable, free-tier or always-free usage.                                                     |
| **Conclusion**       | Select successful, failed, cancelled, skipped or other outcomes.                                                                     |
| **Trigger**          | Restrict usage to events such as pushes, pull requests, schedules or manual workflow dispatches.                                     |
| **Runner label**     | Inspect jobs with particular runner labels, including labels associated with operating systems, runner sizes or self-hosted runners. |
| **Branch**           | Isolate activity on default, release or feature branches.                                                                            |
| **Repository**       | Restrict the organization view to selected repository data while retaining the period and other filters.                             |

Use the search field to narrow long filter lists by name.

### Inspect failed work \[#inspect-failed-work]

Open the **Conclusion** filter and select failure to restrict the view to failed activity for the selected period.

![Conclusion filter with Failure selected](https://pipetrics.com/landing/screenshots/cost-profiler-failure-filter.webp)

The filtered flamegraph lets you locate the repositories, workflows and jobs associated with failed usage. Drill into a job to investigate where the failure occurs.

![Cost Profiler flamegraph filtered to failed usage](https://pipetrics.com/landing/screenshots/cost-profiler-failures.webp)

When interpreting failed cost, check the scope of the metric:

- Cost attributed to a failed workflow attempt can include jobs that completed successfully within that attempt.
- Cost attributed to failed jobs includes only jobs whose own conclusion was failure.

These figures measure different sets of work. Check the filter selection and metric definition before comparing them. The modeled cost associated with a failure can include necessary work performed before the failure occurred.

## Investigate a workflow \[#investigate-a-workflow]

The following example describes a hypothetical investigation. It does not represent measurements from an actual Pipetrics workspace.

Suppose a repository accounts for a large share of your organization's modeled cost. You want to determine whether repeated failures contribute to that share.

1. Open the repository in the flamegraph and select the workflow you want to investigate.
2. Record its modeled cost, execution count and runtime for the selected period.
3. Set **Conclusion** to failure and inspect the filtered cost and runtime.
4. Drill into the jobs and steps to identify where the failed work occurs.
5. Use **Trigger** and **Runner label** to isolate activity associated with a particular event or runner.

For example, if the failed usage is concentrated in a job that runs on pull requests, inspect the steps in that job before deciding whether to change the workflow. The cost view identifies the work consuming resources. Further investigation is needed to determine why that work fails and whether it can be avoided.

For duration and regression analysis, see [GitHub Actions performance monitoring](https://pipetrics.com/github-actions-performance-monitoring). For possible workflow changes, see [how to reduce GitHub Actions costs](https://pipetrics.com/github-actions-cost-optimization).

## Review historical data \[#review-historical-data]

Use the month navigation to inspect telemetry retained in your workspace. Cost Profiler displays one selected month at a time and does not provide a side-by-side comparison.

To compare periods, record the figures separately. Keep the repository, workflow and filter selection consistent and check how much of each month is covered by retained telemetry. A partial month should not be treated as a full monthly total.

If the cost changes between periods, compare execution counts, runtime, runner labels and the proportion of failed attempts. Changes to the workflow structure, such as a larger job matrix, can also affect the total.

## Access and data retention \[#access-and-data-retention]

Cost Profiler is available on both Pipetrics plans.

| Capability                  | Free     | Pro      |
| --------------------------- | -------- | -------- |
| Cost Profiler               | Included | Included |
| Telemetry retention         | 14 days  | 360 days |
| Longer historical baselines | No       | Yes      |

The Free plan retains the most recent 14 days of telemetry. The Pro plan retains up to 360 days. Selecting a month does not restore data outside the retained window.

Your Pipetrics plan determines telemetry retention. Your GitHub plan determines included GitHub Actions usage. Upgrading Pipetrics does not change your GitHub billing terms.

## Related resources \[#related-resources]

- [GitHub App integration](https://pipetrics.com/docs/integration): connect an organization and activate repositories.
- [GitHub Actions cost monitoring](https://pipetrics.com/github-actions-cost-monitoring): learn about CI cost metrics and their uses.
- [Pipetrics MCP](https://pipetrics.com/docs/github-actions-optimization-mcp): investigate the same telemetry from a compatible coding agent.
