Modern temperature records are got using instruments. It only covers the last 150 years or so. The temperature record of the past 1,000 years or more is got by using data from what are called "climate proxy" records.