Set metrics mirroring
With mirroring on and a token, GET /metrics/federate gives each metric to a Prometheus that sends the token. Off, the endpoint answers 404. The token stays.
PUT
/api/v1/settings/monitoring/mirrorAuthorization
tse_sessionAPI key · cookierequiredRequest body
requiredapplication/jsonenabledbooleanrequiredResponses
200
OK
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
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