windows_exporter icon indicating copy to clipboard operation
windows_exporter copied to clipboard

How does windows_exporter support ARM?

Open jihaojieu opened this issue 2 years ago • 7 comments

Is there an exporter that supports monitoring ARM systems? Or how to monitor an ARM operating system?Thakns!

jihaojieu avatar Mar 22 '22 11:03 jihaojieu

Go supports cross-compiling to different architectures by setting the GOARCH environment variables when running go build. See https://go.dev/doc/install/source#environment for more info.

I've not previously built ARM binaries of the exporter, though it'd be nice if someone could test if the exporter works correctly on an ARM device.

If there's sufficient demand an ARM binary could be added to new releases.

breed808 avatar Apr 06 '22 10:04 breed808

Would love ARM Support.

kmf avatar Aug 23 '22 05:08 kmf

@kmf would you be interested in testing ARM binaries?

breed808 avatar Aug 24 '22 11:08 breed808

Only running Windows in a test VM. But I'll try to help where I can.

kmf avatar Aug 24 '22 19:08 kmf

Let me know if the attached works. I've built it from master with GOARCH=arm64.

windows_exporter_aarch64.zip

breed808 avatar Aug 26 '22 09:08 breed808

Works like a Charm :)

# HELP windows_system_context_switches_total Total number of context switches (WMI source: PerfOS_System.ContextSwitchesPersec)
# TYPE windows_system_context_switches_total counter
windows_system_context_switches_total 5.087025e+06
# HELP windows_system_exception_dispatches_total Total number of exceptions dispatched (WMI source: PerfOS_System.ExceptionDispatchesPersec)
# TYPE windows_system_exception_dispatches_total counter
windows_system_exception_dispatches_total 24478
# HELP windows_system_processor_queue_length Length of processor queue (WMI source: PerfOS_System.ProcessorQueueLength)
# TYPE windows_system_processor_queue_length gauge
windows_system_processor_queue_length 14
# HELP windows_system_system_calls_total Total number of system calls (WMI source: PerfOS_System.SystemCallsPersec)
# TYPE windows_system_system_calls_total counter
windows_system_system_calls_total 4.6622314e+07
# HELP windows_system_system_up_time System boot time (WMI source: PerfOS_System.SystemUpTime)
# TYPE windows_system_system_up_time gauge
windows_system_system_up_time 1.6612322662899492e+09
# HELP windows_system_threads Current number of threads (WMI source: PerfOS_System.Threads)
# TYPE windows_system_threads gauge
windows_system_threads 1882
# HELP windows_textfile_scrape_error 1 if there was an error opening or reading a file, 0 otherwise
# TYPE windows_textfile_scrape_error gauge
windows_textfile_scrape_error 1

kmf avatar Aug 27 '22 05:08 kmf

Nice! I'll amend the CI/CD configuration to include an ARM64 build.

breed808 avatar Aug 27 '22 09:08 breed808