Add Grafana Cloud heartbeat metric push to scheduled build#6
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
GRAFANA_METRICS_*,provisioned via infra-core Terraform).
URL, auth, ingestion) was validated live before opening this PR.
same pattern once this is confirmed.