Skip to content

Commit

Permalink
Align default step for /render with Grafana
Browse files Browse the repository at this point in the history
In Grafana's native Explore Profiles view, the default step is 15
seconds. This is only used when the data source doesn't supply a
configured min step:

https://github.com/grafana/grafana/blob/24d65fa32f6ba7af3dc2e0ffa115c64aa7c97184/pkg/tsdb/grafana-pyroscope-datasource/query.go#L71-L87
  • Loading branch information
simonswine committed May 30, 2024
1 parent ed202fa commit 499ed83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/querier/timeline/calculator.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var (
DefaultRes int64 = 1500
DefaultMinInterval = time.Second * 10
DefaultMinInterval = time.Second * 15
)

// CalcPointInterval calculates the appropriate interval between each point (aka step)
Expand Down

0 comments on commit 499ed83

Please sign in to comment.