VMware exporter discovery configuration file (jpc_file_sd_config_vmware.yml)
- Organization of this page
Format
Write in YAML format.
- targets:
- VMware exporter hostnemae:Port number of the VMware exporter
labels:
jp1_pc_exporter: JPC VMware exporter
jp1_pc_category: virtualMachine
jp1_pc_remote_monitor_instance: install-host-name:VMware metric collector (VMware exporter)
jp1_pc_multiple_node: "{__name__=~'vmware_host_.*|vmware_vm_.*|vmware_datastore_.*'}"
jp1_pc_rm_agent_create_flag: false
File
jpc_file_sd_config_vmware.yml
jpc_file_sd_config_vmware.yml.model (model file)
Storage directory
- ■Integrated agent host
-
In Windows:
-
For a physical host (difinition file or model file)
Agent-path\conf\
-
For a logical host (difinition file)
shared-folder\jp1ima\conf\
In Linux:
-
For a physical host (difinition file or model file)
/opt/jp1ima/conf/
-
For a logical host (difinition file)
shared-folder/jp1ima/conf/
-
Description
This is a file that configures the VMware exporter that Prometheus server scrapes.
Character code
UTF-8 (without BOM)
Line feed code
In Windows: CR+LF
In Linux: LF
When the definitions are applied
When the Prometheus server reload API is executed or restarted, the Prometheus server is subject to scraping. Then, when the jddcreatetree and jddupdatetree commands are executed, the contents of the tree display in the integrated operations viewer are reflected.
Information that is specified
- VMware exporter hostnemae
-
Specifies IP or hostname of VMware exporter to scrape to.
- Port number of the VMware exporter
-
Specifies the port number of VMware exporter to scrape to.
By default, 20732 is specified.
If you want to monitor multiple hosts, add scrape jobs in the Prometheus configuration file (jpc_prometheus_server.yml).
Example definition
- targets:
- VMware exporter host: 20732
labels:
jp1_pc_exporter: JPC VMware exporter
jp1_pc_category: virtualMachine
jp1_pc_remote_monitor_instance: hostname1:VMware metric collector (VMware exporter)
jp1_pc_multiple_node: "{__name__=~'vmware_host_.*|vmware_vm_.*|vmware_datastore_.*'}"
jp1_pc_rm_agent_create_flag: false