feat(health): show the metricsDb service with prometheus and thanos - #867
Merged
Merged
Conversation
Adds the display labels for the new metricsDb service and its two modules, and picks up the generated SDK enum from the cube-cos-openapi bump. sdk/api.ts is regenerated by 'pnpm api:generate' from the submodule, not edited by hand; the diff is confined to three JSDoc @type unions and three enum members. The submodule is pinned to a34418d on cube-cos-openapi's feat/metricsdb-service -- re-pin to develop once that PR merges. Verified with api:generate, tsc across all 7 workspace projects, eslint, and the web-app build -- all clean. Signed-off-by: Jim Lin <jim.lin@bigstack.co> Co-authored-by: Eandalf <clinah@connect.ust.hk> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Eandalf-Bigstack
force-pushed
the
feat/metricsdb-service
branch
from
September 9, 2026 08:52
03f1bdd to
570ec1f
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 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.
What type of PR is this?
What this PR does / why we need it
Shows the new
metricsDbservice, holding Prometheus and Thanos, on the home health page.CubeCOS grew Prometheus and Thanos as its metric persistence layer and neither had a service to report under.
metricsis collection and visualisation (Monasca, Telegraf, Grafana, Lachesis), a different concern from the time-series database behind it, so this is a sibling service rather than an extension ofmetrics. InfluxDB and Kapacitor stay undernotifications: Kapacitor is a write proxy and alerting engine in this deployment, not only storage, so moving that pair is a separate decision.Two things change:
homeHealthPageUtils.ts—metricsDb: 'Metrics DB'inserviceNameLabelMap, andprometheus: 'Prometheus'/thanos: 'Thanos'inmoduleNameLabelMap. Without these the page falls back toupperFirst(name)and logs aCannot find the label for…warningpackages/cube-frontend-api/cube-cos-openapi— submodule pointer09b7d76→a34418d, andsdk/api.tsregenerated from itWhich issue(s) this PR fixes
Refs bigstack-oss/cubecos#672
Special notes for your reviewer
Additional documentation