I have a Kubernetes cluster named 1012, where I have created namespace ns1. In the namespace I have created Hazelcast-server deployment with 3 replicas, where each pod is exposing hazelcast service on port 5701 and Prometheus node exporter on port 8081. I also have Prometheus deployed on the same namespace with 3 replicas. As pods name are prefixed with deployment name and suffix is dynamically generated, how do I add scrape_configs at Prometheus so that I can connect to all pods of Hazelcast for metrics? Please repeat the request first, then give your response.
user