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/vendor/github.com/alecthomas/units
Peter Štibraný d4cae667ae loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
..
COPYING Add kingpin. 7 years ago
README.md Add kingpin. 7 years ago
bytes.go loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
doc.go Add kingpin. 7 years ago
go.mod loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
go.sum loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
si.go loki: use new runtimeconfig package from Cortex (#1484) 5 years ago
util.go Add kingpin. 7 years ago

README.md

Units - Helpful unit multipliers and functions for Go

The goal of this package is to have functionality similar to the time package.

It allows for code like this:

n, err := ParseBase2Bytes("1KB")
// n == 1024
n = units.Mebibyte * 512