replacing any dots in metric keys with underscores