Is there a way to restrict the memory limit of promtail agent running in linux ec2 instance

We have promtail agent running on our standalone application ec2 instances , we want to restrict the promtail agent memory limit such that it won’t spike the resources and make sure agent will not impact application resources.
Is there any option from promtail agent configuration to make this change.

Appreciate the help in advance