Updated MetricsConfig to read prefix value from configuration.