Text of github.github.com › gh-aw › gallery › metrics-analytics as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Automated workflow metrics and analytics | GitHub Agentic Workflows

Skip to main content Automated workflow metrics and analytics Metrics and analytics with GitHub Agentic Workflows means collecting recent GitHub Actions activity on a schedule and storing a compact snapshot for later trend analysis. This example works with any repository that uses GitHub Actions. .github/workflows/metrics-collector.md --- on : schedule : daily permissions : actions : read contents : read issues : read pull-requests : read tools : repo-memory : branch-name : memory/workflow-metrics file-glob : " metrics/** " safe-outputs : noop : --- # Metrics Collector Collect GitHub Actions activity from the last 24 hours.

For each workflow, record total, successful, failed, cancelled, and skipped runs, plus execution duration and queue time when available. Write a compact JSON snapshot to `metrics/YYYY-MM-DD.json` in repo memory. Include the collection window, repository and workflow names, and any missing or incomplete data. Do not create issues, comments, or pull requests. Repository memory lets later workflows compare snapshots without adding reports to the default branch.

The agent receives read-only GitHub permissions and has only the noop safe output, so collection cannot directly mutate issues or pull requests. Learn More Section titled “Learn More” Repository memory Audit commands Cost management