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
Arve Knudsen d87dbf9f8a
Chore: Upgrade to latest Cortex (#5085)
4 years ago
..
COPYING Add kingpin. 8 years ago
README.md Upgrade Cortex, Prometheus and Thanos (#4830) 4 years ago
bytes.go Chore: Upgrade to latest Cortex (#5085) 4 years ago
doc.go Add kingpin. 8 years ago
si.go loki: use new runtimeconfig package from Cortex (#1484) 6 years ago
util.go Add kingpin. 8 years ago

README.md

Go Reference

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