diff --git a/conf/defaults.ini b/conf/defaults.ini index 8daf5ef4a88..b52599aab85 100644 --- a/conf/defaults.ini +++ b/conf/defaults.ini @@ -1559,7 +1559,8 @@ enabled = true #################################### Short Links ############################# [short_links] -# Short links which are never accessed will be deleted as cleanup. Time is in days. Default is 7 days. Max is 365. 0 means they will be deleted approximately every 10 minutes. +# Short links that are never accessed will be deleted as cleanup. Time is set up in days. The default is 7 days. Maximum value is 365. +# 0 means they will be deleted approximately every 10 minutes. A negative value (such as -1) will disable expiration. expire_time = 7 #################################### Internal Grafana Metrics ############ diff --git a/docs/sources/setup-grafana/configure-grafana/_index.md b/docs/sources/setup-grafana/configure-grafana/_index.md index de2e43e06c3..a623d95d122 100644 --- a/docs/sources/setup-grafana/configure-grafana/_index.md +++ b/docs/sources/setup-grafana/configure-grafana/_index.md @@ -1872,7 +1872,11 @@ Configures settings around the short link feature. ### expire_time -Short links which are never accessed are considered expired or stale, and will be deleted as cleanup. Set the expiration time in days. Default is `7` days. Maximum is `365` days, and setting above the maximum will have `365` set instead. Setting `0` means the short links will be cleaned up approximately every 10 minutes. +Short links that are never accessed are considered expired or stale and will be deleted as cleanup. Set the expiration time in days. The default is `7` days. The maximum is `365` days, and setting above the maximum will have `365` set instead. Setting `0` means the short links will be cleaned up approximately every 10 minutes. A negative value such as `-1` will disable expiry. + +{{< admonition type="caution" >}} +Short links without an expiration increase the size of the database and can’t be deleted. +{{< /admonition >}}