Repository navigation
feat: replicate push-server dashboards on Grafana Cloud - #384
Merged
Merged
Conversation
Signed-off-by: Armin Teimouri <armin@walletconnect.com>
arminx86-77616c
had a problem deploying
to
staging
September 8, 2026 09:29 — with
GitHub Actions
Failure
arminx86-77616c
had a problem deploying
to
staging
September 8, 2026 10:46 — with
GitHub Actions
Failure
Signed-off-by: Armin Teimouri <armin@walletconnect.com>
arminx86-77616c
had a problem deploying
to
staging
September 8, 2026 14:30 — with
GitHub Actions
Failure
arminx86-77616c
had a problem deploying
to
staging
September 8, 2026 17:12 — with
GitHub Actions
Failure
arminx86-77616c
had a problem deploying
to
staging
September 9, 2026 13:24 — with
GitHub Actions
Failure
arminx86-77616c
had a problem deploying
to
staging
September 9, 2026 13:35 — with
GitHub Actions
Failure
`aws/grafana/get-details` looks up a workspace tagged `Env=prod` with push-server's own AWS credentials. Since #359 moved dashboards to Grafana Central the workspace lives in the Monitoring account, so `list-workspaces` returns nothing, `workspace-id` is empty and `create-workspace-api-key` fails with "Missing required request parameters: [workspaceId]" (exit 254). `Delete Grafana key` then fails on the empty key name (exit 252). The job has died there since March 2025 — unnoticed because ci_terraform only runs on `terraform/**` changes. The key was never reaching the plan anyway: `echo-server-*` are remote execution, and TFC remote runs read variables from the workspace, not from runner-side `TF_VAR_*`. `TF_VAR_grafana_endpoint` has also been dead since #359 deleted `variable "grafana_endpoint"` — the provider now takes its URL from the monitoring remote state. `grafana_auth` and `grafana_cloud_token` are set as sensitive variables on `echo-server-prod`/`echo-server-staging`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Same breakage as ci_terraform in both deploy-infra jobs, still pinned at @1.0.3. Variables come from the TFC workspace on remote execution. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
geekbrother
had a problem deploying
to
staging
September 9, 2026 16:28 — with
GitHub Actions
Failure
`terraform/plan@2.5.4` runs `plan -out=/tmp/plan.tfplan`, which the remote backend rejects: "Saving a generated plan is currently not supported". The AMG key failure was masking this second breakage. Plan inline with tee, as WalletConnect/ci_workflows/.github/workflows/ci-plan-infra.yml does. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
geekbrother
had a problem deploying
to
staging
September 9, 2026 16:40 — with
GitHub Actions
Failure
The plan now reaches variable evaluation and fails on jwt_secret and relay_public_key: they are not set on echo-server-staging, and TFC remote runs ignore runner-side TF_VAR_*. grafana_auth and grafana_cloud_token ARE set on the workspace (no error for either), so only these two need injecting. Written as *.auto.tfvars.json, which is uploaded with the configuration and read by the remote run — the ci_workflows tf-vars pattern. Both variables are sensitive = true, so they stay redacted in plan output. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
get-version failed with "API rate limit exceeded" (403) on two different runner IPs: pozetroninc/github-action-get-latest-release@master queries the API unauthenticated, sharing a per-IP quota with every other runner on the host. plan-staging is gated on it via needs, so the whole run went red. Replaced with gh release view under GITHUB_TOKEN, which is what the existing TODO on that step asked for. Also drops actions/github-script@v6 (Node 20 warning) and the `sed 's/v//g'` version cleanup, which stripped every "v" in the tag rather than a leading one. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
geekbrother
approved these changes
Sep 9, 2026
chris13524
approved these changes
Sep 9, 2026
This was referenced Sep 10, 2026
This branch was previously deployed
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.
Grafana Cloud migration - push-server (dashboards-only, dual-run) + provider bump
Twins push-server's monitoring onto Grafana Cloud alongside AMG (approach A: second aliased
grafana.cloudprovider, same module/workspace). push-server is DASHBOARDS-ONLY (0 alert rules) so this is the simplest unit and needs NO later route-flip PR.What this does
~> 2.0→>= 3.0, < 5.0). Changelog audited: no 3.0.0/4.0.0 breaking change touches push-server's usage clean bump, no-op on AMG.grafana.cloudprovider +grafana_cloud_url/grafana_cloud_tokenvars.push-<env>-grafana-cloudwatch) with CloudWatch + aps:Query* (push has an AMP datasource), trust008923505280:root+ ExternalId1464025. New role survives AMG teardown.GRAFANA CLOUD TWINSbanner:Counts
4 datasources · 2 dashboards · 0 alert rules.
Provider-bump verdict
Clean / no-op on existing AMG resources (validate passes; only the 4 core resource types, all stable 2.x→4.x). Also aligned the module's aws pin to the repo's
~> 4.31.Apply target
TFC workspaces
echo-server-prodandecho-server-staging(org wallet-connect, backend prefixecho-server-push-server was formerly echo-server; thepush-server-*workspaces are dormant 2023 leftovers and are NOT used). Set the sensitivegrafana_cloud_tokenin both.Dual-run behavior
The Cloud twin dashboards render off the Cloud datasources; AMG dashboards stay live. There are no alerts, so nothing pages from either side. No
routed_services, no incident route.Review guardrail
Plan shows ONLY additive
grafana.cloud-aliased resources (2 datasources + 1 dashboard per env) + the new IAM role, with the provider bump a no-es. Zeroincident_*/ central / infra-monitoring-grafana changes.Rollback
Revert the branch. Nothing paged, nothing flipped