Skip to content

maintenance: add proper health checks and alerting#44

Merged
tschaefer merged 1 commit intomainfrom
tschaefer/maintenance/healthz
Feb 26, 2026
Merged

maintenance: add proper health checks and alerting#44
tschaefer merged 1 commit intomainfrom
tschaefer/maintenance/healthz

Conversation

@tschaefer
Copy link
Owner

No description provided.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to improve operational robustness by adding service health checks plus Grafana alert provisioning, and by making docker-compose rollouts sensitive to config changes.

Changes:

  • Provision Grafana alert rules and mount them into Grafana.
  • Add docker-compose “config-hash” labels and compute hashes from rendered configs/assets to trigger recreation on config changes.
  • Replace the readiness check with healthcheck-based checks using dedicated hc-* containers; add blackbox probing config in Alloy.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
internal/service/deploy.go Adds Grafana alert deployment, config-hash computation for compose templating, and a new healthcheck-based readiness gate.
internal/service/update.go Ensures Grafana alerts are deployed during update before recomposing services.
internal/service/service_test.go Updates dry-run log expectations to match the new readiness-check behavior.
internal/service/assets/docker-compose.yaml.tmpl Mounts Grafana alert provisioning dir, adds config-hash labels, and introduces hc-* healthcheck containers.
internal/service/assets/alloy.config.tmpl Adds blackbox exporter/scrape configuration intended to support alerting and health probing.
internal/service/assets/grafana-alerts.yaml Introduces new Grafana-managed alert rules for core services.

@tschaefer tschaefer force-pushed the tschaefer/maintenance/healthz branch 3 times, most recently from 3dd1779 to f94f770 Compare February 26, 2026 12:05
@tschaefer tschaefer force-pushed the tschaefer/maintenance/healthz branch from f94f770 to 6841f79 Compare February 26, 2026 12:15
@tschaefer tschaefer marked this pull request as ready for review February 26, 2026 12:18
@tschaefer tschaefer merged commit d6effdd into main Feb 26, 2026
2 checks passed
@tschaefer tschaefer deleted the tschaefer/maintenance/healthz branch February 26, 2026 12:19
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.

2 participants