Outils pour utilisateurs

Outils du site


tech:prometheus_windows_export_i386_compilation_go_lang

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:prometheus_windows_export_i386_compilation_go_lang [2025/04/03 20:54] Jean-Baptistetech:prometheus_windows_export_i386_compilation_go_lang [2025/04/07 18:27] (Version actuelle) Jean-Baptiste
Ligne 4: Ligne 4:
 # Prometheus windows_export i386 compilation go lang # Prometheus windows_export i386 compilation go lang
  
-Nous avons besoin de récuper le maximum de métriques sur un OS XP 32bits. 
  
-Une solution est d'utiliser ''windows_export'' de Prometheus, cependant nous n'avons pas de version 32 bits compilée fournie par le projet.+**Brouillon** 
 + 
 +Nous avons besoin de récupérer le maximum de métriques sur un OS XP 32bits. 
 + 
 +Une solution est d'utiliser ''windows_export'' (ancienement ''wmi_exporter''de Prometheus, cependant nous n'avons pas de version 32 bits compilée fournie par le projet.
  
 // Source : https://github.com/prometheus-community/windows_exporter // // Source : https://github.com/prometheus-community/windows_exporter //
  
 +
 +** Ca ne marche pas en compilant **
 +
 +** Go 1.10 is the last release to support Windows Vista or below **
 +
 +Voir :
 +  * https://github.com/golang/go/issues/23380
 +  * https://github.com/prometheus-community/windows_exporter/issues/486
 +  * https://github.com/prometheus-community/windows_exporter/issues/521
 +
 +
 +La dernière version compatible Win32 :
 +  * https://github.com/prometheus-community/windows_exporter/releases/tag/v0.9.0
 +  * https://github.com/prometheus-community/windows_exporter/releases/download/v0.9.0/wmi_exporter-0.9.0-386.msi
 +
 +
 +
 +
 +## Usage 
 +
 +C:\Program Files\windows_exporter\
 +
 +
 +## Command line Usage
 +
 +~~~
 +--config.file=CONFIG.FILE
 +--collectors.enabled="cpu,cs,memory,logical_disk,physical_disk,net,os,service,system"
 +--collector.tcp.enabled="metrics,connections_state"
 +--collector.performancecounter.objects=""
 +--collector.netframework.enabled="clrexceptions,clrinterop,clrjit,clrloading,clrlocksandthreads,clrmemory,clrremoting,clrsecurity"
 +--collector.process.include=".+"
 +--collector.scheduled_task.include=".+
 +--collector.service.include=".+"
 +--collector.net.enabled="metrics,nic_addresses"
 +--collector.net.nic-include=".+"
 +--collector.time.enabled="system_time,ntp"
 +~~~
 +
 +
 +### Usage old version wmi_exporter-0.9.0
 +
 +~~~winbatch
 +msiexec /i wmi_exporter-0.9.0-386.msi ENABLED_COLLECTORS=cpu,cs,logical_disk,logon,memory,net,os,process,service,system,tcp,vmware
 +~~~
 +
 +On test : http://localhost:9182
 +
 +
 +## Other
 +
 +
 +https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md
 +
 +~~~
 +time=2025-04-03T11:27:26.836Z level=WARN source=cs.go:75 msg="The cs collector is deprecated and will be removed in a future release. Logical processors has been moved to cpu_info collector. Physical memory has been moved to memory collector. Hostname has been moved to os collector."
 +time=2025-04-03T11:27:26.836Z level=WARN source=os.go:108 msg="The os collect holds a number of deprecated metrics and will be removed mid 2025. See https://github.com/prometheus-community/windows_exporter/pull/1596 for more information." collector=os
 +~~~
 +
 +
 +
 +----------
 +
 +## Old 
  
 ## Compile sur Windows ## Compile sur Windows
Ligne 58: Ligne 125:
  
  
-## Mais ça ne marche pas 
  
-Voir : +### Err windows_exporter.exe is not a valid Win32 application
-  * https://github.com/prometheus-community/windows_exporter/issues/486 +
-  * https://github.com/golang/go/issues/23380 +
-  * https://github.com/prometheus-community/windows_exporter/issues/521+
  
 +Voir https://learn.microsoft.com/en-us/windows/win32/debug/pe-format
  
  
-## Usage  +~~~bash 
- +file windows_exporter* 
-C:\Program Files\windows_exporter\ +windows_exporter.exe:                    PE32 executable (console) Intel 80386for MS Windows13 sections 
- +windows_exporter_CompiledOnOuindoze.exe: PE32 executable (console) Intel 80386for MS Windows13 section
- +
-## Command line Usage +
- +
-~~~ +
---config.file=CONFIG.FILE +
---collectors.enabled="cpu,cs,memory,logical_disk,physical_disk,net,os,service,system" +
---collector.tcp.enabled="metrics,connections_state" +
---collector.performancecounter.objects="" +
---collector.netframework.enabled="clrexceptions,clrinterop,clrjit,clrloading,clrlocksandthreads,clrmemory,clrremoting,clrsecurity" +
---collector.process.include=".+" +
---collector.scheduled_task.include=".+ +
---collector.service.include=".+" +
---collector.net.enabled="metrics,nic_addresses" +
---collector.net.nic-include=".+" +
---collector.time.enabled="system_time,ntp" +
-~~~ +
- +
- +
-## Other +
- +
- +
-https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md +
- +
-~~~ +
-time=2025-04-03T11:27:26.836Z level=WARN source=cs.go:75 msg="The cs collector is deprecated and will be removed in a future release. Logical processors has been moved to cpu_info collector. Physical memory has been moved to memory collector. Hostname has been moved to os collector." +
-time=2025-04-03T11:27:26.836Z level=WARN source=os.go:108 msg="The os collect holds a number of deprecated metrics and will be removed mid 2025. See https://github.com/prometheus-community/windows_exporter/pull/1596 for more information." collector=os+
 ~~~ ~~~
  
  
tech/prometheus_windows_export_i386_compilation_go_lang.1743706497.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki