About GitHub Actions metrics
GitHub Actions metrics provide insights into how your workflows and jobs are performing at the organization and repository levels. There are two types of metrics to help you analyze different aspects of your workflows:
- GitHub Actions usage metrics: Usage metrics help you track how many minutes your workflows and jobs consume. You can use this data to understand the cost of running Actions and ensure you're staying within your plan limits. This is especially useful for identifying high-usage workflows or repositories.
- GitHub Actions performance metrics: Performance metrics focus on the efficiency and reliability of your workflows and jobs. With performance metrics, you can monitor key indicators like job run times, queue times, and failure rates to identify bottlenecks, slow-running jobs, or frequently failing workflows.
Enabling access to GitHub Actions metrics
Organization owners can create custom organization roles to allow people to view GitHub Actions usage metrics for their organization. To provide users with access, select the "View organization Actions metrics" role when creating a custom organization role. For more information, see "Acerca de los roles personalizados de organización."
About GitHub Actions usage metrics
Las métricas de uso de GitHub Actions le permiten analizar cómo usa la organización los minutos de acciones. Puede visualizar la información de uso relacionada con:
- Flujos de trabajo. Visualice los datos de uso de cada flujo de trabajo de la organización y use esta información para identificar oportunidades de optimización, como refactorizar un flujo de trabajo o usar un ejecutor más grande.
- Trabajos. Vea qué trabajos consumen más recursos y dónde se ejecutan.
- Repositorios. Obtenga una instantánea de alto nivel de cada repositorio de la organización y su volumen de uso de minutos de acciones.
- SO del entorno de ejecución. Comprenda cómo los ejecutores de cada sistema operativo usan los minutos de acciones y los tipos de sistemas operativos en los que se ejecutan los flujos de trabajo con más frecuencia.
- Tipo de ejecutor. Compare cómo los ejecutores autohospedados y los ejecutores hospedados en GitHub usan minutos de acciones y el volumen de ejecuciones de flujo de trabajo para cada tipo de ejecutor.
About GitHub Actions performance metrics
Note
GitHub Actions performance metrics is currently in versión preliminar pública and subject to change.
GitHub Actions performance metrics enables you to analyze the efficiency and reliability of your workflows. You can view performance information such as average run times, average queue times, and failure rates, related to:
- Workflows. View performance data for each workflow in your organization, including average run time and job failures. Use this information to identify inefficient workflows and run stability.
- Jobs. View performance data for each individual job to, including average run time, average queue time, and job failures. Use this information to identify inefficient jobs.
- Repositories. Get a high-level snapshot of each repository in your organization and their average performance metrics.
- Runtime OS. Understand how runners for each operating system are performing.
- Runner type. Compare the performance of self-hosted runners and GitHub-hosted runners, to make decisions about runner types.
Understanding GitHub Actions metrics aggregation
La característica de selección de período de tiempo permite ver las métricas de uso de GitHub Actions durante períodos predefinidos, como se detalla en la tabla siguiente. Estas métricas incluyen ejecuciones omitidas y aquellas que usan cero minutos. Los datos se presentan mediante días de hora universal coordinada (UTC).
Período | Descripción |
---|---|
Semana actual (lun-dom) | Datos del lunes al día actual cuando se ve la página. |
Presente mes | Datos del primer día del mes al día actual cuando se ve la página. |
El mes pasado | Datos del primer día al último día del mes anterior. |
Últimos 30 días | Datos desde los últimos 30 días hasta el día que se ve la página. |
Últimos 90 días | Datos desde los últimos 90 días hasta el día que se ve la página. |
El año pasado | Datos agregados durante los últimos 12 meses. |
Viewing GitHub Actions metrics for your organization
Note
There may be a discrepancy between the Workflows tab's job count and the Jobs tab's count due to differences in how unique jobs are identified. This does not affect the total minutes calculated.
-
En la esquina superior derecha de GitHub, seleccione la foto del perfil y haga clic en Sus organizaciones.
-
Haz clic en el nombre de tu organización.
-
En el nombre del repositorio, haz clic en Información.
-
In the "Insights" navigation menu, click Actions Usage Metrics or click Actions Performance Metrics.
-
Optionally, to select a time period to view usage metrics for, choose an option from the Period drop down menu at the top right of the page. For more information, see "Understanding GitHub Actions metrics aggregation."
-
Click on the tab that contains the metrics you would like to view. For more information, see "About GitHub Actions usage metrics or "About GitHub Actions performance metrics."
-
Optionally, to filter the data displayed in a tab, create a filter.
- Click on the Filter button.
- Click Add a filter.
- Choose a metric you would like to filter results by.
- Depending on the metric you chose, fill out information in the "Qualifier," "Operator," and "Value" columns.
- Optionally, click Add a filter to add another filter.
- Click Apply.
-
Optionally, to download usage metrics to a CSV file, click .
Viewing GitHub Actions metrics for your repository
Note
Repository-level metrics for GitHub Actions is in versión preliminar pública and subject to change.
Note
There may be a discrepancy between the Workflows tab's job count and the Jobs tab's count due to differences in how unique jobs are identified. This does not affect the total minutes calculated.
- En GitHub, navegue hasta la página principal del repositorio.
- Under your repository name, click the Insights tab.
- In the "Insights" navigation menu, click Actions Usage Metrics or click Actions Performance Metrics.
- Optionally, to select a time period to view usage metrics for, choose an option from the Period drop down menu at the top right of the page. For more information, see "Understanding GitHub Actions metrics aggregation."
- Click on the tab that contains the metrics you would like to view. For more information, see "About GitHub Actions usage metrics or "About GitHub Actions performance metrics."
- Optionally, to filter the data displayed in a tab, create a filter.
- Click on the Filter button.
- Click Add a filter.
- Choose a metric you would like to filter results by.
- Depending on the metric you chose, fill out information in the "Qualifier," "Operator," and "Value" columns.
- Optionally, click Add a filter to add another filter.
- Click Apply.
- Optionally, to download usage metrics to a CSV file, click .