Windows exporter(Hyper-V監視)のディスカバリ設定ファイル(jpc_file_sd_config_windows_hyperv.yml)
形式
YAML形式で記述します。
- targets:
- JP1/IM - Agentのインストールホスト名:Windows exporter(Hyper-V監視)のポート番号
labels:
jp1_pc_exporter: JPC Windows exporter hyperv
jp1_pc_nodelabel: Hyperv metric collector(Windows exporter hyperv)
jp1_pc_category: VirtualMachine
jp1_pc_agent_create_flag: false
jp1_pc_multiple_node: "{__name__=~'windows_hyperv_vm_cpu_total_run_time|windows_hyperv_host_.*'}"
ファイル
jpc_file_sd_config_windows_hyperv.yml
jpc_file_sd_config_windows_hyperv.yml.model(モデルファイル)
格納先ディレクトリ
- ■統合エージェントホスト
-
Windowsの場合
-
物理ホストのとき(定義ファイルおよびモデルファイル)
Agentパス\conf\
-
論理ホストのとき(定義ファイル)
共有フォルダ\jp1ima\conf\
-
説明
Prometheus serverがスクレイプするWindows exporter(Hyper-V監視)を設定するファイルです。
文字コード
UTF-8(BOM無し)
改行コード
CR+LF
定義の反映時期
Prometheus serverのリロードAPIを実行,または,再起動したとき,Prometheus serverがスクレイプする対象となります。そのあと,jddcreatetreeコマンドおよびjddupdatetreeコマンドを実行したとき,統合オペレーション・ビューアーのツリーの表示内容に反映されます。
記述内容
- JP1/IM - Agentのインストールホスト名
-
スクレイプ先のWindows exporter(Hyper-V監視)のIPアドレスまたはホスト名を指定します。
- Windows exporter(Hyper-V監視)のポート番号
-
スクレイプ先のWindows exporter(Hyper-V監視)のポート番号を指定します。
デフォルトでは,20733が指定されます。