update metrics_idx when updating meta data
add method back since it is used in tests
initial support for data retention

This commit adds support for configuring numeric data retention at the tenant
level.