Enable log rotation in Prometheus server container

I need to enable log rotation(Query Log | Prometheus) for Prometheus but the utility logrotate is not present in the docker container based on (quay.io/prometheus/prometheus:latest). What is the recommended way to enable log rotation in the containers?

That’s something you’d handle outside of your container. You’d normally be logging to a volume/mount outside of the container (e.g. on the host) and then have something that handled rotation from another container or on the host itself. The exact details really depends on how you want to do it, as well as the details around how you are using containers (e.g. are you using something like Kubernetes or just running Docker containers on a Linux machine?)