1 | initial version |
I resolved.
This command "Get-VM {instance_name} | Enable-VMResourceMetering" or "Enable-VMResourceMetering *"
After I get metering data.
PS C:\Users\administrator.JYH> Get-VM instance-0000000f | Measure-VM
VMName AvgCPU(MHz) AvgRAM(M) MaxRAM(M) MinRAM(M) TotalDisk(M) NetworkInbound(M) NetworkOutbound(M) ------ ----------- --------- --------- --------- ------------ ----------------- ------------------ instance-0000000f 41809 0 0
PS C:\Users\administrator.JYH> Get-VM instance-0000000f | Enable-VMResourceMetering
PS C:\Users\administrator.JYH> Get-VM instance-0000000f | Measure-VM
VMName AvgCPU(MHz) AvgRAM(M) MaxRAM(M) MinRAM(M) TotalDisk(M) NetworkInbound(M) NetworkOutbound(M) ------ ----------- --------- --------- --------- ------------ ----------------- ------------------ instance-0000000f 5 1024 1024 1024 41809 73 4
root@controller:~# ceilometer sample-list -q "resource_id=instance-0000000f-41738d67-6ed0-444f-9253-6336a889992b-ce1c6766-87d2-41fc-9e0d-03f679ddfbce"
| 151cbe4f-504c-11e5-bd2e-001d92b59ee5 | instance-0000000f-41738d67-6ed0-444f-9253-6336a889992b-ce1c6766-87d2-41fc-9e0d-03f679ddfbce | network.outgoing.bytes | cumulative | 112197632.0 | B | 2015-09-01T01:52:20 |
| 143ee170-504c-11e5-9663-001d92b59ee5 | instance-0000000f-41738d67-6ed0-444f-9253-6336a889992b-ce1c6766-87d2-41fc-9e0d-03f679ddfbce | network.outgoing.bytes.rate | gauge | 370289.214521 | B/s | 2015-09-01T01:52:19 |
| 143a2680-504c-11e5-8b8c-001d92b59ee5 | instance-0000000f-41738d67-6ed0-444f-9253-6336a889992b-ce1c6766-87d2-41fc-9e0d-03f679ddfbce | network.incoming.bytes | cumulative | 7550795776.0 | B | 20