Monitoring Loki Components using Prometheus

Hi Team
We are running loki on Kubernetes cluster and we would like to monitor loki components and all other metrics mentioned here Observability | Grafana Loki documentation using prometheus .
What should the sample prometheus file should look like in this case?

Do we need to specify IP address of each component (POD)
- job_name: loki-job
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics
- targets: [‘’]
Do you have other suggestion ? I am thinking if i use IP Address and then delete a POD in that case , i need to update config.yml with latest IP address .