YAML configuration files can be specified with the -config.file flag. This enables the additional process and container collectors on top of the defaults. Using with -collectors.enabled argument which gets expanded with all default collectors.\windows_exporter.exe -collectors.enabled ",process,container" So to get them all, rather than just the first one, the regular expression must use. When there are multiple processes with the same name, WMI represents those after the first instance as process-name#index. \windows_exporter.exe -collectors.enabled "process" ="firefox.+" \windows_exporter.exe -collectors.enabled "service" -where "Name='windows_exporter'"Įnable only process collector and specify a custom query. The prometheus metrics will be exposed on localhost:9182 Examples Enable only service collector and specify a custom query. Go get -u /prometheus-community/windows_exporterĬd $env:GOPATH/src//prometheus-community/windows_exporter Windows_exporter supports Windows Server versions 2008R2 and later, and desktop Windows version 7 and later. See detailed steps to install on Windows Kubernetes here. Msiexec /i ENABLED_COLLECTORS=os,service -% EXTRA_FLAGS="-where ""Name LIKE 'sql%'""" Powershell versions 7.3 and above require PSNativeCommandArgumentPassing to be set to Legacy when using -% EXTRA_FLAGS: $PSNativeCommandArgumentPassing = 'Legacy' On some older versions of Windows you may need to surround parameter values with double quotes to get the install command parsing properly: msiexec /i C:\Users\Administrator\Downloads\windows_exporter.msi ENABLED_COLLECTORS="ad,iis,logon,memory,process,tcp,thermalzone" TEXTFILE_DIR="C:\custom_metrics\" msiexec /i ENABLED_COLLECTORS=os,service -% EXTRA_FLAGS="-where ""Name LIKE 'sql%'""" Example invocations: msiexec /i ENABLED_COLLECTORS=os,iis LISTEN_PORT=5000Įxample service collector with a custom query. Parameters are sent to the installer via msiexec. Defaults to an empty string (any remote address).Īllows passing full CLI flags. Defaults to /metricsĪs the flag, provide a directory to read text files with metrics fromĪllows setting comma separated remote IP addresses for the Windows Firewall exception (allow list). The following parameters are available: NameĪs the -collectors.enabled flag, provide a comma-separated list of enabled collectors If the installer is run without any parameters, the exporter will run with default settings for enabled collectors, ports, etc. The installer will setup the windows_exporter as a Windows service, as well as create an exception in the Windows Firewall. The latest release can be downloaded from the releases page.Įach release provides a. Skip TLS when loading config file from URL Tune to allow for overhead or high loads. Seconds to subtract from the timeout allowed by the client. If true, print available collectors and exit. Use as a placeholder which gets expanded containing all the collectors enabled by default." 0 to disable.Ĭomma-separated list of collectors to use. URL path for surfacing collected metrics. The ones configuring the global behaviour of the exporter are listed below, while collector-specific ones are documented in the respective collector documentation above. Windows_exporter accepts flags to configure certain behaviours. This can be useful for having different Prometheus servers collect specific metrics from nodes. In Prometheus configuration you can use this syntax under the scrape config. The collect parameter may be used multiple times. This is the recommended way to collect metrics to avoid errors when comparing metrics of different families.įor advanced use the windows_exporter can be passed an optional list of collectors to filter metrics. The windows_exporter will expose all metrics from enabled collectors by default. See the linked documentation on each collector for more information on reported metrics, configuration settings and usage examples. Performance counters installed by the Vmware Guest agent Microsoft File Server Resource Manager (FSRM) Quotas collector "Computer System" metrics (system properties, num cpus/total memory) A Prometheus exporter for Windows machines.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |