You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ParseDuration parses a duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
Describe the bug
Version
Expected behavior
Source code:
https://github.com/grafana/loki/blob/c4faa579e33b33afa2c15bca72796d000e6b79fb/pkg/logentry/stages/metrics.go#L67```
use ParseDuration function
https://golang.org/pkg/time/#ParseDuration
ParseDuration parses a duration string. A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
Question
Why document use 1d
#2335
The text was updated successfully, but these errors were encountered: