Repository navigation
ci: sync the router-trades Grafana dashboards on each push to main - #1600
Merged
Merged
Conversation
carloszanella
approved these changes
Oct 14, 2026
WHY: The Router Trades and Router Trade Detail dashboards were only in Grafana. People changed them in the Grafana UI, and no copy in git recorded the changes. The copy in a terraform-infrastructure branch was older than the live dashboard and did not have three of its panels. HOW: - Add the live JSON of the two dashboards in `tycho-router-trades/grafana/`. The export removes only `id` and `version`. The `uid` values do not change, thus links to the dashboards continue to work. - Add the `sync-router-trades-dashboards` job to `main-workflow.yaml`. The job calls `sync-grafana-dashboards.yaml` from ci-cd-templates. It sends only the dashboard files that a push changed, to the `tycho` folder. - Tell in the workflows README how to change a dashboard: edit it in Grafana, export the JSON and commit it over the file. ADDITIONAL NOTES: The job needs the `GRAFANA_SA_TOKEN` secret. The service account needs Edit permission on the `tycho` folder. The first push to main sends the two dashboards, because their files are new. This moves them from the General folder to the `tycho` folder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
kayibal
force-pushed
the
ci/sync-router-trades-dashboards
branch
from
October 14, 2026 10:33
b9d8295 to
1e43e29
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Moves the Router Trades and Router Trade Detail Grafana dashboards into this repository, and pushes them to Grafana from
main-workflow.yamlwith the org workflowsync-grafana-dashboards.yaml(propeller-heads/ci-cd-templates#94).crates/tycho-execution/substreams/tycho-router-trades/grafana/contains the two dashboards, exported from live Grafana on 2026-10-13. Onlyidandversionare removed; the uids (tycho-router-trades,tycho-router-trade-detail) are unchanged, so existing links keep working.sync-router-trades-dashboardsjob runs on every push tomain, independently of the other jobs. It sends only the dashboard files the push changed, to thetychofolder (cedg0rrcu7h1cb). When no dashboard changed, it sends nothing..github/workflows/README.mddescribes the job and how to change a dashboard: edit in Grafana, export the JSON, commit it over the file.Before merging
GRAFANA_SA_TOKENrepository secret must be set, for a service account with Edit permission on thetychofolder.mainsends both dashboards, because their files are new. This moves them from the General folder totycho. Their content is the same as the live version, but any UI edit made after the export date is overwritten.Testing
The exported JSON imports cleanly into a separate test dashboard (
tycho-router-trades-ci-test). The live dashboards were not modified.actionlintpasses onmain-workflow.yaml.🤖 Generated with Claude Code