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)
scrape_configs:
- job_name: loki-job
scrape_interval: 30s
scrape_timeout: 10s
metrics_path: /metrics
static_configs:
- targets: [‘127.0.0.1:3100’]
image
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 .

Thanks