DEV Community

flisk
flisk

Posted on

GitHub Actions Monitoring Dashboard: Hourly CI Health With No Server and No Account

TL;DR: you can get a GitHub Actions monitoring dashboard for a whole org with one workflow file. Cilytics reads the GitHub API every hour, writes a snapshot to a branch of your own repo, and GitHub Pages serves it. No server, no model, no account.

If you searched github actions monitoring dashboard, you probably want to answer one question fast: which workflows are red right now, and which are flaky or slow?

What the dashboard shows

  • Red now: workflows whose newest completed run on the default branch failed or timed out, with a strip of the last 20 runs.
  • Per repo: runs per day for the last 14 days, pass rate of the last 100 runs and median run time. Red repos first.
  • Flaky: workflows that went from pass to fail or back at least three times in their last 100 runs, with no change in between that it can see. Most flips on top.
  • Slow workflows.
  • GEL guard results and AI-SDLC flags, if you use GEL.

Pass rate counts passed against failed and timed-out runs. Cancelled and skipped runs are left out. A repo is counted as active when it is public, not archived, not a fork and was pushed to in the last 90 days.

Cilytics home: scan any GitHub repo and get a CI health score

Scan any public repo first

Paste owner/name or a github.com link on cilytics.flisk.si. You get a health score out of 100, the pass rate and the GEL checks passed, without an account.

Run it on your own org

Add this workflow to any repo you own (a ci-dashboard repo works well):

name: Cilytics
on:
  schedule:
    - cron: "17 * * * *"
  workflow_dispatch:

permissions:
  contents: write # lets the action update the cilytics-data branch of this repo

jobs:
  cilytics:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    steps:
      - uses: flisk-sh/cilytics@FULL_COMMIT_SHA_OF_THE_VERSION_YOU_TRUST
        with:
          org: your-org-or-username
Enter fullscreen mode Exit fullscreen mode

Each run replaces data.json, history.json and index.html on the cilytics-data branch with one new commit. Turn on GitHub Pages for that branch (Settings, Pages, Deploy from a branch) and the page is at https://OWNER.github.io/REPO/.

Two notes before you run it

  • Pin the action to a commit SHA, not a tag.
  • The default token reads public repos only. Pass a token with repo read access to include private repos.

Limits

It reads the GitHub API only, so it shows what GitHub shows. The hourly schedule means up to an hour of delay.

Source: github.com/flisk-sh/cilytics.

Top comments (0)