The module lifecycle stage: Generally available version

The module has requirements for installation

Purpose

The Billing and cost management functionality answers the question “how much does the infrastructure cost” and presents that cost in a form useful for finance, business unit owners, and project stakeholders.

Deckhouse Commander collects actual resource consumption data (CPU, memory, storage) from every application cluster and calculates costs using administrator-defined tariffs.

Billing provides:

  • an interactive dashboard with breakdowns by workspace, cluster, project, namespace, controller, resource kind, and hardware type;
  • reports — on demand (instant) and on schedule (recurring), exportable to CSV;
  • a tariff plan catalog with dated tariffs, plus compute and storage class settings.

The functionality is disabled by default. See the administrator guide for how to enable it.

Key concepts

Billing connects clusters with compute resources, tariffed resources that identify their classes, and tariff plans containing dated tariffs with prices for those classes. The plan is selected in the workspace’s billing account.

Billing principle

A tariffed resource is the linking entity: on one side it is bound to a tariff (providing the price), on the other — to a cluster (providing the consumption data stream). Once the link is established, Deckhouse Commander automatically labels the cluster’s nodes and starts receiving metrics. The dashboard and reports apply the dated tariffs from the current billing account’s plan history for each consumption date. A workspace without an account uses the default plan.

Binding to a cluster happens automatically in most cases — when a cloud cluster is connected, Deckhouse Commander creates classes and links them to node groups on its own. For static clusters the binding must be done manually.

For storage classes binding works strictly by name: if a cluster has a Kubernetes StorageClass named network-ssd, it is automatically matched with the identically named storage class in billing. Manual override of storage class binding is not yet supported. A tariff can include multiple storage classes with different prices. The same class, such as network-ssd, can have different prices in different plans. Clusters within one billing account share its plan; use storage classes with distinct names if they need different storage prices within that account.

More on each term:

  • Tariff plan — a named price list selected in a billing account. It contains tariffs with effective dates.
  • Tariff — prices for compute and storage resource types per unit per hour, effective from a given date. At most one tariff per plan is active at a time. Its prices apply to the hours within its effective date range.
  • Compute class — a named compute resource type with its own price. Analogous to a “virtual machine size” in a cloud provider catalog: one class groups nodes with identical characteristics for which a single CPU and memory price is reasonable. Example names: standard-v3-cf-100, m1.large, c4-16gb.
  • Storage class — a named storage type with its own per-gigabyte price. Matches by name a Kubernetes StorageClass through which volumes are created in the cluster. Examples: network-ssd, linstor-thin-r2, ceph-block-gold.
  • Tariffed resource — a resource that has a price in the tariff and actual consumption data. In the current release these are compute classes and storage classes; the list may expand in future releases.
  • Agent (commander-agent) — a component installed in every application cluster that links it to Deckhouse Commander. For billing, the agent performs two tasks: it sends Deckhouse Commander information about the cluster’s node groups and storage classes, and it adds a service label to nodes so Deckhouse Commander can match each node with its compute class.

How Deckhouse Commander calculates cost

The calculation is intentionally transparent and relies on the Prometheus integration already familiar to Kubernetes administrators:

  1. Every application cluster must have the built-in prometheus Deckhouse module enabled and running — it is enabled by default in Deckhouse Kubernetes Platform. Prometheus collects resource consumption metrics (CPU, memory, storage) — standard metrics available in any cluster with this module.
  2. Each node automatically receives a service label billing.commander.deckhouse.io/name with the compute class name as its value. The same name is used in the selected plan’s tariffs as the key for looking up the price.
  3. For storage the key is the Kubernetes storage class name — already present in metrics by default.
  4. Consumption metrics are shipped from Prometheus in the application cluster to Prometheus in the management cluster via the PrometheusRemoteWrite mechanism. No manual setup is required: when billing is enabled, Deckhouse Commander creates the required PrometheusRemoteWrite in the application cluster on its own. Deckhouse Commander applies the selected plan’s tariff prices for each hour to the received metrics and builds cost time series.
  5. Those series feed the dashboard and reports: any slice is a sum of cost over the selected dimensions.

The dashboard, reports, the Integration API, and suggested deductions select the current account’s plan for each consumption date. Dates before a change use the previous plan; dates from the change use the new one. The tariff inside the plan is also selected by date. Workspaces without an account use the current default plan. Editing past prices or moving a workspace may change retrospective estimates. Posted operations and saved report files remain unchanged.

Enabling and initial steps

These steps are typically performed once, when enabling the functionality:

  1. The administrator enables billing in the Deckhouse Commander module settings.
  2. The agent (commander-agent), already running in every application cluster, starts additionally sending Deckhouse Commander information about node groups and storage classes. At the same time, Deckhouse Commander creates a PrometheusRemoteWrite resource in the application cluster, pointing at the management cluster’s Prometheus — consumption metrics are shipped through it. No manual changes to the Prometheus configuration in application clusters are required.
  3. For cloud clusters Deckhouse Commander automatically creates compute classes and storage classes from the received data.
  4. For static clusters storage classes are also created automatically. Compute classes for a static cluster are either created manually by the administrator, or a billing.commander.deckhouse.io/name: <class-name> label is pre-set in the node group template — Deckhouse Commander will offer to create the matching class as soon as it sees the label on the resulting nodes.
  5. The administrator creates a tariff plan, adds a tariff, and defines prices for the compute classes and storage classes that have appeared.

After this the dashboard and reports start showing cost, effective from the tariff’s start date.

Access control

Access is configured in the “Users and permissions” section. Billing is split into independent resources that can be assigned to different roles:

  • billingdashboard — access to the dashboard and analytics.
  • billingtariffs — management of tariff plans and tariffs (the “Tariff plans” tab in the “Tarification” section).
  • billingresources — management of compute classes, storage classes, and their assignments to cluster resources (the “Compute classes” and “Storage classes” tabs).
  • billingreports — report management.
  • billingaccounts — management of billing accounts.
  • billingtransactions — billing account operations: top-up, deduction, and history.

The side menu shows only the sections the user has access to.

Billing account holders do not need separate permissions: when a billing administrator adds a user or a group to the “Account holders” field, read access to that account is granted automatically through the preset billing-account-user role. Such a user sees only their own accounts, related dashboard data, and tariffs from those accounts’ current, scheduled, and previous plans. See the RBAC documentation for details.

Compute classes and storage classes

Why classes

For cloud clusters compute classes and storage classes are created and bound automatically — Deckhouse Commander determines instance types and storage classes from agent data. No manual setup is required, but you can always adjust the automatically created classes and their bindings if needed.

For static clusters automatic compute class detection is not possible (there are no cloud instance metadata), so they must be created and bound manually. Storage classes are still detected automatically.

In previous versions the administrator had to manually add the billing.commander.deckhouse.io/name label to every node group in every cluster — both cloud and static. Classes remove this manual work for cloud clusters:

  • Deckhouse Commander forms class names from cloud instance parameters (or picks them up from the node group template), adds the corresponding label to nodes via the agent, and maintains it when nodes are re-created. Editing cluster manifests is no longer necessary.
  • A class has two attributes: a technical identifier and a human-readable name. The identifier is used as the value of the billing.commander.deckhouse.io/name label on nodes and as the reference to the class from the tariff, so it must follow Kubernetes label-value rules. The name is shown in the UI and reports; it can be freely edited without changing the identifier: for example, for the identifier standard-v3-cf-100 you can set the name “Standard (2 vCPU, 4 GiB)”.
  • A class is a single entity visible in the billing section: identifier, name, description, list of clusters where it is used. Opening a class shows which node groups are assigned to it.
  • One class can be used across several clusters (for example, identical node configuration in three clusters of the same site) and in several tariffs.
  • Each dated tariff within a plan sets prices by class identifier.

Where classes come from

In most cases classes are created automatically:

  • Cloud clusters. As soon as a cloud node group (CloudEphemeral, CloudPermanent) appears in a cluster, Deckhouse Commander receives its InstanceClass description from the agent, computes the compute class name using provider-specific rules, and creates the class if it does not yet exist. Right after a cloud cluster is created, the user sees the full set of compute classes used by the cluster in the “Tarification” section.
  • Storage classes are created automatically in every cluster — cloud and static alike. Whenever the agent reports a Kubernetes storage class for which there is no corresponding billing storage class yet, Deckhouse Commander creates one.

For static clusters compute classes do not appear automatically (the agent cannot derive them from hardware configuration). There are two options:

  • Create compute classes manually in “Tarification” → “Compute classes”.
  • Pre-set the billing.commander.deckhouse.io/name: <class-name> label in the node group template. When the agent sees this label on the resulting nodes, Deckhouse Commander offers to create a matching compute class — accepting the suggestion is a one-click action.

Automatically generated class names

The compute class name is not arbitrary — it is built from instance characteristics that influence price. This way the administrator immediately sees which resource type is meant, and Deckhouse Commander guarantees that nodes with identical configuration land in the same class.

Provider Naming rule Example
Yandex Cloud {platformID}-cf-{coreFraction} standard-v3-cf-100
AWS {instanceType} m5.xlarge
GCP {machineType} n1-standard-4
Azure {machineSize} standard-f4
OpenStack {flavorName} m1.large
vSphere / zVirt / Dynamix {numCPUs}c-{memory}m 4c-8192m
VMware Cloud Director {sizingPolicy} 4cpu-8mem
Huawei Cloud {flavorName} s6.xlarge.2
DVP (Deckhouse Virtualization Platform) {virtualMachineClassName}-cf-{coreFraction} generic-cf-100

If the auto-generated name is not suitable, it can be changed when accepting Deckhouse Commander’s suggestion. After a class is linked to a cluster the name becomes protected from editing — it is used as a key in Prometheus metrics, and renaming would break the link to historical consumption data.

Manual assignments take precedence

If the administrator manually changed the “node group ↔ class” assignment (for example, moved a node group from standard-v3-cf-100 into a separate gpu-enabled class), automatic matching will not revert the change. Manual assignments always take precedence over automatic ones.

“Tarification” section

The “Tarification” section in the side menu contains three tabs:

  • Tariff plans — plans with expandable dated tariffs, prices, and management actions.
  • Compute classes — list of classes, create/edit/delete actions, class detail page.
  • Storage classes — list of classes, create/edit/delete actions, class detail page (read-only).

On the “Compute classes” and “Storage classes” tabs, mismatches (node groups without a class, metrics without a matching class) are marked by an orange indicator in the tab title. A warning inside the tab describes the issue and how to resolve it.

Compute classes

The tab shows a table with class name, description, and the list of clusters where the class is used. Clicking a name opens the detail page with the list of node groups across all linked clusters. There you can:

  • manually assign the class to an additional node group (for example, in a static cluster);
  • remove an assignment if the class was applied automatically but is not a fit for that particular cluster;
  • see which assignments are manual (take precedence) and which are automatic.

The same tab shows Deckhouse Commander’s suggestions:

  • “Create a compute class for this node group” — if Deckhouse Commander has observed an instance type in the cluster that does not yet have a matching class;
  • “Class for a label from Prometheus” — if historical metrics contain values of the billing.commander.deckhouse.io/name label with no matching class (typical after an upgrade from previous versions).

Accepting a suggestion creates the class automatically; before accepting, the generated name can be edited.

Storage classes

The tab layout is similar. One difference: storage class assignments to clusters are fully automatic by name match with Kubernetes storage classes. In this Deckhouse Commander version the storage class detail page is read-only — the list of clusters where a Kubernetes storage class with this name exists is maintained automatically. Manual assignment is not provided for storage classes.

This is a technical limitation of the current release: storage consumption metrics are keyed by the Kubernetes storage class name, and there is no way yet to tag a StorageClass object with an arbitrary billing label (similar to the billing.commander.deckhouse.io/name label on nodes). Therefore, different prices for the same class are set in the tariff plans of billing accounts. If clusters within one account need different storage prices, use Kubernetes storage classes with distinct names — they will appear in billing as separate classes automatically.

Tariff plans

A tariff plan contains dated tariffs with compute and storage class prices. Plan names are unique; tariff names and start dates are unique within a plan. A created tariff cannot be moved to another plan.

Open “Tarification” → “Tariff plans”. Create a plan with a name and description, or find it by name. The first plan becomes the default and is assigned to existing accounts without a plan. The catalog shows the active and next tariffs. With account viewing permission, the “Accounts” column shows the number of non-archived accounts on the plan that you can access. Click the number to open the list.

Expand a plan to see its tariffs, ordered by start date from newest to oldest. Click a tariff name to open its prices. Classes detected in this plan’s workspaces that you can access are checked against its active tariff. For the default plan, this includes workspaces without a billing account. Missing or zero prices trigger a warning listing the affected classes. Set their prices in that tariff. “Add tariff” and “Import” add tariffs to the selected plan.

To change a plan’s name or description, click the pencil button. This action is available only for non-archived plans. Copying and archiving are available in the plan menu. A copy is an independent active plan with all source tariffs; the source can be empty or archived. Source changes do not affect the copy.

The default plan appears above the catalog. Changing it affects new accounts and retrospective estimates for workspaces without an account; existing account assignments stay unchanged. The default plan and a plan selected as the destination of a scheduled account change cannot be archived. An archived plan stays assigned to existing accounts and continues to be used in their calculations. It cannot be selected for a new account, as the destination of a scheduled change, or as the default plan. Its name and description are read-only. Existing tariffs can be edited or deleted; new tariffs cannot be added or imported. Plans cannot be deleted or restored.

Tariffs

An expanded plan shows “In effect”, “Scheduled”, and “Completed” tariffs. The tariff with the latest start date that has already arrived is active. Add a later tariff for future prices. Its form sets the calculation model, aggregation, start date, and hourly CPU, memory, and storage class prices.

Changing pricing conditions or deleting a tariff changes repeated calculations for its effective period. A warning appears when the action affects calculations for today or earlier dates. With account read permission, it includes the number of accessible accounts currently or previously assigned to the plan, if that number is greater than zero. Posted deductions and saved report files remain unchanged.

In the web interface, the billing-account-user role opens current, scheduled, and previous plans of the holder’s accounts, including paid periods. Without accounts, the list is empty even when the role is assigned directly. A separate role with billingtariffs:get opens the whole catalog for reading; create, update, and delete permissions allow their respective actions. Access to accounts is determined separately.

Creating a tariff

Creating a tariff comes down to one large decision — “what price is fair” — and a handful of mechanical steps. The examples below cover typical situations.

Common steps

If no plans exist yet, create one first.

  1. Open “Tarification” → “Tariff plans”, expand a plan, and click “Add tariff”.
  2. Check the displayed plan.
  3. Enter the tariff name (for example, “Yandex Cloud — 2026” or “Internal R&D rate, Q1”).
  4. Select the calculation and aggregation model.
  5. Set the tariff start date (today by default).
  6. In the “Compute resources” block, add each compute class one by one and set the CPU and memory price for each.
  7. In the “Storage” block, add storage classes and the per-gigabyte price.
  8. Save the tariff.

The dashboard and reports start using the tariff from its start date; tariffs can be entered or canceled retroactively.

Example: Yandex Cloud (or any public provider)

Prices are taken from the provider’s price list and normalized to one hour.

Compute class CPU, ₽/core·h Memory, ₽/GiB·h
standard-v3-cf-100 1.50 0.40
standard-v3-cf-50 0.75 0.40
Storage class ₽/GiB·h
network-ssd 0.02
network-hdd 0.005

Rates are illustrative; for a public cloud, keep them in sync with the provider’s official price list.

Example: private cloud (vSphere, OpenStack)

A private cloud has no external price from a provider — the organization owns the infrastructure. The typical approach is to build an internal price list (chargeback) based on:

  • depreciation of servers and storage over the expected service life (usually 3–5 years);
  • electricity, cooling, and data center placement costs;
  • hypervisor, storage, and related software license costs;
  • proportional cost of operations staff;
  • an overhead for idle capacity and reserves.

The resulting hourly CPU and per-gigabyte memory prices go into the tariff and are applied to the private cloud’s classes exactly as for a public cloud.

Example (OpenStack):

Compute class CPU, ₽/core·h Memory, ₽/GiB·h
m1.large 0.80 0.25
m1.xlarge 0.80 0.25
c4.large (compute-optimized flavor) 1.00 0.25

Example (vSphere, class names are formed as {cpu}c-{memory}m):

Compute class CPU, ₽/core·h Memory, ₽/GiB·h
4c-8192m 0.70 0.20
8c-16384m 0.70 0.20
16c-32768m 0.70 0.20

For a private cloud, tariff rates are not required to match market prices. The important thing is that the total computed by the tariff for a period matches the amount the organization expects to charge back to consuming business units.

For private cloud storage, the tariff usually lists:

  • a separate rate for “fast” storage (NVMe, SSD) with a higher price;
  • a separate rate for “bulk” storage (HDD, object storage) with a lower price;
  • where necessary, a separate rate for replicated or encrypted classes.

If the hardware formally belongs to another legal entity (a parent company, a group service company), the tariff’s role is to fix a transfer price: it is agreed with the finance function and does not have to match either the market or the internal cost of service.

Example: static cluster (bare-metal)

For a static cluster Deckhouse Commander does not create compute classes automatically. The workflow is:

  1. In “Tarification” → “Compute classes” create classes that reflect the actual node types (for example, bm-cpu-2x32, bm-gpu-a100).
  2. Additionally, the billing.commander.deckhouse.io/name label with the same class name can be pre-set in the node group template — Deckhouse Commander will then link the class to the node group automatically when nodes appear in the cluster.
  3. Go to the class detail page and manually assign the class to the corresponding node groups.
  4. No action is required for storage classes — they are created automatically by Kubernetes storage class names.
  5. Create the tariff and set the prices.

The pricing methodology for a static cluster is typically the same as for a private cloud: depreciation, electricity, licensing, and operations divided by the forecast total consumption.

Calculation and aggregation models

The calculation model defines which consumption value is multiplied by the price:

  • By requests — uses resources.requests declared on pods. Suitable when planned load matters more than actual load. Required for correct billing: every pod whose cost should be included must declare resources.requests for CPU and memory. Pods without requests are counted as zero consumption in this model and their resources are not billed.
  • By real usage — uses actual CPU and memory consumption by pods. Closer to the public-cloud model; requests are not required for the calculation.

The aggregation model defines how the hourly consumption value is obtained from more frequent measurements:

  • By average — hourly average;
  • 95th percentile — aggregation by peak load, smoothing out rare spikes.

The minimum tariffication unit is one hour.

“Dashboard” section

The dashboard is intended for real-time cost analysis.

The dashboard and reports display only those resources for which metrics are actually arriving. If a resource has been created but data has not yet reached Prometheus, it will not appear in filters or tables. This is not a bug: the system shows the actual consumption picture, not the declarative configuration state. Typical reasons for a delay:

  • the agent has not yet transmitted node group information;
  • the billing.commander.deckhouse.io/name label has not yet been applied to nodes (class not linked to a tariff);
  • Prometheus has not yet performed the first scrape with the new label value;
  • the remote write interval has not yet elapsed.

Typically, data appears within a few minutes after bindings are configured.

Available slices and filters:

  • workspace;
  • cluster;
  • project (for workspaces where projects are enabled);
  • namespace;
  • controller (Deployment, StatefulSet, DaemonSet, etc.);
  • resource kind — CPU, memory, storage;
  • compute class;
  • storage class;
  • billing account — you can select specific accounts, and group costs by account in the breakdown. Workspaces of the same account are summed into a single row, and unlinked ones go to a separate “No billing account” row.

A selected project is included only in its own cluster: projects with the same name in other clusters are excluded. Project options show the workspace and cluster names; when the labels of different projects still match, a cluster ID is added. A project selection, including one saved in a dashboard link, follows the project itself: after the project is renamed or its cluster is reattached, the project’s current name and cluster are used, and data under the old name or the previous cluster association is not included. A selection of a deleted project matches no data. For each name, the “all available clusters” option selects that name within the available data and other filters, including data without a project record.

The “Tariff plans” filter lists plans effective for visible accounts in the selected period, including archived plans. Selecting accounts narrows this list. With access to all accounts and no specific accounts selected, the list also includes the default plan used for workspaces without an account. A plan breakdown separates costs before and after a change; a plan filter retains only its intervals. Billing dates and periods use Moscow time — MSK (UTC+3), regardless of the browser time zone.

For the selected filter the dashboard shows charts and tables of cost grouped by day, week, or month, together with the total for the period. All filter values are derived only from resources the current user has access to: a billing account holder sees dashboard data only for their own accounts.

To download the displayed cost table, select a period and filters and click “Download CSV”. The file contains all table rows in their current order and a “Total” row. Columns match the selected resources; an empty selection includes all resources. Data for the current day may be incomplete. Classes without a price have zero cost, and dashboard warnings are not included in the file. The download does not create a report in the “Reports” section and requires billingdashboard:get.

Volumes and totals come from the table. Volumes are rounded up to two decimal places, as on the dashboard; the cost total is the sum of the rounded row values. Total volume is calculated from the original values and rounded up separately, so it may differ from the sum of the rounded row volumes. For example, original values 1.001 and 1.001 are displayed as 1.01 and 1.01, while the total is 2.01. Costs and their total have two decimal places. The CSV uses UTF-8 and a comma as the field separator. To import the file in Excel with Russian regional settings:

  1. Select “Data → From Text/CSV”, UTF-8 encoding, and a comma delimiter. Disable data type detection.
  2. Click “Transform Data”. For each numeric column, select “Change Type → Using Locale” and the “Decimal Number” type with the “English (United States)” locale. Leave the names column as text.
  3. Click “Close & Load”.

Opening the file by double-clicking does not guarantee correct field separation or number recognition.

“Reports” section

The “History” tab contains server-generated reports, their parameters, and files. Filter the list by name, status, type, data period, or schedule. The schedule filter includes only reports created after the upgrade; earlier reports remain available in the full history. Statuses update automatically. Select a report name to view its parameters and the cause of an error. A failed report can be retried with the icon in its row or the “Retry” button in the parameters panel; the same record is generated again. Deleting a completed report also deletes its file; billing data and the schedule remain unchanged. A report that the previous version left in “Generating” after an upgrade can be deleted, as before the upgrade.

“Open on dashboard” is available when the dashboard supports the report parameters and the data scope is accessible. The dashboard performs a new calculation; the saved file remains unchanged. One-time CSV downloads from the dashboard do not appear in history.

Server report types are “Instant”, “Scheduled”, and “Full export”. Their statuses are “Queued”, “Generating”, “Ready”, and “Error”.

The project filter in detailed instant and regular reports and in dashboard table schedules works as on the dashboard: a selected project is included only in its own cluster, a saved selection follows the project after it is renamed or its cluster is reattached, and a selection of a deleted project matches no data. Schedules do not need to be updated after such changes. Each name can also be selected across all available clusters. If an existing report or schedule stores only the project name, the filter continues to include projects with that name within the other filters.

Instant and regular reports support plan filtering and plan or account breakdowns. The full export includes the plan and hourly price for each row date. Assignments and prices are captured when generation starts; saved files remain unchanged.

The “Schedules” tab shows the state, next run, and the date and time of the last run. Below the next run date, the “Data for …” line shows the data period of the upcoming report. The “Last run” column shows the actual run date and time in Moscow time; if there have been no runs, it shows “—”. Click the run time to open the schedule history. Deleting a report does not change the last run time. The next run is shown in Moscow time, for example “01.11.2026, 09:00 MSK” for a dashboard table and “10.11.2026, after 00:00 MSK” for a detailed CSV. A schedule can be edited, paused, resumed, or deleted. Pausing or deleting a schedule does not cancel reports already created. Runs missed while paused are not generated on resumption. If a detailed schedule is resumed on its scheduled day, a report for the previous closed period is created at the next processing pass.

Two schedule formats are available:

Format Configuration and content Calendar and API access
Dashboard table Created from the dashboard; one breakdown, selected filters and resources, sorting, and a “Total” row Calendar day, week, month, or half-year; runs at 09:00 MSK. Files are available in history and excluded from the detailed reports API
Detailed CSV Created through “Create report → Regular”; supports multiple breakdown levels Period anchored to the selected start date; runs at the next processing pass after the scheduled day begins. Generated files are available through the Integration API

Both formats cover closed days without overlaps. After a technical outage, active schedules catch up missed runs in order. Runs missed before the upgrade are not restored automatically. When the calendar changes, earlier due runs use the previous settings; some days at the boundary can be left without a report. The edit form shows these days before saving.

Reading history and downloading files require global billingreports:get. Account membership alone does not grant it. Creating reports and schedules and retrying a failed report require billingreports:create, editing and pausing require billingreports:update, and deletion requires billingreports:delete. The interface also requires read access to act on existing records. Direct change requests check the corresponding permission independently of read access. Scheduled runs are performed by the system and do not depend on the schedule creator’s permissions.

Creating a schedule from the dashboard

  1. Set the filters, resources, breakdown, and optionally the table sort order. Click “Configure schedule”.
  2. Select “Create new”, enter a name and frequency, and review the data scope and next run.
  3. Click “Save”. The current dashboard period is not copied: each run calculates its own calendar period.

With restricted access, the saved scope is limited to accounts accessible on the dashboard at save time. With global access and no narrowing filters, the scope remains global and includes new accounts. To change the content, open the schedule on the dashboard, change the filters, select “Update an existing schedule”, and click “Update contents”. The name, calendar, file language, state, and shared history remain unchanged; existing files are not modified. The language of CSV column headers and labels is determined by the interface language when the schedule is created. Changing the interface language or updating the content later does not change the language of these labels.

Creating an instant report

  1. Click “Create report”, enter a report name, and select “Instant”.
  2. Set the period and breakdown levels; enable “Drill down by resources” if needed.
  3. Click “Create”. The completed CSV is available in history. The “Full export” type also remains available.

Creating a detailed schedule

  1. Click “Create report”, enter a report name, and select “Regular”. Below the report type, the hint “Configure dashboard table schedules on the dashboard.” is shown. With dashboard access, the hint includes an “Open dashboard” link; opening it does not create a schedule.
  2. Set the start date, frequency, breakdown levels, and filters.
  3. Click “Create”. The schedule appears on the “Schedules” tab and generated reports appear in history.

“Billing accounts” section

A billing account is a prepaid balance that workspaces are linked to. It answers the question “whose budget runs this infrastructure and is there enough money in it”: while the account has funds, its workspaces work as usual; once the balance is exhausted, new clusters can no longer be installed in them.

A workspace belongs to exactly one billing account, while one account can cover several workspaces.

The balance cannot be edited directly: it always equals the sum of the recorded operations. Operations are immutable — a mistake is corrected with a compensating operation, not by editing or deleting an existing one. This keeps the balance history trustworthy and makes it possible to derive the “paid until” date — the date up to which consumption has already been paid for.

Who sees what

Two roles work with billing accounts:

  • billing administrator — sees all accounts, creates and edits them, tops up balances, and issues deductions;
  • billing account holder — sees only the accounts they were added to, and only in read-only mode: balance, accrued expense, operation history, and the tariffs of their accounts’ current, scheduled, and previous plans. There are no top-up or deduction buttons for this role — those operations are performed by the billing administrator by agreement.

Billing account holders are assigned in the account form itself; see Access control for the permission details.

Creating an account and linking workspaces

  1. Open “Billing” → “Billing accounts” and click “Create account”.
  2. Provide the account name and currency.
  3. Select a tariff plan. The current default plan is preselected. The first created plan automatically becomes the default. Without permission to read tariffs, the selector shows the default plan and is disabled. If no plans exist, the account is created without a plan; it receives the first plan automatically when that plan is created.
  4. In the “Account holders” field, select the users and groups that need access to the account.
  5. In the “Linked workspaces” field, select the workspaces whose consumption is paid from this account. Workspaces already linked to another account are not selectable.
  6. Click “Create”. The account appears in the table with a zero balance.

The account card shows its tariff plan and active tariff, or indicates that no active tariff exists. The name, the set of holders, and the set of linked workspaces can be changed by editing the account; its plan is read-only in this form. The workspace form itself does not mention billing accounts; automated linking is available through the Integration API.

An account can be deleted even if workspaces are linked to it: the workspaces themselves are not deleted, they only lose the link and then show up in the list of unlinked workspaces (see below).

Changing an account’s tariff plan

Open the account card and click “Change plan”. Select another active plan, a future start date, and provide a reason. The change takes effect at 00:00 in Europe/Moscow; today and past dates are unavailable. This action requires billingaccounts:update, and selecting a plan requires billingtariffs:get.

The account list and card show the scheduled plan and date; the card also shows the reason. Only one change can be scheduled at a time. Scheduling another change requires explicit confirmation that it replaces the existing one. “Cancel change” keeps the current plan. Applied changes cannot be cancelled; schedule a new future change to return to the previous plan. Deleting an account also cancels its scheduled change.

If another administrator updates the scheduled change, review the updated details before confirming a replacement. Changes and cancellations are recorded in the account’s change history.

The dashboard, reports, the Integration API, account expense, and suggested deductions use plan history: dates before a change use the previous plan; dates from it use the new one. Posted deductions stay unchanged. Scheduled changes do not affect the burn rate or forecast before they take effect.

Moving a workspace to another account

Calculations use the account’s current workspace membership for the entire selected period. After a move they use the destination account’s plan history; without an account they use the current default plan. Posted operations of both accounts remain unchanged.

The “paid until” date belongs to the account and does not move with the workspace. A suggestion can include consumption already paid on the previous account, or omit unpaid consumption before the new account’s “paid until” date. There is no automatic warning about duplicate payment. Before deducting, the billing administrator reconciles the operations on both accounts and adjusts the amount manually. If the new account has no deductions yet, the administrator can also change the first period’s start to exclude days already paid. A zero deduction cannot be posted; enter a positive amount for any manual settlement.

Workspaces without a billing account

When an installation is upgraded, billing accounts are not created automatically for existing workspaces. Instead, a warning listing the workspaces that are not linked to any account appears above the table on the “Billing accounts” tab.

To make the warning disappear, create the required accounts and link the listed workspaces to them. The warning is shown to those who can create accounts, that is, to the billing administrator.

Topping up the balance

Top-ups are performed by the billing administrator by agreement with the billing account holder. Open the account, click “Top up balance”, enter the amount, and confirm. The balance increases and a top-up entry appears in the operation history.

This is a manual deposit of funds, not a card payment: there is no payment gateway integration.

Issuing a deduction

Deductions are also performed by the billing administrator, using the “Issue invoice” button in the account card. In the dialog that opens, the period and the amount are already filled in:

  • Period start (paid until) — the “paid until” date: the end of the last deducted period. When there were no deductions yet, billing starts from the earliest date with consumption data for the linked workspaces, so a workspace that had been running before the account appeared is not left unpaid. While the account has no deductions, the start can be changed: pick any past date and the amount is recalculated for that period. After the first deduction the start is pinned to the “paid until” date and cannot be edited, which prevents repeated deductions of that period on the same account.
  • Period end — the last billed day, yesterday by default. Only closed days are deducted: today and future dates are disabled in the calendar, and the current day is deducted later. The date can be moved back, down to the “paid until” day.
  • Amount — the cost of the linked workspaces’ consumption over the suggested period, calculated by the same engine as the reports. Changing either period bound recalculates the amount, and it can still be adjusted manually — your edit is kept until you submit.

If no day has closed since the “paid until” date, there is nothing to deduct — the “Issue invoice” button is disabled, and its tooltip explains that every closed day is already paid.

After confirmation the balance decreases, a deduction with the given period appears in the history, and the “paid until” date moves to the end of that period — regardless of whether you changed the amount.

If the tariff plan changed during the selected period, the dialog shows a warning with all change dates and the calculated amounts for each part of the period. You can still adjust the total amount.

If some consumption cannot be priced, an “Incomplete calculation” warning shows the reason and the affected period. The shown amount is the known part of the cost; a price in another plan does not fill the gap. A deduction requires a positive amount, which you can enter manually. Posting moves the account’s “paid until” date to the period end regardless of the amount.

The dashboard and suggested deduction match for identical periods, consumption, breakdowns, and rounding. To compare them, select the same period, account, object types, resources, and system namespaces on the dashboard. A manually posted amount can differ from the calculated estimate.

The balance may go negative: existing clusters keep running and consuming resources regardless of the account state.

Accrued expense, remaining balance, and forecast

Besides the balance, the account card shows estimated values calculated at the moment it is opened:

  • Current expense (since the “paid until” date) — the cost of consumption that has not been deducted yet. It includes unclosed days, so right after a deduction the expense shows the cost of the current day rather than zero.
  • Remaining balance — the balance minus the current expense.
  • Burn rate — the average daily expense over the same window.
  • Depletion forecast — how many days the remaining balance lasts at the current burn rate, and until which date. If there is no expense, or the remainder is already non-positive, no forecast is shown.

These values are estimates and do not change the balance. If a tariff or price is missing for part of the period, the card shows the known amount and an “Incomplete calculation” warning.

If the forecast says the funds last less than 7 days, a low balance warning appears in the account card. An account with a non-positive balance is noticeable without reading the numbers: the remainder is highlighted in red, and a warning marker with an explanation appears next to the balance in the accounts table. Both the warning and the marker are visible to both roles within the accounts available to them.

Operation history

The “Operation history” tab of the account card lists every recorded operation: date, kind (top-up or deduction), amount, period (for deductions), and comment.

A change of a workspace’s billing account is recorded separately. When a workspace is linked to a billing account or unlinked from it (including when the account is deleted), a “Billing account” record appears in the change history of that workspace: who changed the link and when, with the previous and the new account in the changes. These records are visible to those who have the billingaccounts/audit permission (see the RBAC documentation).

Financial block

When the account balance becomes non-positive (<= 0), the workspaces linked to it are considered financially blocked:

  • a warning banner is displayed in the clusters section of such a workspace (without the balance amount — it is visible only to those who have access to the account);
  • a cluster can still be created, but only as a draft: the configuration is saved, the installation is not started. The button on the creation form is named “Create” and comes with a hint explaining the reason;
  • the “Install” action on the draft page is unavailable, and the hint explains why. If cluster creation approval is enabled in the workspace, approving the installation is unavailable for the same reason — both on the cluster page and in the notifications window;
  • only a cluster whose installation has not started yet can be moved into a financially blocked workspace; for other clusters the move is rejected with a message about the block;
  • clusters that are already running are not stopped and keep being charged.

Once the balance is topped up, the block is lifted automatically: the banner disappears and the “Install” action becomes available.

The installation is started by the user: topping up the balance does not start it — neither for the drafts created during the block, nor for any other. Changing workspace settings, for example switching the change application mode, does not start the installation either.

Billing automation

The Integration API lets an external system retrieve costs in JSON/CSV, manage accounts, tariff plans, and tariffs, post top-ups and deductions, and list and create resource classes.

Access requirements and request behavior are described in billing operations, and worked requests in Billing examples.

Migration from earlier versions

Upgrading to tariff plans

When upgrading to tariff plans, existing tariffs are placed in the “Original” plan with their identifiers, dates, and prices preserved. Existing accounts receive that plan, which also becomes the default; posted operations and saved report files remain unchanged. If there were no tariffs, no plan is created. The first plan created later becomes the default and is assigned to accounts without a plan.

Rolling back to an earlier version is not supported. Cost estimates may temporarily be zero during the upgrade.

Resource classes

Earlier configurations that used billing.commander.deckhouse.io/name labels and class names in tariffs are converted automatically. Historical dashboard and report data is preserved.

What happens automatically

  1. Data migration: for every label name that was specified in a tariff, a compute class with the same name is created and its link to the tariff (price) is preserved.
  2. Resource discovery: when generating a compute class for a cloud node group, the automation checks whether the node group already has a billing.commander.deckhouse.io/name label. If the label exists, the class is created with the same name. This ensures the auto-created class matches what is already in use, and no conflicts arise.
  3. Storage classes are created immediately from agent data.

After the upgrade you can remove the billing.commander.deckhouse.io/name label from node group templates (spec.nodeTemplate.labels). The agent now applies the label to nodes on its own, and the manual template label is no longer needed. If left in place, the label is simply duplicated with no negative effects.