Skip to content

Latest commit

 

History

History
116 lines (89 loc) · 6.03 KB

dashboard.md

File metadata and controls

116 lines (89 loc) · 6.03 KB

Dashboard

A read-only web view of a Nebula install: the instances it runs and where, what they cost, and how placement and provisioning behave over time. It runs next to the manager and is opened with kubectl port-forward. How to build and configure it is in components/dashboard; this page is what it shows and where each number comes from.

Install and open

cd components/dashboard
make docker-push deploy     # or deploy a released inftyai/nebula-dashboard image
make port-forward           # http://localhost:8080

Two optional sources add to what it can show; both are flags in config/deployment.yaml:

  • --prometheus-url, the Prometheus that scrapes the manager: the Metrics page, the Overview's charts, and each provider's auth state. Without it, the live pages still work.
  • --opencost, one OpenCost per kubernetes-provider cluster: the cost of the instances Nebula's catalog does not price (below). Without it, those read $0.

Pages

Overview

  • Over time: instances and cost by provider, over a range you pick (30m to 7d).
  • Current: the burn rate, the instances by phase, and how many issues there are.
  • Issues: what needs a look, in two groups. Workloads blocked: a provider with no virtual node, a virtual node NotReady, a provider refusing Nebula's credentials, a pool not Ready, Pods waiting for placement too long. Cost under-reported: running instances with no price. Each says what to do.
  • Resources: the providers, clusters and pools with their state, linking to their pages.
  • Most expensive instances: ranked by what each has cost since it started, not by its rate.

Metrics

Charts over the manager's metrics, grouped by the question each answers. Every chart names its source metric under its title. Bars are per interval (one minute at 30m, six hours at 7d); the interval is in each chart's ⓘ.

Group Chart Source
Fleet Instances nebula_nodeclaims
GPUs, by type nebula_nodeclaim_accelerators
Cost Cost by provider, by accelerator, by capacity type nebula_cost_usd_total and OpenCost
Placement Placement decisions nebula_placement_decisions_total
Placement wait duration, p95 nebula_placement_wait_duration_seconds
Candidate skips by reason nebula_placement_candidate_skips_total
Placement deferrals by reason nebula_placement_deferrals_total
Provisioning Provision duration, p95 nebula_provision_duration_seconds
Instance ready duration, p95 nebula_instance_ready_duration_seconds
Provision failures by reason nebula_provision_failures_total
Teardown duration, p95 nebula_teardown_duration_seconds
Other Reflections by result nebula_reflections_total
Provider auth failures nebula_provider_auth_failures_total

The duration charts can be broken down by provider, accelerator, region or capacity type.

Instances

Every NodeClaim, plus the Pods still waiting on placement (which have no claim yet), filtered by phase: Waiting, Provisioning, Bound, Terminating, Terminated. A row opens a sheet with the instance's price and accrued cost, where it was placed, its identifiers (copyable), its timeline, and the NodeClaim's YAML.

Pools, Providers, Clusters

  • Pools: each NodePool's state, providers in placement order, capacity types, and how many of its Pods are ready out of all it has. The NodePool's YAML is one click away.
  • Providers: each provider's virtual node and auth state, its instances and burn rate. Its sheet lists the catalog, Spot and OnDemand prices side by side.
  • Clusters: the kubernetes provider's clusters, with region, geography and instances.

How the numbers are made

Cost

Figure What it is
Price / h Nebula's list price for the instance, written on its NodeClaim; for a kubernetes instance, OpenCost's rate for the real Pod.
Burn rate The sum of Price / h over every instance billing right now (Bound or Terminating). The present only.
Accrued What an instance has cost so far: the NodeClaim's own ledger, or for a kubernetes instance, OpenCost's rate times the time since it was provisioned.
Cost charts Dollars spent in each interval: the increase of nebula_cost_usd_total over that interval, plus OpenCost's history for kubernetes. Each chart's header is its window's total.

kubernetes instances run on the target clusters' own nodes, which Nebula's catalog does not price, so their cost is OpenCost's estimate and is marked "OpenCost" wherever it appears. The dashboard reads OpenCost's allocation API for Nebula's Pods only, and keeps its history in memory. After a restart it reloads that history in the background; until it has, the cost charts are marked partial and refetched.

The split by accelerator and capacity type for kubernetes comes from the real Pod's nebula.inftyai.com/accelerator-type and capacity-type labels. A Pod from before those labels existed may read unknown.

Fleet

Instances and GPUs are the most running at once in each interval: the Bound NodeClaims, whose instance exists and bills, the same set cost accrues on. Bound includes an instance still booting. A GPU is counted per accelerator the claim holds, so an 8-GPU instance counts 8.

Durations

The p95 lines are each stage on its own: the wait for placement, the provider's provision call, and provisioning until the instance runs. Percentiles do not add up, so the stages cannot be summed into one total. In a quiet interval the p95 is the slowest few, so a lone outlier shows as a spike.

Access

The dashboard authenticates nobody: it listens only on its Pod's loopback, so kubectl port-forward is the one way in, and that is governed by the pods/portforward permission in nebula-system. Other Pods in the cluster cannot reach it. It shows every tenant's Pod names, cost labels and spend, so do not expose it through an Ingress. It never serves a Pod's YAML, whose env can hold secrets.