mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-27 14:09:05 +01:00
headers: fail Build on missing native exports and assert MI/COM layouts (#2739)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -233,9 +233,11 @@ func (c *Collector) Build(logger *slog.Logger, miSession *mi.Session) error {
|
||||
close: func() { c.perfDataCollectorDynamicMemoryVM.Close() },
|
||||
},
|
||||
subCollectorHost: {
|
||||
build: c.buildHost,
|
||||
collect: c.collectHost,
|
||||
close: func() { c.perfDataCollectorLogicalProcessor.Close() },
|
||||
// The Host Compute Service API (computecore.dll) exists since 1809.
|
||||
minBuildNumber: osversion.LTSC2019,
|
||||
build: c.buildHost,
|
||||
collect: c.collectHost,
|
||||
close: func() { c.perfDataCollectorLogicalProcessor.Close() },
|
||||
},
|
||||
subCollectorHypervisorLogicalProcessor: {
|
||||
build: c.buildHypervisorLogicalProcessor,
|
||||
|
||||
Reference in New Issue
Block a user