Skip to content

Commit c136af9

Browse files
authored
Update Prometheus retention and storage details
Added information on setting maximum storage size for Prometheus.
1 parent 7d17320 commit c136af9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/en/hosting/monitoring/setup.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,11 @@ No matter which way you set up your SQL exporter, follow these steps to tell you
190190

191191
#### Prometheus Retention and Storage
192192

193-
By default, historical monitoring data will be stored in Prometheus (`PROMETHEUS_DATA` directory) for 60 days (configurable by `PROMETHEUS_RETENTION_TIME`). A longer retention time can be configured to allow for longer-term analysis of the data. However, this will increase the size of the Prometheus data volume. See the [Prometheus documentation](https://prometheus.io/docs/prometheus/latest/storage/) for more information.
193+
By default, historical monitoring data will be stored in Prometheus (`PROMETHEUS_DATA` directory) for 60 days (configurable by `PROMETHEUS_RETENTION_TIME`). A longer retention time can be configured to allow for longer-term analysis of the data. However, this will increase the size of the Prometheus data volume.
194+
195+
Alternately, to put a maximum on the amount of storage used, set the total amount of disk space (configurable by `PROMETHEUS_RETENTION_SIZE`). This defaults to `0` which is no limit.
196+
197+
See the [Prometheus documentation](https://prometheus.io/docs/prometheus/latest/storage/) for more information.
194198

195199
Local storage is not suitable for storing large amounts of monitoring data. If you intend to store multiple years worth of metrics, you should consider integrating Prometheus with a [Remote Storage](https://prometheus.io/docs/operating/integrations/#remote-endpoints-and-storage/).
196200

0 commit comments

Comments
 (0)