Skip to content

Commit

Permalink
Update pkg/cmd/spks.go
Browse files Browse the repository at this point in the history
Co-authored-by: Kidswiss <[email protected]>
  • Loading branch information
wejdross and Kidswiss authored Apr 22, 2024
1 parent ca55efa commit 8e20182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/spks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 8e20182

Please sign in to comment.