The determination of the amount of myoglobin present in a sample, usually blood. The trait is myoglobin measurement (EFO_0005057).