mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-30 07:29:03 +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:
@@ -82,6 +82,10 @@ func (c *Collector) Close() error {
|
||||
}
|
||||
|
||||
func (c *Collector) Build(logger *slog.Logger, _ *mi.Session) error {
|
||||
if err := ntdll.Load(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
c.bootTime = prometheus.NewDesc(
|
||||
prometheus.BuildFQName(types.Namespace, Name, "boot_time_timestamp"),
|
||||
"Unix timestamp of last system boot. Follows clock corrections.",
|
||||
|
||||
Reference in New Issue
Block a user