mirror of
https://github.com/prometheus/prometheus.git
synced 2026-04-23 07:08:33 -04:00
Move retention validation from tsdb/db.go into a TSDBRetentionConfig UnmarshalYAML method so that invalid values are rejected at config load/reload time rather than at apply time. - Reject negative retention size values. - Reject retention percentage values above 100. - Simplify ApplyConfig to assign retention values unconditionally, enabling setting a value back to 0 to disable it. Signed-off-by: Julien Pivotto <291750+roidelapluie@users.noreply.github.com>
4 lines
48 B
YAML
4 lines
48 B
YAML
storage:
|
|
tsdb:
|
|
retention:
|
|
time: -1h
|