Configuring Monitoring in GitHub
This lesson explains how to enable insights and create charts, and what other GitHub data exists.
Learning outcomes
After completing this lesson, you will be able to:
- Distinguish current charts from historical charts.
- Create and configure a project chart.
- Describe repository insights.
- Export workflow events for analysis.
Insights in GitHub Projects
Insights in GitHub Projects creates charts from a project's items, so that a team can see progress without leaving GitHub. Insights is available on a project through its menu or the chart icon, and a default burn up chart is provided. There are two types of chart.
Current charts
A current chart shows a point in time. A team might show items per assignee, to see an imbalance of work, or items per iteration, to see how work is spread.
Historical charts
A historical chart tracks change over time, by setting the X-axis to Time. It can show counts of Open, Completed and Not planned items, along with open or closed pull requests. The burn up chart is a historical chart.
Insights does not track items that have been archived or deleted, so archiving a project's items too soon can change the chart.
GitHub Projects insights
Creating and configuring a chart
-
Open insights
In the project, select the insights icon.
-
Create a chart
Under Custom charts, select New chart.
-
Set a filter
Add a filter such as label:bug, or is:issue, to limit the data.
-
Configure
Select the layout, the X-axis, and optionally Group by and Y-axis.
-
Save
Save the changes so that others can see the chart.
Layouts include bar, column, line and stacked options. A chart's X-axis can use a field, such as Status, or Time for a historical view. Group by splits bars by a second field, and the Y-axis can show a count of items or a sum or average of a number field, such as story points. Filters use the same syntax as project views.
The following diagram compares a current chart with a historical chart in GitHub Projects.

Building a project chart
Repository and organization insights
The Insights tab of a repository shows Pulse, a summary of recent activity, as well as Contributors, Commits, Code frequency, Dependency graph, Network and Forks. These are useful for an overview. Some views need appropriate permissions.
Organization insights on some plans add activity and dependency information across repositories. A traffic view shows clones and views of a repository for the past 14 days.
Repository insights
Actions metrics and logs
Actions metrics were introduced in the module on pipeline maintenance: usage metrics show minutes consumed, and performance metrics show job run time, queue time and failure rate, and these are viewed at organization and repository level. A workflow run also has a summary, with job duration and a usage view.
Teams with central observability can export GitHub data. Webhook events such as workflow_run and workflow_job can be sent to an Azure Function that writes them to Log Analytics, where a dashboard can combine them with production data. The GitHub REST API also lists workflow runs and timings, and audit logs can be streamed on Enterprise Cloud.
Getting Actions data out
A chart for planning
A team using GitHub Projects wants a chart that shows how many issues are open or completed over the past three months. How should the team configure it?
Create a chart in Insights, or use the default burn up chart, with the X-axis set to Time, which makes it historical, and choose the three-month range. A current chart grouped by Status shows only today's position. Repository Pulse shows recent activity, and it does not offer a three-month planning chart.
A project chart shows items per assignee. Is it current or historical?
Show answer
Current. A historical chart sets the X-axis to Time.
Exam Tips
Remember for the exam
- Set the X-axis to Time to create a historical chart.
- The default historical chart is a burn up chart.
- Current charts show a point in time.
- Insights does not track archived or deleted items.
- Workflow events can be exported to Log Analytics through webhooks.