Skip to content

Add Grafana Cloud heartbeat metric push to scheduled build#6

Merged
robertlemke merged 1 commit into
bookwormfrom
ci/grafana-heartbeat-metric
Jul 3, 2026
Merged

Add Grafana Cloud heartbeat metric push to scheduled build#6
robertlemke merged 1 commit into
bookwormfrom
ci/grafana-heartbeat-metric

Conversation

@robertlemke

@robertlemke robertlemke commented Jul 3, 2026

Copy link
Copy Markdown
Member

Adds a step to the scheduled Bookworm build that pushes a
flownative_ci_last_success_timestamp_seconds{job="docker-build", image="base"}
gauge (value = build time) to Grafana Cloud after a successful build.

This is part of the OpsGenie → Grafana OnCall migration. Grafana OnCall's native
heartbeats can't cover our needs (max interval 24h, one per integration),
so dead-man switches move to a pushed timestamp metric + a Grafana alert
that fires when the metric is stale for > 3 days and routes to Beach Minor.

Runs in parallel with the existing OpsGenie heartbeat mail step; nothing
is removed until the OpsGenie cutover.

  • Uses the metrics-publisher token (repo secrets GRAFANA_METRICS_*,
    provisioned via infra-core Terraform).
  • The push path (Influx line-protocol endpoint derived from the remote-write
    URL, auth, ingestion) was validated live before opening this PR.
  • Pilot for the docker-base heartbeat; the remaining images/repos follow the
    same pattern once this is confirmed.

Pushes a flownative_ci_last_success_timestamp_seconds gauge to Grafana
Cloud after each successful scheduled build, as the dead-man-switch
replacement for the OpsGenie heartbeat (runs in parallel to the existing
OpsGenie mail during the OnCall migration). A Grafana alert routes to
Beach Minor when the metric goes stale for more than 3 days.
@robertlemke robertlemke merged commit 1d0e766 into bookworm Jul 3, 2026
1 check passed
@robertlemke robertlemke deleted the ci/grafana-heartbeat-metric branch July 3, 2026 07:31
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