The basic components of ecosystems. Most ecosystems contain organisms that are producers (autotrophs), such as plants, that harness energy from the Sun, or consumers (heterotrophs) that feed on producers or other consumers. In a food chain made up of grasses, rabbits, and hawks, the grasses are the producers, and the rabbits and hawks are the consumers.