costsays what the machine costs per hour.usagesays where Varne reads container usage from. Today that is Beszel, and the part is built so that other backends can follow.
What you need
- A running Beszel hub with an agent on each machine you want to cover. Beszel monitors the machine and its Docker containers.
- A Beszel user: the email and password Varne uses to read the hub.
Add the source
- Own hardware
- Rented machine
How the machine cost is built
Varne adds up lines, each worth some USD per hour.
For the example above, the hardware costs 1200 ÷ (6 × 8760) = $0.0228 per hour, and 40 W at $0.2 per kWh adds $0.008 per hour. Together that is about $0.031 per hour, or about $22.50 per month.
Costs are in USD.
How the cost is split
Varne works hour by hour, on the hours that have passed.- For every container, Varne asks how much of the machine it used in that hour: its CPU, and its memory.
- A container’s share of the hour is half its CPU use as a part of the machine’s CPU, plus half its memory use as a part of the machine’s memory. If several machines are monitored, their capacities are added up.
- The container is charged that share of the hour’s cost.
- What no container used is charged to Idle. The charges of an hour always add up to the cost of the machine.
What you see
- On the Dashboard, a chart of cost per application per day, with Idle as its own series.
- On the Self-hosted page, the cost of each application and the return on your machine. See Self-hosted costs.
Things to know
- The split is an estimate based on what Beszel reports. It treats a container’s CPU as a part of the whole machine.
- Containers that belong to the same application, such as a database next to a web app, appear as separate containers. Varne cannot see which containers form a stack, and groups them only when their image names point to the same application.
- The more of the lookback period Beszel has data for, the better the split. A hub that was down leaves gaps, which count as Idle.