Skip to content

feat: ship Prometheus alerting rules with unit tests - #16

Merged
JustMaris merged 1 commit into
mainfrom
feat/alert-rules
Sep 28, 2026
Merged

JustMaris merged 1 commit into
mainfrom
feat/alert-rules

Conversation

@JustMaris

Copy link
Copy Markdown
Member

Adds alerts/github-actions-runner-exporter.rules.yml, 8 alerting rules:

  • runner offline, all runners offline, and runners saturated (every online runner busy for 30m);
  • stale runner and org-stats polls;
  • API rate limit low;
  • a workflow's latest run failing (info, because it covers any branch);
  • open critical Dependabot alerts.

alerts/github-actions-runner-exporter.test.yml has promtool unit tests, including the negatives: one runner offline doesn't trigger "all offline", 1 of 2 busy isn't saturated, and success runs and high Dependabot alerts don't alert. A mutation check (saturation on any busy runner) makes them fail, as it should.

CI runs promtool check rules and test rules (Prometheus v3.15.0) as a new alerts job gating Required checks passed. The README gets an Alerting section.

@JustMaris
JustMaris enabled auto-merge (squash) September 28, 2026 05:41
@JustMaris
JustMaris merged commit 4f97fef into main Sep 28, 2026
8 checks passed
@JustMaris
JustMaris deleted the feat/alert-rules branch September 28, 2026 05:41
@dnb-robot dnb-robot Bot mentioned this pull request Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant