Repository navigation
feat(web-console): cost dashboard with platform and My cost views - #1207
Merged
Merged
Conversation
HyperShell environment destroyedThis ephemeral OpenShift environment has been destroyed. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #1207 +/- ##
=======================================
Coverage 47.10% 47.10%
=======================================
Files 475 475
Lines 38639 38639
=======================================
Hits 18200 18200
Misses 18302 18302
Partials 2137 2137
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
This pull request is merged. |
Adds /dashboard/cost (specs/web-console/cost-dashboard.spec.md v0.4.0): BFF cost routes priced with a deployment rate card (COST_RATE_CARD_FILE), billing-owner attribution, the platform and My cost views on the shared widget grid, mockups, and DATA_SOURCES docs. Assisted-by: Claude Claude-Session: https://claude.ai/code/session_01M7N31pRitPRxdU68huDHfF
The cost dashboard showed "cost model not configured" on every deployment because nothing set COST_RATE_CARD_FILE. - deploy/base: add a default rate card (IBM Cloud Red Hat OpenShift on VPC, us-east, November 2026 list prices: gen2 vCPU plus the OpenShift license, and memory) as the hypershell-cost-rate-card ConfigMap, mount it into the console and set COST_RATE_CARD_FILE. Overlays replace the ConfigMap. - deploy/kind: add a Kind-only PrometheusRule that records the four hypershell:* cost inputs from local kube-state-metrics with a fixed cluster="kind" label, and set the Prometheus ruleSelector so it loads. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
… rules The kube-state-metrics ServiceMonitor does not honor labels, so every kube_pod_container_resource_requests series carried namespace=hypershell-system (the exporter's own) and the pod's namespace as exported_namespace. The namespace request rules summed the whole cluster into hypershell-system and gateway namespaces got no cost. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
…nent The base application package shipped the hypershell-cost-rate-card ConfigMap, which the namespace-restricted application Argo CD package does not allow. Move the rate card, its mount, and COST_RATE_CARD_FILE into deploy/gitops-base/components/cost-rate-card, next to openshift-dashboard-metrics. - The base console now starts with the cost model not configured. - The Kind and OpenShift dev overlays include the component, so local dev and e2e keep their prices. - deploy/gitops/applications and deploy/hub do not include it; sites opt in from their gitops overlay. - Add the component to the release bundle manifest paths so gitops overlays can reference it. - Document the opt-in in the spec (0.4.1), the gitops README, and the component README. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M7N31pRitPRxdU68huDHfF
rh-amarin
force-pushed
the
feat/cost-dashboard
branch
2 times, most recently
from
December 1, 2026 11:06
63881ce to
35163d6
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.
Requested by Angel · project thread
🤖 Generated with Claude Code
https://claude.ai/code/session_01M7N31pRitPRxdU68huDHfF
Summary
Adds the cost dashboard at
/dashboard/cost(specs/web-console/cost-dashboard.spec.mdv0.4.0)./api/metrics/cost/summary,/api/metrics/cost/breakdown,/api/metrics/cost/gateways. Any signed-in user:/api/metrics/cost/me/summary,/api/metrics/cost/me/gateways.COST_RATE_CARD_FILE,COST_PROMETHEUS_URL(withCOST_PROMETHEUS_TOKEN_FILEandCOST_PROMETHEUS_CA_FILE), andCOST_CLUSTERS.CostDashboardPagein@openshift-online/hypershell-operational-dashboard-ui, on the shared widget grid. It has a platform view and a My cost view.packages/operational-dashboard-ui/DATA_SOURCES.md.WEB-COSTprefix inspecs/ids.md.Needs design approval
The
ui-build-gateparity check passed for both views. The mockups changed, so they need Angel's design approval:Depends on
The gitops recording-rules PR: https://github.com/openshift-online/hypershell-gitops/pull/3089
Tests
pnpm --filter @openshift-online/hypershell-web-console-bff check).check).