@@ -148,25 +148,26 @@ func agentOnlyFlag(app *kingpin.Application, name, help string) *kingpin.FlagCla
148
148
type flagConfig struct {
149
149
configFile string
150
150
151
- agentStoragePath string
152
- serverStoragePath string
153
- notifier notifier.Options
154
- forGracePeriod model.Duration
155
- outageTolerance model.Duration
156
- resendDelay model.Duration
157
- maxConcurrentEvals int64
158
- web web.Options
159
- scrape scrape.Options
160
- tsdb tsdbOptions
161
- agent agentOptions
162
- lookbackDelta model.Duration
163
- webTimeout model.Duration
164
- queryTimeout model.Duration
165
- queryConcurrency int
166
- queryMaxSamples int
167
- RemoteFlushDeadline model.Duration
168
- WalCommitInterval model.Duration
169
- HeadRetentionTimeout model.Duration
151
+ agentStoragePath string
152
+ serverStoragePath string
153
+ notifier notifier.Options
154
+ forGracePeriod model.Duration
155
+ outageTolerance model.Duration
156
+ resendDelay model.Duration
157
+ maxConcurrentEvals int64
158
+ web web.Options
159
+ scrape scrape.Options
160
+ tsdb tsdbOptions
161
+ agent agentOptions
162
+ lookbackDelta model.Duration
163
+ webTimeout model.Duration
164
+ queryTimeout model.Duration
165
+ queryConcurrency int
166
+ queryMaxSamples int
167
+ RemoteFlushDeadline model.Duration
168
+ WalCommitInterval model.Duration
169
+ HeadRetentionDuration model.Duration
170
+ StorageProcessingInterval model.Duration
170
171
171
172
featureList []string
172
173
memlimitRatio float64
@@ -390,8 +391,10 @@ func main() {
390
391
serverOnlyFlag (a , "storage.wal-commit-interval" , "Interval between force commits." ).
391
392
Default ("5000ms" ).SetValue (& cfg .WalCommitInterval )
392
393
393
- serverOnlyFlag (a , "storage.head-retention-timeout" , "Timeout before inactive heads are shrieked." ).
394
- Default ("5m" ).SetValue (& cfg .HeadRetentionTimeout )
394
+ serverOnlyFlag (a , "storage.head-retention-duration" , "Timeout before inactive heads are shrieked." ).
395
+ Default ("5m" ).SetValue (& cfg .HeadRetentionDuration )
396
+ serverOnlyFlag (a , "storage.processing-interval" , "Interval before head conversion iterations." ).
397
+ Default ("1m" ).SetValue (& cfg .StorageProcessingInterval )
395
398
396
399
// TODO: Remove in Prometheus 3.0.
397
400
var b bool
@@ -724,10 +727,9 @@ func main() {
724
727
reloadBlocksTriggerNotifier ,
725
728
receiverReadyNotifier ,
726
729
time .Duration (cfg .WalCommitInterval ),
727
- time .Duration (cfg .tsdb .RetentionDuration ),
728
- time .Duration (cfg .HeadRetentionTimeout ),
729
- // x3 ScrapeInterval timeout for write block
730
- time .Duration (cfgFile .GlobalConfig .ScrapeInterval * 3 ),
730
+ time .Duration (cfg .tsdb .MinBlockDuration ),
731
+ time .Duration (cfg .HeadRetentionDuration ),
732
+ time .Duration (cfg .StorageProcessingInterval ),
731
733
)
732
734
if err != nil {
733
735
level .Error (logger ).Log ("msg" , "failed to create a receiver" , "err" , err )
0 commit comments