Change ajax call to get available metrics