Difference between revisions of "--storage.tsdb.retention"
Jump to navigation
Jump to search
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
--storage.tsdb.retention | --storage.tsdb.retention | ||
+ | |||
+ | |||
+ | |||
+ | {{prometheus_storage_options}} | ||
== Related == | == Related == | ||
* [[Prometheus storage]] | * [[Prometheus storage]] | ||
+ | * <code>[[HISTORY]]</code> in <code>[[/etc/sysstat/sysstat]]</code> | ||
== See also == | == See also == | ||
− | * {{Prometheus}} | + | * {{Prometheus.yml}} |
[[Category:Prometheus]] | [[Category:Prometheus]] |
Latest revision as of 11:50, 31 December 2023
--storage.tsdb.retention
# --storage.tsdb.path="/var/lib/prometheus/metrics2/" # Base path for metrics storage. # --storage.tsdb.min-block-duration=2h # Minimum duration of a data block before being # persisted. # --storage.tsdb.max-block-duration=<duration> # Maximum duration compacted blocks may span. # (Defaults to 10% of the retention period) # --storage.tsdb.retention=15d # How long to retain samples in the storage. # --storage.tsdb.no-lockfile # Do not create lockfile in data directory.
Related[edit]
See also[edit]
Advertising: