[prometheus] Change storage.retention
schema to allow for storage.tsdb.retention.size
to be configured
#3886
Labels
enhancement
New feature or request
Is your feature request related to a problem ?
Currently, to set the
storage.tsdb.retention.size
, it must be handed to the chart via theextraFlags
command, by settingstorage.tsdb.retention.size=XGB
.Since Helm doesn't support appending to lists of default values, this causes the default
extraFlags
arguments to be overwritten, requiring them to be redefined explicitly.Describe the solution you'd like.
I would like to change the schema of the
server.retention
variable so that the desired retention size could be configured by setting it asserver.retention.size=XGB
invalues.yaml
, which would then pass the desired configuration as a flag to the Prometheus server (similar to the behaviour ofserver.retention
, which passes the desired retention time as a flag ,storage.tsdb.retention.time
, to the server.)Describe alternatives you've considered.
I have tried passing the retention size to the server using
extraArgs
,extraFlags
anddefaultFlagsOverride
, but all cause the default values to be overwritten.Additional context.
No response
The text was updated successfully, but these errors were encountered: