Prometheus retention_time not applied to vault_route_* metrics

Hi team, I’m testing OpenBao’s Prometheus metrics retention and noticed something odd.
My config include:

telemetry {
prometheus_retention_time = “24h”
disable_hostname = true
usage_gauge_period = “20s”
}

i have a ns called custone ,so i I expected metrics like vault_route_read_custone_kv__count to remain visible for at least 24 hours after last activity. But in practice, the counter disappears within 1–2 minutes if there’s no traffic, even though I set prometheus_retention_time = "24h".

root@iks-get-vz5sb:~# curl http://:8200/v1/sys/metrics?format=prometheus | grep vault_route_read_custone_kv__count
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 78740 0 78740 0 0 624k 0 --:–:-- --:–:-- --:–:-- 630k
vault_route_read_custone_kv__count 8
root@iks-get-vz5sb:~# curl http://:8200/v1/sys/metrics?format=prometheus | grep vault_route_create_custone_kv__count
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 27869 0 27869 0 0 103k 0 --:–:-- --:–:-- --:–:-- 104k
root@iks-get-vz5sb:~# curl http://:8200/v1/sys/metrics?format=prometheus | grep vault_route_read_custone_kv__count
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 27908 0 27908 0 0 8685k 0 --:–:-- --:–:-- --:–:-- 13.3M

Hi @praneethpottimuthi, this is a forum specifically for HashiCorp Vault. OpenBao is now its own project with its own implementation, so you will need to direct OpenBao-related questions to their community forums or issue tracking system. Thanks very much for your interest! If you have Vault-specific questions, please do use this forum to ask them!