A food chain in an ecosystem consists of producers, primary consumers, secondary consumers and decomposers. Here, the producer is grass and the primary consumer is the insect. The insect is eaten by a bird, a secondary consumer and the bird is eaten by a snake, which is a tertiary consumer.