Question about scraping setting. I have a job for scraping microservice on the Kubernetes cluster. Is there a way that I can restrict the scope of scraping by certain tag? Currently this job scrapes metrics on every single pod in the cluster…However, I ONLY wanted it to scrape on certain pods that have tag for example app=“myapp”. Any advice?
Use label remap and use action= keep or drop to select specific monitoring targets. Refer documentation for more details