I have been trying to scrape targets in my Kubernetes namespace using
kubernetes_sd_config. The pods have 2 processes- instrumentation server and application server. With the below annotations in deployment, Prometheus still has 2 targets. Let me know how can I enable it for only a single port.
prometheus.io/port: '8081' prometheus.io/scrape: 'true'