# GitHub Actions Grafana Dashboard

> Import the Pipetrics GitHub Actions Grafana dashboard. Configure PostgreSQL access and investigate runtime, failures, queue delays, and rounded minutes.

Source: <https://pipetrics.com/docs/grafana-dashboard>

## Import a GitHub Actions Grafana dashboard \[#import-a-github-actions-grafana-dashboard]

Use the Pipetrics **GitHub Actions Grafana dashboard** to investigate workflow outcomes, runner minutes, queue delays, and p95 job duration alongside your existing infrastructure metrics. Import dashboard ID `24157` from [grafana.com](https://grafana.com/grafana/dashboards/24157-github-actions-insights/) and connect it to your Pipetrics PostgreSQL data source.

You need database connection details before the panels can display data. Importing the template alone does not connect Grafana to your Pipetrics workspace. The dashboard shows execution and usage metrics; use [Cost Profiler](https://pipetrics.com/docs/cost-profiler) for modeled dollar costs and billing-category filters.

![Grafana overview with repository success gauges, GitHub minutes overhead, usage charts, workflow events, and queue waiting time](https://pipetrics.com/landing/screenshots/grafana-1.webp)

The overview shows repository success rates, elapsed and rounded job minutes, usage by repository and trigger, and time spent waiting in queues.

## Grafana dashboard prerequisites \[#grafana-dashboard-prerequisites]

- A Pipetrics workspace with repositories activated through the [GitHub App integration](https://pipetrics.com/docs/integration).
- A Grafana instance with permission to configure a PostgreSQL data source and import dashboards. The published revision 1 template lists Grafana `12.1.1`; check compatibility if you use a different version.
- Network access from the Grafana server to the Pipetrics PostgreSQL warehouse.
- The database host, port, database name, read-only username and password, and required TLS settings.

Obtain the connection details from the person managing your organization's Pipetrics integration. If they are unavailable, [contact Pipetrics](https://pipetrics.com/#contact) before continuing. Your GitHub login and GitHub App installation credentials are separate from the database credentials Grafana needs.

## Configure the Grafana PostgreSQL data source \[#configure-the-grafana-postgresql-data-source]

1. Add a **PostgreSQL** data source in Grafana. Name it `pipetrics` so it is easy to identify during import.
2. Enter the supplied host and port, database name, username, and password.
3. Configure TLS according to the supplied connection requirements. Use certificate verification where supported, and provide the required CA certificate.
4. Select **Save & test**. Resolve connection or authentication errors before importing the dashboard.

The database user should have read-only access to the analytics data. Keep credentials in Grafana's data source configuration; do not put passwords in panel SQL, exported dashboard JSON, screenshots, or version control.

See [Grafana's PostgreSQL configuration guide](https://grafana.com/docs/grafana/latest/datasources/postgres/configure/) for current connection and TLS options.

## Grafana dashboard installation options \[#grafana-dashboard-installation-options]

### Import from grafana.com \[#import-from-grafanacom]

1. In Grafana choose **Dashboards → New → Import**.
2. Enter dashboard ID `24157` or its grafana.com URL, then select **Load**.
3. Select your Pipetrics PostgreSQL data source when prompted and choose **Import**.
4. Select a repository and a time range containing collected workflow data. Check that the overview and repository panels populate.

### Import a downloaded JSON file \[#import-a-downloaded-json-file]

1. Download the JSON from the [dashboard page](https://grafana.com/grafana/dashboards/24157-github-actions-insights/). You can also download [revision 1 directly](https://grafana.com/api/dashboards/24157/revisions/1/download) for a reproducible starting point.
2. Open **Dashboards → New → Import** and upload the file.
3. Map the `DS_PIPETRICS` input to your PostgreSQL data source, then import the dashboard.

Keep a copy of the original JSON before changing panels. A file import is useful when you need a reviewed, version-controlled template. Grafana still needs network access to the database to display data.

## Read the GitHub Actions Grafana dashboard metrics \[#read-the-github-actions-grafana-dashboard-metrics]

### Understand elapsed and rounded minutes \[#understand-elapsed-and-rounded-minutes]

In published revision 1, the **GitHub minutes overhead** panel derives each job's duration from `completed_at - started_at`. It returns these calculated fields:

| Field            | Calculation                                            | Interpretation                              |
| ---------------- | ------------------------------------------------------ | ------------------------------------------- |
| `real_minutes`   | Sum of elapsed job durations in minutes                | Aggregate execution time across jobs        |
| `github_minutes` | Sum of each job's duration rounded up with `CEIL`      | Rounded usage under the panel's calculation |
| `overhead_pct`   | `100 * (github_minutes - real_minutes) / real_minutes` | The percentage effect of per-job rounding   |

These are calculated query results, not warehouse columns named `billed_minutes` and `actual_minutes`. Rounding overhead does not measure idle runner time. The calculation also does not apply runner prices, account-wide included usage, or free billing categories, so it cannot establish your GitHub invoice amount.

### Investigate execution volume and queue delay \[#investigate-execution-volume-and-queue-delay]

- **Minutes usage by repository** and **Minutes usage by workflow** identify where job minutes accumulate. Inspect execution count and duration before deciding what to optimize.
- **Workflow runs by event** and **GitHub minutes usage by trigger event** separate usage from `pull_request`, `push`, and scheduled workflows.
- **Time spent waiting in queues** sums non-negative intervals between job creation and start. A larger total can reflect more jobs, longer waits, or both. Check execution volume and concurrency policies before attributing it to runner capacity.

### Review outcomes and p95 job duration \[#review-outcomes-and-p95-job-duration]

Use **Overall repository success rate**, **Executions by conclusion**, and **Finished workflow runs by result** to investigate outcome changes. The gauge's configured thresholds are visualization settings; choose release criteria that reflect your own requirements.

**Workflow jobs time p95** shows the 95th percentile of job duration. Compare similar time ranges and workloads, and review execution count before interpreting a change in the tail.

![Grafana repository panels showing workflow minutes, executions by conclusion, p95 job duration, and finished runs by result](https://pipetrics.com/landing/screenshots/grafana-2.webp)

This repository view shows workflow minutes, outcomes, and p95 job duration. Compare it with the overview queue chart when investigating slow feedback.

## Data validity and comparison limits \[#data-validity-and-comparison-limits]

The public revision 1 duration queries check for populated timestamps but do not explicitly exclude every invalid interval or skipped job. Before comparing this template with Pipetrics summaries or MCP findings, review the panel SQL and the eligibility rules applied to its source data.

For runtime analysis, exclude missing timestamps, skipped jobs, and intervals where completion precedes the start. Preserve valid rerun attempts. The [negative rerun durations investigation](https://pipetrics.com/docs/github-actions-negative-rerun-durations) explains why these distinctions matter. A different time range, aggregation, or eligibility rule can produce different totals without proving either view is correct.

## Grafana troubleshooting \[#grafana-troubleshooting]

- **Connection test fails:** verify the supplied host, port, credentials, TLS settings, and network access from Grafana's server.
- **Panels are empty:** confirm that the repository is activated, data has been collected, and the selected repository and time range include executions. Check the panel query inspector for errors.
- **Minute totals differ:** inspect the panel SQL, per-job rounding, date filters, and runtime eligibility rules. Do not interpret rounded minutes as dollar charges.
- **Queue totals rise:** compare execution count as well as waiting time. Review job start times before changing runner capacity.

Duplicate panels before editing SQL or thresholds so you can compare your changes with the imported template. Follow [Grafana's import documentation](https://grafana.com/docs/grafana/latest/visualizations/dashboards/build-dashboards/import-dashboards/) if menu names differ in your version.

## GitHub Actions Grafana dashboard questions \[#github-actions-grafana-dashboard-questions]

### What metrics are included? \[#what-metrics-are-included]

The dashboard includes workflow outcomes, repository success rate, elapsed and rounded job minutes, usage by repository and workflow, trigger events, queue delay, and p95 job duration. Available history depends on the data collected and retained in your Pipetrics workspace.

### Does the dashboard require Prometheus? \[#does-the-dashboard-require-prometheus]

No. The published dashboard uses the Grafana PostgreSQL data source and the Pipetrics analytics database. You do not need to deploy or maintain a Prometheus exporter for GitHub Actions. If you want to compare that self-hosted approach, see [How to Monitor GitHub Actions with Prometheus and Grafana](https://pipetrics.com/blog/how-to-monitor-github-actions-with-prometheus-and-grafana).

### Can I customize the dashboard? \[#can-i-customize-the-dashboard]

Yes. Duplicate panels, edit SQL, and change thresholds or presentation settings. Grafana alerting availability depends on the panel query and your configuration. Keep the original dashboard as a reference when upgrading the template.

### Can the dashboard show GitHub Actions costs? \[#can-the-dashboard-show-github-actions-costs]

The published template shows usage minutes. For modeled costs and interactive billing-category, outcome, branch, trigger, and runner filtering, use [Pipetrics Cost Profiler](https://pipetrics.com/docs/cost-profiler). Your GitHub invoice remains the source of truth for actual charges.

### Is Grafana an alternative to GitHub Actions? \[#is-grafana-an-alternative-to-github-actions]

GitHub Actions executes workflows. Grafana visualizes the execution data collected by Pipetrics and can place those metrics alongside your infrastructure dashboards.

## Next steps with the Grafana dashboard \[#next-steps-with-the-grafana-dashboard]

For a financial investigation, continue with [GitHub Actions cost monitoring](https://pipetrics.com/github-actions-cost-monitoring). For slow feedback and regressions, use the [performance monitoring guide](https://pipetrics.com/github-actions-performance-monitoring). Once you identify a workflow, [open Pipetrics](https://app.pipetrics.com/) to investigate its jobs and steps.
