Skip to main content

ankra cost

Read the organisation’s cloud cost - the same figures the portal shows under Cost - for reporting and automation. Every hour Ankra prices each cluster from its node inventory at the provider list price and allocates the result to namespaces by their CPU and memory share, so each team sees the share it drives. The fleet summary rolls every priced cluster up by provider and lists the costliest clusters; its month to date also counts what clusters spent this month before they were deleted or stopped reporting, and names them, since no provider row includes it; a cluster read adds the component breakdown, the namespace allocation and the daily trend. The savings model reads the biggest priced clusters and proposes one lever per cluster (right-size idle capacity, reduce unallocated run rate, or an off-hours schedule for non-production) with the monthly saving each is worth. The ledger follows each approved cost change through to the saving measured seven days after it ran. The display currency and the effective discount apply to every figure. The network egress estimate setting is stored, not metered yet: no figure includes network egress today. The fleet reads (summary, savings, ledger, trend, events, reconcile, budgets, and the clusters ‘autopilot get’ lists) cover the project you act in (see ‘ankra project current’); pass --all-projects to read the whole organisation, or the global --project to read another project. Pass -o json (or yaml) for the full API document.

ankra cost autopilot

The cost autopilot decides which cost changes Ankra proposes on its own - the Autopilot view in the portal. It never makes a change itself: everything it files is a proposal that waits for a person to approve and run it (ankra cost decisions). Every environment kind (production, staging, development, preview, unknown) defaults to a tier, each described by ‘ankra cost autopilot get’. On scheduled and managed, Ankra proposes stopping the cluster outside working hours; on hands-off and ephemeral it proposes nothing on its own. A cluster takes its environment’s tier unless a person overrides it. The quiet hours and the notification route are kept with the policy: the autopilot starts nothing on its own at any hour and sends no notice to the route today. An organisation that never set a policy is hands-off for every kind. Reading the policy is open to every member; changing it needs billing.manage and clusters.write (at the cluster, for an override).

ankra cost autopilot clear

Remove a cluster’s override, returning it to its environment’s tier
Examples
Flags

ankra cost autopilot get

Show the organisation’s autopilot policy, the tiers, and the tier of every live cluster in the project you act in. The policy is the organisation’s, so it reads the same in every project; only the cluster list follows the project. --all-projects lists every project’s clusters, and the global --project flag picks another project. A cluster list your cluster permissions cut short says so.
Examples
Flags

ankra cost autopilot override

Put one cluster in a tier whatever its environment kind. --reason is the sentence a card shows for it (3 to 500 characters). The override replaces the cluster’s previous one and lasts until --expires-at (an RFC 3339 time) or for --expires-in (a duration such as 72h), or with no expiry when neither is given. ‘ankra cost autopilot clear’ returns the cluster to its environment’s tier.
Examples
Flags

ankra cost autopilot set

Change the organisation’s autopilot policy. Only what you pass is sent, so every other part keeps its value: --default changes only the environment kinds it names, and the quiet hours and the notification route change only when you pass them or clear them. --default KIND=TIER may repeat. The kinds are production, staging, development, preview and unknown; the tiers are hands-off, scheduled, managed and ephemeral. --quiet-hours takes a daily window as START-END in 24-hour HH:MM (an end before the start runs past midnight) and needs --timezone, an IANA zone.
Examples
Flags

ankra cost budgets

Monthly cost budgets for the organisation, one project, one cluster, one environment label or one application - the budgets the portal shows under Cost. Each budget carries its month as of the read: spent so far, the projected month end at the current pace, the hour it crosses the budget, and where the month lands once the changes already approved or running have landed. A budget whose scope has no priced cluster reads “unknown”, never zero, and a budget whose scope is only partly priced says how much of it is in the figures. Reading budgets is open to every member. Adding, changing and removing one needs the billing.manage permission.

ankra cost budgets delete

Remove a budget (its card is no longer raised)
Examples
Flags

ankra cost budgets list

List the budgets with their month: spent, projected month end, status and crossing hour
Examples
Flags

ankra cost budgets set

Without a budget id, add a monthly budget for one scope: --scope, --name, --amount and --currency are required, and --notify-at and --owner are optional (the platform notifies at 80% of the budget unless told otherwise). A scope holds at most one budget. With a budget id (‘ankra cost budgets list’ shows them), change that budget. Only the flags you pass are sent; every other field keeps its value. --clear-owner removes the owner. A budget’s scope never changes: delete it and add one on the other scope instead. --amount is the budget per month in the currency’s major unit (1500 or 1500.50). --scope-id names the project (slug, name or id), the cluster (name or id), the application (name or id) or the environment label; an organisation budget takes none.
Examples
Flags

ankra cost cluster

A cluster’s cost estimate: totals, component breakdown, namespace allocation and readiness
Examples
Flags

ankra cost decisions

The decision ledger holds every cost change Ankra proposes - a right-size, a right-size ladder, an off-hours schedule, a waste cleanup - with its plan, where it stands, who decided and what running it did. A proposal is proposed until a person approves or sets it aside; an approved one runs when a person executes it. The cost autopilot only files proposals: it never approves or runs one. A right-size ladder runs one wave at a time: each wave is its own right_size proposal under the ladder, and the next wave runs only once the last one has passed its seven-day verification. Reading is open to every member. Approving, setting aside and running need billing.manage, and running a right-size also needs clusters.write.

ankra cost decisions activity

Everything that happened to a proposal, newest first
Examples
Flags

ankra cost decisions approve

Approve a proposal’s plan. The approval is of one plan: the platform refuses it, and approves nothing, when the proposal was proposed again with another plan in the meantime (the cost autopilot and the web page refresh proposals that nobody has decided yet). Pass --plan-hash with the plan_hash ‘ankra cost decisions get’ showed you to approve exactly the plan you reviewed. Without it the proposal is read first, its plan is shown, and you are asked before anything is approved; --yes approves the plan just shown without asking. Without a terminal to ask on, or with -o json|yaml, approving needs --plan-hash or --yes: a script that never saw the plan does not approve it. Either way the platform refuses the approval, and approves nothing, when the plan changed after it was shown.
Examples
Flags

ankra cost decisions execute

Run an approved proposal as you: the platform dispatches the operation its kind maps to (an off-hours schedule creates the stop and start power schedules, a waste cleanup files the cloud cleanup job, a right-size ladder files and runs its next wave) and records the receipt. The answer is the proposal as the run left it: running with the operation to follow, succeeded, or failed with the receipt saying why (exit 1). A plan that deletes something no snapshot keeps (an unattached volume) runs only with written consent: pass --acknowledge-no-snapshot once you accept that the deletion is final. Without it the platform refuses and nothing is attempted. For a waste cleanup the consent sent names what kind of resource it removes (a volume, a stopped server, an address, a load balancer) where the platform names one, and the prompt shows what you agree to; otherwise it is the general consent to a deletion with no snapshot. --min-unattached-days sets the minimum age of what a waste cleanup deletes (the platform raises anything under 30). Neither is ever sent unless you pass it. A ladder whose latest wave is still running, inside its seven-day verification or tripped by it is not run: the platform says which, and running it again before that changes is refused the same way.
Examples
Flags

ankra cost decisions get

Show one proposal: its plan, decision, outcome, receipt and, for a ladder, its waves
Examples
Flags

ankra cost decisions hold

Hold an approved proposal before it runs. A held proposal is run by nothing, not even execute. It stays held until someone releases it (ankra cost decisions release) or sets it aside. Only an approved proposal can be held; any other status is refused and the proposal stays as it stands.
Examples
Flags

ankra cost decisions list

List the organisation’s cost proposals, newest first. A right-size ladder’s waves sit under the ladder when it is on the same page. --status is applied by the platform (proposed, approved, held, set_aside, running, succeeded, failed, superseded). --kind and --cluster narrow the page the platform returned, by the proposal’s kind and by the cluster its change is measured on; -o json returns that narrowed page. The platform serves the newest 200 by default; --limit asks for up to 500. A running proposal the platform could not check against its operation on this read is marked as such: it may already have finished.
Examples
Flags

ankra cost decisions release

Return a held proposal to approved, where it waits for someone to run it (ankra cost decisions execute). Only a held proposal can be released; any other status is refused and the proposal stays as it stands.
Examples
Flags

ankra cost decisions set-aside

Decline a proposal, with your reason (an approved or held one is withdrawn before it runs)
Examples
Flags

ankra cost estimate

Price what the cluster runs today, its node groups and load balancers, from the same price book or rate card the metering bills from. With --draft-file, price a draft beside it and predict the monthly bill as the metered run rate plus the difference. The draft is a JSON object: node_groups (the full set the cluster would run, each with count, vcpus, memory_gb, disk_gb and optionally name, spot, gpus, gpu_model), and optionally network (load_balancers, nat_gateways, gateways, flexible_ips), provider (price it on another provider) and match (cheapest or like_for_like). ’-’ reads the draft from stdin. Nothing is stored. -o json carries every priced line.
Examples
Flags

ankra cost events

Read the events that moved the organisation’s cost run rate, newest first: application releases, node-count changes, scheduled and manual stops and starts, executed cost decisions, clusters entering or leaving pricing, and resolved cloud waste. A cluster’s run rate is metered hourly, so an event’s move is how the cluster’s run rate changed between the priced hour before it and the first priced hour at least 30 minutes after it. When the event was alone in that window the move is its own. When several events share the window (a release and the scale-up it caused) the move is theirs together and each row says “shared” rather than claim a split. A start alone in a window whose run rate fell, or a stop alone in one whose run rate rose, did not make that move: something else did, so its own move is unknown and the row says which way the run rate went. The same holds for a node-count change whose nodes were only added across a falling run rate, or only removed across a rising one. When nodes of one type replaced another’s, the move can go either way and is the nodes’ own; the note names what changed. When the platform did not record every node’s type, spot or on-demand count for both hours, a node-count change against its count reads “unknown (node types not recorded)” with the way the run rate went. With no priced hour on one side the move is unknown, never zero. A coverage event’s move is coverage, not spend; a resolved finding’s is its own monthly cost. The platform’s note on an event sits under its row. When the cluster was not priced for some hours inside an event’s window (a start after a stop it was not metered through, or a metering hour that was missed), the move cannot be told apart from the cluster leaving or entering pricing. The row says “unknown (not priced for part of the window)”, never zero. A kind of event the platform could not read is named above the table: its events are missing, not quiet. The platform serves at most the newest 500. --days sets the window (at most 34; 30 when omitted). Pass -o json (or yaml) for the full document.
Examples
Flags

ankra cost ledger

Read the organisation’s cost ledger - every cost decision that was approved, is running or has run, with the monthly saving it was expected to bring and the saving that was measured. Seven days after a change runs, Ankra compares the cluster’s run rate before the change with its run rate at day seven, both read from the cluster’s hourly cost snapshots, and records the difference as the measured saving. A negative measured figure is a measurement too: the run rate rose. A saving that could not be measured stays unknown, never zero, and the row says why: the cluster was not priced the same way on both sides of the change (coverage moved), or there was no snapshot to read. A change undone inside its window reads reverted. A right-size also carries its usage verification (in progress, passed, failed with a rollback proposed, or unverified when metrics were missing), shown under its row. An approval lasts seven days. A change approved longer ago that never started reads “approval lapsed”: it will not run until it is approved again. A rollback approved that long ago reads “approved · may have lapsed”, because its approval stands only if it is confirmed to undo its right-size, which ‘ankra cost decisions get’ tells. The header totals cover the whole ledger even when the row list stops at the newest changes: the savings measured this calendar month (UTC), everything measured so far, and the expected saving of the changes still approved, running or verifying, which counts as saved only once it is measured. A lapsed approval, or one that may have lapsed, is not in that total. Every figure is a monthly run rate in the organisation’s display currency.
Examples
Flags

ankra cost namespaces

Read how a cluster’s cost was allocated to each of its namespaces over time, from the hourly metering (the platform keeps 35 days). --days sets the window (1-35; 30 when omitted) and --granularity the bucket: day (the default) or hour (at most 7 days; 7 when --days is omitted). The metering runs once an hour. A bucket none of whose hours were metered is unknown for every namespace, drawn ’·’ and never counted as zero; a namespace missing from a metered bucket was allocated nothing there, drawn ’_’. The header says how many buckets were metered. TOTAL sums the metered hours, LATEST is the current (partial) bucket and PEAK the highest bucket. The trend is drawn per namespace, scaled to its own peak, for windows of at most 48 buckets. Nothing is extrapolated: these are list-price estimates, not the bill. The costliest 25 namespaces are listed. Pass -o json (or yaml) for every namespace and every bucket.
Examples
Flags

ankra cost object

Read what one object costs now and over the last 30 days, from the same hourly snapshots the fleet summary reads, so the object’s figure and the fleet’s agree. A cluster and a credential cost their clusters’ run rate, idle capacity included. A namespace, a stack and an application cost their namespaces’ allocations; idle capacity belongs to the cluster, so their idle share is unknown. Open cloud waste is found per cloud resource, so only a cluster and a credential carry it. Every figure the platform cannot give prints as unknown, never as zero. An object with no priced cluster behind it says why. When coverage is incomplete the monthly figure is a floor (“at least”), and the clusters that contributed nothing, or could not price a node or billed resource, are named. The trend is daily spend, what the object cost each UTC day, not the monthly run rate. It draws one mark per day, scaled to the object’s own peak whole day: ’·’ is a day no cluster was metered (unknown), ’_’ a metered day that cost nothing, ’…’ today, which is still metering, and ’≥’ a day short of metered hours, whose figure is only a floor. Today’s figure prints on its own line with the hours it covers so far; it is never the latest figure compared with whole days. Each day short of metered hours prints on its own line with the hours it is missing and its floor (“at least”). An hour no metering pass ran for is filled in by a later pass at its own rate: it is in the figure, so it counts as metered, but it was estimated, not measured. A day with such hours says how its hours divide (“22 measured, 2 estimated”); behind several clusters each count is one cluster’s worst, so it is said per cluster. A platform that does not report the split says nothing about it, which is not “all measured”. An application also prints its cost by environment when the platform serves it: each environment’s monthly rate and the rows it is made of (workloads, database instances, storage, backups). A rate that is partial or unknown says why. A row that is part of the rate but has no amount of its own is “not known”: its amount is in the part on no row, which gets its own line. Backups are “not priced”: they are shown beside the rate and not added to it. Rows, environments and spend the platform cut short each say so. Pass -o json (or yaml) for the projection exactly as the platform serves it.

ankra cost object application

Read what one object costs now and over the last 30 days, from the same hourly snapshots the fleet summary reads, so the object’s figure and the fleet’s agree. A cluster and a credential cost their clusters’ run rate, idle capacity included. A namespace, a stack and an application cost their namespaces’ allocations; idle capacity belongs to the cluster, so their idle share is unknown. Open cloud waste is found per cloud resource, so only a cluster and a credential carry it. Every figure the platform cannot give prints as unknown, never as zero. An object with no priced cluster behind it says why. When coverage is incomplete the monthly figure is a floor (“at least”), and the clusters that contributed nothing, or could not price a node or billed resource, are named. The trend is daily spend, what the object cost each UTC day, not the monthly run rate. It draws one mark per day, scaled to the object’s own peak whole day: ’·’ is a day no cluster was metered (unknown), ’_’ a metered day that cost nothing, ’…’ today, which is still metering, and ’≥’ a day short of metered hours, whose figure is only a floor. Today’s figure prints on its own line with the hours it covers so far; it is never the latest figure compared with whole days. Each day short of metered hours prints on its own line with the hours it is missing and its floor (“at least”). An hour no metering pass ran for is filled in by a later pass at its own rate: it is in the figure, so it counts as metered, but it was estimated, not measured. A day with such hours says how its hours divide (“22 measured, 2 estimated”); behind several clusters each count is one cluster’s worst, so it is said per cluster. A platform that does not report the split says nothing about it, which is not “all measured”. An application also prints its cost by environment when the platform serves it: each environment’s monthly rate and the rows it is made of (workloads, database instances, storage, backups). A rate that is partial or unknown says why. A row that is part of the rate but has no amount of its own is “not known”: its amount is in the part on no row, which gets its own line. Backups are “not priced”: they are shown beside the rate and not added to it. Rows, environments and spend the platform cut short each say so. Pass -o json (or yaml) for the projection exactly as the platform serves it.
Examples
Flags

ankra cost object cluster

Read what one object costs now and over the last 30 days, from the same hourly snapshots the fleet summary reads, so the object’s figure and the fleet’s agree. A cluster and a credential cost their clusters’ run rate, idle capacity included. A namespace, a stack and an application cost their namespaces’ allocations; idle capacity belongs to the cluster, so their idle share is unknown. Open cloud waste is found per cloud resource, so only a cluster and a credential carry it. Every figure the platform cannot give prints as unknown, never as zero. An object with no priced cluster behind it says why. When coverage is incomplete the monthly figure is a floor (“at least”), and the clusters that contributed nothing, or could not price a node or billed resource, are named. The trend is daily spend, what the object cost each UTC day, not the monthly run rate. It draws one mark per day, scaled to the object’s own peak whole day: ’·’ is a day no cluster was metered (unknown), ’_’ a metered day that cost nothing, ’…’ today, which is still metering, and ’≥’ a day short of metered hours, whose figure is only a floor. Today’s figure prints on its own line with the hours it covers so far; it is never the latest figure compared with whole days. Each day short of metered hours prints on its own line with the hours it is missing and its floor (“at least”). An hour no metering pass ran for is filled in by a later pass at its own rate: it is in the figure, so it counts as metered, but it was estimated, not measured. A day with such hours says how its hours divide (“22 measured, 2 estimated”); behind several clusters each count is one cluster’s worst, so it is said per cluster. A platform that does not report the split says nothing about it, which is not “all measured”. An application also prints its cost by environment when the platform serves it: each environment’s monthly rate and the rows it is made of (workloads, database instances, storage, backups). A rate that is partial or unknown says why. A row that is part of the rate but has no amount of its own is “not known”: its amount is in the part on no row, which gets its own line. Backups are “not priced”: they are shown beside the rate and not added to it. Rows, environments and spend the platform cut short each say so. Pass -o json (or yaml) for the projection exactly as the platform serves it.
Examples
Flags

ankra cost object credential

Read what one object costs now and over the last 30 days, from the same hourly snapshots the fleet summary reads, so the object’s figure and the fleet’s agree. A cluster and a credential cost their clusters’ run rate, idle capacity included. A namespace, a stack and an application cost their namespaces’ allocations; idle capacity belongs to the cluster, so their idle share is unknown. Open cloud waste is found per cloud resource, so only a cluster and a credential carry it. Every figure the platform cannot give prints as unknown, never as zero. An object with no priced cluster behind it says why. When coverage is incomplete the monthly figure is a floor (“at least”), and the clusters that contributed nothing, or could not price a node or billed resource, are named. The trend is daily spend, what the object cost each UTC day, not the monthly run rate. It draws one mark per day, scaled to the object’s own peak whole day: ’·’ is a day no cluster was metered (unknown), ’_’ a metered day that cost nothing, ’…’ today, which is still metering, and ’≥’ a day short of metered hours, whose figure is only a floor. Today’s figure prints on its own line with the hours it covers so far; it is never the latest figure compared with whole days. Each day short of metered hours prints on its own line with the hours it is missing and its floor (“at least”). An hour no metering pass ran for is filled in by a later pass at its own rate: it is in the figure, so it counts as metered, but it was estimated, not measured. A day with such hours says how its hours divide (“22 measured, 2 estimated”); behind several clusters each count is one cluster’s worst, so it is said per cluster. A platform that does not report the split says nothing about it, which is not “all measured”. An application also prints its cost by environment when the platform serves it: each environment’s monthly rate and the rows it is made of (workloads, database instances, storage, backups). A rate that is partial or unknown says why. A row that is part of the rate but has no amount of its own is “not known”: its amount is in the part on no row, which gets its own line. Backups are “not priced”: they are shown beside the rate and not added to it. Rows, environments and spend the platform cut short each say so. Pass -o json (or yaml) for the projection exactly as the platform serves it.
Examples
Flags

ankra cost object namespace

Read what one object costs now and over the last 30 days, from the same hourly snapshots the fleet summary reads, so the object’s figure and the fleet’s agree. A cluster and a credential cost their clusters’ run rate, idle capacity included. A namespace, a stack and an application cost their namespaces’ allocations; idle capacity belongs to the cluster, so their idle share is unknown. Open cloud waste is found per cloud resource, so only a cluster and a credential carry it. Every figure the platform cannot give prints as unknown, never as zero. An object with no priced cluster behind it says why. When coverage is incomplete the monthly figure is a floor (“at least”), and the clusters that contributed nothing, or could not price a node or billed resource, are named. The trend is daily spend, what the object cost each UTC day, not the monthly run rate. It draws one mark per day, scaled to the object’s own peak whole day: ’·’ is a day no cluster was metered (unknown), ’_’ a metered day that cost nothing, ’…’ today, which is still metering, and ’≥’ a day short of metered hours, whose figure is only a floor. Today’s figure prints on its own line with the hours it covers so far; it is never the latest figure compared with whole days. Each day short of metered hours prints on its own line with the hours it is missing and its floor (“at least”). An hour no metering pass ran for is filled in by a later pass at its own rate: it is in the figure, so it counts as metered, but it was estimated, not measured. A day with such hours says how its hours divide (“22 measured, 2 estimated”); behind several clusters each count is one cluster’s worst, so it is said per cluster. A platform that does not report the split says nothing about it, which is not “all measured”. An application also prints its cost by environment when the platform serves it: each environment’s monthly rate and the rows it is made of (workloads, database instances, storage, backups). A rate that is partial or unknown says why. A row that is part of the rate but has no amount of its own is “not known”: its amount is in the part on no row, which gets its own line. Backups are “not priced”: they are shown beside the rate and not added to it. Rows, environments and spend the platform cut short each say so. Pass -o json (or yaml) for the projection exactly as the platform serves it.
Examples
Flags

ankra cost object project

Read what one object costs now and over the last 30 days, from the same hourly snapshots the fleet summary reads, so the object’s figure and the fleet’s agree. A cluster and a credential cost their clusters’ run rate, idle capacity included. A namespace, a stack and an application cost their namespaces’ allocations; idle capacity belongs to the cluster, so their idle share is unknown. Open cloud waste is found per cloud resource, so only a cluster and a credential carry it. Every figure the platform cannot give prints as unknown, never as zero. An object with no priced cluster behind it says why. When coverage is incomplete the monthly figure is a floor (“at least”), and the clusters that contributed nothing, or could not price a node or billed resource, are named. The trend is daily spend, what the object cost each UTC day, not the monthly run rate. It draws one mark per day, scaled to the object’s own peak whole day: ’·’ is a day no cluster was metered (unknown), ’_’ a metered day that cost nothing, ’…’ today, which is still metering, and ’≥’ a day short of metered hours, whose figure is only a floor. Today’s figure prints on its own line with the hours it covers so far; it is never the latest figure compared with whole days. Each day short of metered hours prints on its own line with the hours it is missing and its floor (“at least”). An hour no metering pass ran for is filled in by a later pass at its own rate: it is in the figure, so it counts as metered, but it was estimated, not measured. A day with such hours says how its hours divide (“22 measured, 2 estimated”); behind several clusters each count is one cluster’s worst, so it is said per cluster. A platform that does not report the split says nothing about it, which is not “all measured”. An application also prints its cost by environment when the platform serves it: each environment’s monthly rate and the rows it is made of (workloads, database instances, storage, backups). A rate that is partial or unknown says why. A row that is part of the rate but has no amount of its own is “not known”: its amount is in the part on no row, which gets its own line. Backups are “not priced”: they are shown beside the rate and not added to it. Rows, environments and spend the platform cut short each say so. Pass -o json (or yaml) for the projection exactly as the platform serves it.
Examples
Flags

ankra cost object stack

Read what one object costs now and over the last 30 days, from the same hourly snapshots the fleet summary reads, so the object’s figure and the fleet’s agree. A cluster and a credential cost their clusters’ run rate, idle capacity included. A namespace, a stack and an application cost their namespaces’ allocations; idle capacity belongs to the cluster, so their idle share is unknown. Open cloud waste is found per cloud resource, so only a cluster and a credential carry it. Every figure the platform cannot give prints as unknown, never as zero. An object with no priced cluster behind it says why. When coverage is incomplete the monthly figure is a floor (“at least”), and the clusters that contributed nothing, or could not price a node or billed resource, are named. The trend is daily spend, what the object cost each UTC day, not the monthly run rate. It draws one mark per day, scaled to the object’s own peak whole day: ’·’ is a day no cluster was metered (unknown), ’_’ a metered day that cost nothing, ’…’ today, which is still metering, and ’≥’ a day short of metered hours, whose figure is only a floor. Today’s figure prints on its own line with the hours it covers so far; it is never the latest figure compared with whole days. Each day short of metered hours prints on its own line with the hours it is missing and its floor (“at least”). An hour no metering pass ran for is filled in by a later pass at its own rate: it is in the figure, so it counts as metered, but it was estimated, not measured. A day with such hours says how its hours divide (“22 measured, 2 estimated”); behind several clusters each count is one cluster’s worst, so it is said per cluster. A platform that does not report the split says nothing about it, which is not “all measured”. An application also prints its cost by environment when the platform serves it: each environment’s monthly rate and the rows it is made of (workloads, database instances, storage, backups). A rate that is partial or unknown says why. A row that is part of the rate but has no amount of its own is “not known”: its amount is in the part on no row, which gets its own line. Backups are “not priced”: they are shown beside the rate and not added to it. Rows, environments and spend the platform cut short each say so. Pass -o json (or yaml) for the projection exactly as the platform serves it.
Examples
Flags

ankra cost rate-cards

Private capacity (Proxmox, Morpheus, imported clusters on your own hardware) has no price book, so Ankra prices it from a rate card: a monthly amount per vCPU, per GB of memory and per GB of storage. A card is stated for one private credential, or as the organisation’s fallback card; a credential without either falls back to the provider default, and is unpriced when the provider ships none.

ankra cost rate-cards delete

Clear a stated card, so its capacity falls back to the provider default, or becomes unpriced when the provider ships none. Needs billing.manage. It asks first; --yes skips the question and is required when there is no terminal to ask on.
Examples
Flags

ankra cost rate-cards list

List the private credentials with the rates that price them
Examples
Flags

ankra cost rate-cards set

State a rate card for one private credential (name or id), or for the organisation’s fallback card with ‘organisation’. Amounts are decimal, per month, in --currency, and all three are required: the platform replaces the whole card, so a rate left out would be stored as 0 (pass 0 to price that capacity as free). Needs billing.manage. A token pinned to a project writes the cards of its own project’s credentials only. It asks first; --yes skips the question and is required when there is no terminal to ask on.
Examples
Flags

ankra cost reconcile

Set what each cloud credential’s provider billed for a month against what Ankra’s metering estimated for the same clusters. The provider’s figures are imported from its billing API (OVHcloud and UpCloud today) and stay in the provider’s own currency; the estimate is converted into it at the rate shown. Each billed line is placed on a cluster where the organisation’s own records say which (a label Ankra set, a server it provisioned, a node’s provider id, a volume’s handle). Tax and credits are reported apart, since the estimate carries neither. Nothing unknown reads as agreement. A credential no billing document was imported for is unknown, not zero; a failed import says why. A difference is stated only when the provider’s figures are final, and then only over the clusters the metering covered for the hours they existed that month (a missed hour or so is allowed), never as the accuracy of the whole invoice: the Difference covers column says how many of the invoice’s clusters that is, the share of the billed amount they hold, and the share of all the named clusters’ hours that was metered for them. When no cluster qualifies, or the share is too small, no difference is stated and the reason is shown. Billed lines no cluster could be placed on are counted with their amount. --month reads a UTC calendar month as YYYY-MM (the last closed month when omitted; the running month is month to date on both sides). Pass -o json (or yaml) for the full document, including every cluster and unplaced line.
Examples
Flags

ankra cost savings

Read the organisation’s savings model - the same recommendations the portal shows under Cost. The model analyses the biggest priced clusters (up to the organisation’s analysed-cluster limit, see ‘ankra cost settings’, and within the platform’s analysis time budget) and proposes the levers that apply to each: right-size idle capacity, reduce run rate no namespace claims, or an off-hours schedule (weeknights and weekends) for a known non-production cluster with no enabled power schedule. A cluster can carry several. The total counts each cluster once, at its best lever, so it is smaller than the sum of the rows when a cluster has more than one. Each row’s Basis says what its saving rests on: measured (observed usage planned a right-size step), billed (an off-hours stop on billed compute) or estimate (capacity less requests, with no usage measured). The total counts only measured and billed levers; what the estimates add is shown beside it and never counted. Clusters the model could not analyse are listed rather than treated as having nothing to save: unpriced (never had a cost snapshot), stale (metering stopped over a day ago), unreadable on this pass, and offline (the agent has not checked in, so nothing is recommended for them). The waste summary counts the open cloud-waste findings. Every figure is a list-price estimate in the organisation’s display currency.
Examples
Flags

ankra cost settings

Pricing settings: display currency, effective discount, the network egress estimate and the analysed-cluster limit

ankra cost settings get

Show the organisation’s pricing settings
Flags

ankra cost settings set

Change one or more pricing settings. Only the flags you pass change; the other settings keep their current values. The route is organisation-admin only and every fleet and cluster figure re-prices on the next read. --include-egress is stored, not metered yet: no figure includes network egress today, whichever way it is set. --analysed-cluster-limit sets how many of the costliest priced clusters the savings model analyses (1 to 50); --analysed-cluster-limit default returns it to the platform default of 8. Without the flag the limit is not sent, so it keeps its stored value.
Examples
Flags

ankra cost summary

Fleet cost rollup: projected month end, month to date, run rate, by provider, by project and costliest clusters
Examples
Flags

ankra cost trend

Read the organisation’s cloud cost run rate per UTC day over every priced cluster - the line the portal draws under Cost. A cost snapshot exists only for an hour a cluster was priced, so a cluster missing from a day was not priced that day: it did not cost nothing. Each day says how many clusters it covers, and a day with no priced cluster is “not priced”, never zero. A day where some priced clusters were only partly priced (a node or billed resource with no price) is a floor. When the set of priced clusters changes - a cluster is created, deleted, stopped or loses its pricing - the line moves without anything being spent. Those days are listed apart, with the clusters that entered and left and what that moved the line by: a coverage move, not a spend move. The last day is the current run rate, the same figure ‘ankra cost summary’ shows. --days sets the window (the platform keeps 35 days of snapshots and serves at most 34; 30 when omitted). Pass -o json (or yaml) for the full document.
Examples
Flags

ankra cost waste

Cloud waste is what the scan finds billing with nothing using it: a stopped server, an unattached volume, an unassigned IP, an idle load balancer. ‘ankra cost savings’ lists the open findings with their ids. What a cleanup does is decided by the kind of waste, never by the caller: a stopped server gets a snapshot kept for seven days before it is deleted; an unassigned IP or an idle load balancer is released. What cannot be recovered, such as an unattached volume, is deleted only with written consent (--consent) and only once it has been unattached long enough.

ankra cost waste resolve

Start the cleanup of one open cloud-waste finding and print the operation that does it. Needs billing.manage. It asks first; --yes skips the question and is required when there is no terminal to ask on.
Examples
Flags

ankra cost waste resolve-batch

Start the cleanup of up to 100 findings at once, one operation per finding, and print each finding’s outcome: started, refused with the platform’s reason, or failed. --consent and --min-unattached-days apply to every finding that needs them, but a consent covers only its own kind of finding, and the generic no_snapshot_acknowledged is refused once the batch mixes kinds that need consent: split such a batch by kind. When no cleanup started, each finding’s outcome is still printed and the command exits 1. It asks first; --yes skips the question and is required when there is no terminal to ask on.
Examples
Flags

ankra cost waste resolved

Total the monthly cost of the findings Ankra’s cleanup resolved in the last --days days (30 by default, at most 90), by kind, in your display currency. Only findings the cleanup resolved count; unpriced findings are counted and never summed as zero.
Examples
Flags