diff --git a/pkg/cmd/spks.go b/pkg/cmd/spks.go index 77932c7..e10079e 100644 --- a/pkg/cmd/spks.go +++ b/pkg/cmd/spks.go @@ -65,7 +65,7 @@ func SpksCMD() *cli.Command { // this variable is necessary to query Prometheus, with timerange [1d:1d] it returns data from 1 day up to midnight startOfToday := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 0, 0, 0, 0, location) startYesterdayAbsolute := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day()-1, 0, 0, 0, 0, location).In(time.UTC) - endYesterdayAbsolute := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day(), 23, 59, 59, 0, location).Add(-(time.Hour * 24)).UTC() + endYesterdayAbsolute := time.Date(time.Now().Year(), time.Now().Month(), time.Now().Day()-1, 23, 59, 59, 0, location).In(time.UTC) logger.Info("Getting specific metric from thanos")