Skip to content

Commit

Permalink
Rename Monitoring.Retention to Monitoring.DataRetention
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbrophy committed Oct 23, 2024
1 parent c584c46 commit 7ee3824
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/resources/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Monitoring:
MetricAuthorization: true
PromQLAuthorization: true
AggregatePrefixes: ["/*"]
Retention: 360h
DataRetention: 360h
Shoveler:
MessageQueueProtocol: amqp
PortLower: 9930
Expand Down
2 changes: 1 addition & 1 deletion docs/parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,7 @@ type: bool
default: true
components: ["origin", "cache", "director", "registry"]
---
name: Monitoring.Retention
name: Monitoring.DataRetention
description: |+
The duration of which Prometheus should retain the monitoring data.
type: duration
Expand Down
2 changes: 1 addition & 1 deletion param/parameters.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions param/parameters_struct.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web_ui/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ func ConfigureEmbeddedPrometheus(ctx context.Context, engine *gin.Engine) error
cfg.tsdb.OutOfOrderTimeWindow = promCfg.StorageConfig.TSDBConfig.OutOfOrderTimeWindow
}

retention, err := model.ParseDuration(param.Monitoring_Retention.GetDuration().String())
retention, err := model.ParseDuration(param.Monitoring_DataRetention.GetDuration().String())
if err != nil {
// If we are here, it means that the duration that was set in the config is invalid
return fmt.Errorf("failed to parse retention duration: %v", err)
Expand Down

0 comments on commit 7ee3824

Please sign in to comment.