Set the metrics storage limit
Saves the storage limit, or the default with 0, and restarts the metrics engine with it. The charts have no new data for some seconds. A lower limit deletes the oldest metrics.
/api/v1/settings/monitoring/storage-limittse_sessionAPI key · cookierequiredapplication/jsonbytesinteger<int64>requiredThe storage limit in bytes, from storage_limit_min_bytes to storage_limit_max_bytes. 0 sets the default
OK
kept_secondsinteger<int64>requiredThe age of the oldest metrics, in seconds. -1 when the console cannot read it
mirror_enabledbooleanrequiredGET /metrics/federate answers. It also needs a token
mirror_token_created_atstring<date-time>When the token was made
mirror_token_setbooleanrequiredA mirroring token exists. The console keeps only its hash, so it cannot show it again
retention_daysinteger<int64>requiredHow many days the metrics engine keeps metrics
retention_days_maxinteger<int64>requiredretention_days_mininteger<int64>requiredstorage_bytesinteger<int64>requiredThe disk space that the metrics use now, in bytes. -1 when the console cannot read it
storage_fullbooleanrequiredThe metrics engine deleted old metrics at the limit since its last start
storage_limit_bytesinteger<int64>requiredThe storage limit of the metrics in force, in bytes. At the limit, the oldest metrics go first. 0 when the metrics engine runs with no limit, -1 when the console cannot read it
storage_limit_max_bytesinteger<int64>required80% of the disk of the metrics. -1 when the console cannot read it
storage_limit_min_bytesinteger<int64>requiredstorage_limit_set_bytesinteger<int64>requiredThe storage limit that an admin saved, in bytes. 0 is the default: 40% of the disk of the metrics. A saved limit above storage_limit_max_bytes gives the default
Error
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message