generate samples from metrics