Accounting Client 3.0
The accounting toolset visualizes and reports resource usage data, and allows their integration with chargeback and billing platforms. The toolset generates accounting reports using the information from the accounting OpenNebula Database.
These accounting tools address the accounting of the virtual resources, it includes resource consumption of the virtual machines as reported from the hypervisor.
This addon requires the following gems:
Download the addon, untar and execute 'install.sh' as the oneadmin user.
No configuration is needed for this addon.
Accounting information for Virtual Machines can be obtained for a given user or all of them.
oneacct
- prints accounting information for virtual machines
<xterm>Usage: oneacct [options]
</xterm>
The time is written as month/day/year hour:minute:second
.
To integrate this tool with your billing system you can use -j
or -x
flags to get all the information in an easy computer readable format.
Obtaining the accounting information for a given VM
<xterm> # User 0
VMID MEMORY CPU NETRX NETTX TIME
4 64M 50.1 556K 12.1K 01/09 04:56:44
# User 2
VMID MEMORY CPU NETRX NETTX TIME
6 64M 50.1 156K 7M 01/01 01:16:24 7 64M 50.1 803K 6.5M 01/08 04:50:09
</xterm>
The columns are:
Obtaining the accounting information for a given user
<xterm> $ oneacct -u 0 # User 0
VMID MEMORY CPU NETRX NETTX TIME
4 64M 50.1 556K 12.1K 01/09 04:56:44
</xterm>