Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/ingester/wal_windows.go

18 lines
398 B

//go:build windows
package ingester
import (
"syscall"
)
var (
kernel32 = syscall.NewLazyDLL("kernel32.dll")
procGetDiskFreeSpaceEx = kernel32.NewProc("GetDiskFreeSpaceExW")
)
// checkDiskUsage returns the disk usage percentage (0.0 to 1.0) for the WAL directory.
func (w *walWrapper) checkDiskUsage() (float64, error) {
// Disable this for Windows for now
return 0.0, nil
}