Web UI ではあまり情報が見られないようです。
「Health」→「Server & VM Statistics」画面のあたりで表示できますが、
あまり情報はありません。
ちなみに VM の場合、右クリック →「Line Graph」にて・・・
Processor Utilization(%) だけ表示されます。
そこで ovmcli で見てみました。
まず、Stats の収集設定を見ておきます。
[gowatana@vm01 ~]$ ovmcli
OVM>
OVM> getStatsConfig
Command: getStatsConfig
Status: Success
Time: 2017-12-14 08:03:26,183 JST
Data:
statisticsEnabled = Yes
samplingInterval (seconds) = 20
holdTime (minutes) = 60
fileSystemSamplingInterval (seconds) = 600
OVM>
getStatList で、Stats を取得できます。
OVM> getStatList ?
*objType
*objId
*statType
*startTime
endTime
HelpText: 1. The Server object does not support the CPU_COUNT statistic. 2. FREE_MEMORY, MEMORY_UTILIZATION statistics are supported for Server associated objects only. 3. FILE_SYSTEM_SPACE_AVAILABLE, FILE_SYSTEM_SPACE_UTILIZATION, FILE_SYSTEM_SPACE_TOTAL, FILE_SYSTEM_TOTAL_FILES_SIZE are supported for File System object only.
OVM>
今回は vm05.2 という VM を対象にします。
OVM> list Vm
Command: list Vm
Status: Success
Time: 2017-12-14 08:24:16,842 JST
Data:
id:0004fb00000600008a5832ca0a2a7013 name:vm05.2
id:0004fb0000060000b106d43e31a7353b name:vm04
id:0004fb0000060000006a18503596a2e5 name:ol74-template
id:0004fb000006000037284252d936fed4 name:vm02
id:0004fb0000060000f6c87792c51f8539 name:vm05.1
id:0004fb0000060000b31d83221307cd72 name:vm05.3
id:0004fb0000060000982fee0b3c47b9e6 name:vm03
id:0004fb0000060000728f30925de41d17 name:vm01
OVM>
下記のようなカウンタがあるようです。
OVM> getStatList objType=Vm objId=0004fb00000600008a5832ca0a2a7013 statType=?
CPU_UTILIZATION,CPU_COUNT,MEMORY_USED,FREE_MEMORY,MEMORY_UTILIZATION,FILE_SYSTEM_SPACE_AVAILABLE,FILE_SYSTEM_SPACE_UTILIZATION,FILE_SYSTEM_SPACE_TOTAL,FILE_SYSTEM_TOTAL_FILES_SIZE
OVM>
いくつか見てみます。
startTime での時間指定は、"MM-dd-yyyy HH:mm:ss" です。
CPU_UTILIZATION
ちなみにここでの Value:0.22 は 20% です。
OVM> getStatList objType=Vm objId=0004fb00000600008a5832ca0a2a7013 statType=CPU_UTILIZATION startTime="12-14-2017 08:20:00"
Command: getStatList objType=Vm objId=0004fb00000600008a5832ca0a2a7013 statType=CPU_UTILIZATION startTime="12-14-2017 08:20:00"
Status: Success
Time: 2017-12-14 08:24:42,303 JST
Data:
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:24:30 Value:0.2224014699459076
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:24:09 Value:0.20563675463199615
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:23:49 Value:0.19086532294750214
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:23:28 Value:0.21533919870853424
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:23:08 Value:0.21806925535202026
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:22:47 Value:0.18102243542671204
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:22:27 Value:0.21205773949623108
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:22:06 Value:0.2137099653482437
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:21:46 Value:0.2231874018907547
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:21:25 Value:0.2224458009004593
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:21:05 Value:0.23813675343990326
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:20:44 Value:0.22001764178276062
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:20:24 Value:0.18940427899360657
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:20:04 Value:0.19554103910923004
OVM>
MEMORY_USED
OVM> getStatList objType=Vm objId=0004fb00000600008a5832ca0a2a7013 statType=MEMORY_USED startTime="12-14-2017 08:20:00"
Command: getStatList objType=Vm objId=0004fb00000600008a5832ca0a2a7013 statType=MEMORY_USED startTime="12-14-2017 08:20:00"
Status: Success
Time: 2017-12-14 08:24:50,449 JST
Data:
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:24:30 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:24:09 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:23:49 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:23:28 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:23:08 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:22:47 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:22:27 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:22:06 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:21:46 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:21:25 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:21:05 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:20:44 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:20:24 Value:515
Object:0004fb00000600008a5832ca0a2a7013 [vm05.2] Time:12-14-2017 08:20:04 Value:515
OVM>
objectType ごとに、取得できる StatType が異なります。
対応していないものは、下記のようになります。
OVM> getStatList objType=Vm objId=0004fb00000600008a5832ca0a2a7013 statType=FILE_SYSTEM_SPACE_AVAILABLE startTime="12-14-2017 08:20:00"
Command: getStatList objType=Vm objId=0004fb00000600008a5832ca0a2a7013 statType=FILE_SYSTEM_SPACE_AVAILABLE startTime="12-14-2017 08:20:00"
Status: Failure
Time: 2017-12-14 08:34:39,878 JST
Error Msg: FILE_SYSTEM_SPACE_AVAILABLE, FILE_SYSTEM_SPACE_UTILIZATION, FILE_SYSTEM_SPACE_TOTAL, FILE_SYSTEM_TOTAL_FILES_SIZE are supported for File System object only.
OVM>
たいした情報は取得できなそうなので、OVMM の収集情報よりも、SNMP や、
ハイパーバイザやゲスト OS から直接取得したほうがよいかもしれません。
Oracle VMリリース3.4の管理者ガイド
第 5 章 SNMPを使用したOracle VM Serverの監視
https://docs.oracle.com/cd/E90714_01/e88293/vmadm-config-snmp.html
以上、OVM 3 の Stats 取得の話でした。
0 件のコメント:
コメントを投稿