VNF のモニタリング
VNF は展開後、正常性とワークロードを確認するために定期的にモニタされます。モニタリングは、展開データモデルの KPI セクション内のメトリックの定義に基づいています。KPI セクションで説明されているように、メトリックタイプによって、モニタする変数だけでなく、実行するコレクタアクションも決まります。ESC では、モニタ対象のメトリックと、条件を満たしたときに実行する必要があるアクションを定義できます。それらのメトリックとアクションは、展開データモデルで定義されます。VNF をモニタするために、複数のモニタリング方法が使用されます。次の内容をモニタできます。
-
VM の稼働状態
-
ディスク使用率、メモリ、CPU、ネットワークスループットの VM 変数
-
VM モニタリング インターフェイスの ICMP メッセージ
モニタリングの前提条件
ESC で VM をモニタするには、次の前提条件を満たしている必要があります。
-
正常に展開された VM のモニタリングが有効になっている。展開された VM は稼働している必要があります。
-
KPI は、モニタリングパラメータを使用してデータモデル内で設定されている必要がある。
モニタリングおよびアクション実行エンジン
モニタリングは、展開データモデルの KPI セクション内のメトリックの定義に基づいています。KPI セクションで説明されているように、メトリックタイプによって、モニタする変数だけでなく、実行するコレクタアクションも決まります。モニタリングエンジンは、メトリックとアクションで構成されます。-
メトリック
-
アクション
メトリックとアクション <metadata> セクションでは、エンジンのプログラム可能な側面を制御するプロパティまたはエントリについて記述します。
メトリックセクション
メトリックセクションは次のとおりです。
<metrics>
<metric>
<name>{metric name}name>
<type>{metric type}type>
<metaData>
<type>{monitoring engine action type}</type>
<properties>
<property>
<name></name>
<value></value>
</property>
: : : : : : :
<properties/>
</metaData>
</metric or action>
: : : : : : : :
<metrics>
タグ名 |
説明 |
値 |
---|---|---|
名前 |
ユーザ定義のメトリック名。メトリック名は一意である必要があります。 |
|
タイプ |
ダイナミックマッピングがサポートされるタイプ。 |
MONITOR_SUCCESS_FAILURE MONITOR_THRESHOLD MONITOR_COMPUTE_THRESHOLD |
メトリック メタデータ セクション
メタデータセクションの目的は、モニタリングソリューションに固有の情報を提供することです。
タグ名 |
説明 |
値 |
---|---|---|
タイプ |
アクションタイプ、値は、MONA でサポートされるアクションと 1 対 1 でマッピングされます。 |
custom_script custom_script_threshold snmp_get_threshold |
プロパティ |
選択したアクションに渡されるプロパティ(名前/値)のリストのコンテナ。プロパティは、予期されるモニタリングおよびアクション属性のリストによって定義されます。 |
プロパティは、選択したアクションタイプに基づきます。 |
アクションセクション
アクションセクションは次のとおりです。
<actions>
<action>
<name>{action name}name>
<type>{action type}type>
<metaData>
<type>{monitoring engine action type}</type>
<properties>
<property>
<name></name>
<value></value>
</property>
: : : : : : :
<properties/>
</metaData>
</action>
: : : : : : : :
<actions>
タグ名 |
説明 |
値 |
---|---|---|
名前 |
ユーザ定義のアクション名。アクション名は一意である必要があります。 |
主な要件の 1 つは、選択された名前の先頭に TRUE または FALSE を付けて、MONITOR_SUCCESS_FAILURE のためだけに、ESC データモデルルールと動的アクション間のマッピングを許可することです。 |
タイプ |
サポート対象タイプ。 |
ESC _POST_EVENT スクリプト CUSTOM_SCRIPT |
アクション メタデータ セクション
メタデータセクションの目的は、モニタリングソリューションに固有の情報を提供することです。
タグ名 |
説明 |
値 |
---|---|---|
タイプ |
アクションタイプ、値は、モニタリングおよびアクションエンジンでサポートされるアクションと 1 対 1 でマッピングされます。 |
icmp_ping icmp4_ping icmp6_ping esc_post_event スクリプト custom_script snmp_get snmp_get_threshold |
プロパティ |
選択したアクションに渡されるプロパティ(名前/値)のリストのコンテナ。プロパティは、予期されるモニタリングおよびアクション属性のリストによって定義されます。 |
プロパティは、選択したアクションタイプに基づきます。 |
詳細については、「KPI、ルール、およびダイナミックマッピング API 」セクションを参照してください。
タイプ |
プロパティと各プロパティの説明 |
---|---|
icmp_ping |
|
icmpv4_ping |
|
icmpv6_ping |
|
スクリプト |
|
custom_script |
script_filename:実行するスクリプトへのフルパス(スクリプトは ESC Manager VM に配置する必要があります)。 |
custom_script_threshold |
|
post_esc_event |
|
snmp_get |
|
snmp_get_threshold |
|
snmp_get_threshold_ratio |
|
プロパティとランタイム パラメータ インジェクション
選択したアクションタイプに渡されるプロパティリストは、選択した一部のパラメータのランタイム値を自動的に挿入する機能をサポートします。たとえば、仮想マシン ip_address のランタイム値や仮想マシンの名前を、選択したアクションに引数として自動的に渡すことができます。
次に、実行時にスクリプトに渡すことができるパラメータの一部を示します。パラメータ値は、次の場合にのみ実行時に設定されます。
-
パラメータがサポート対象のパラメータである。
-
パラメータの値が、dynamic-mappings.xml ファイル内で空である。
それ以外の場合、スクリプト内で定義された値がそのまま渡されます。
次の表に、実行時に渡されるパラメータを示します。
esc_url |
Elastic Services Controller の URL。 |
vm_external_id |
管理対象 VM の外部 ID。 |
vm_name |
管理対象 VM の名前。 |
vm_mac_address |
管理対象 VM の MAC アドレス。 |
vm_external_host_id |
VM 外部ホスト識別子。 |
vm_external_host_name |
VM 外部ホスト名。 |
vm_group_name |
VM グループ名。 |
ip_address |
VM IP アドレス。 |
event_name |
ESC イベント名。 |
(注) |
選択したアクションに渡されるプロパティリストは、アクションタイプのパラメータによってバインドされていません。スクリプト設計者は、独自のパラメータを定義できます。ただし、値を指定する必要があります。 |