On 2023-09-05 14:26, Анастасия Зель wrote:
yeah, i think scrape manually it will be useful but remember that its k8s pods :) i only have pod ip and i cant get it from prometheus node because they are in different subnets. Pods subnet don't have access to outside network. so i dont know how i can scrape manually particular pod target from prometheus server.
That would explain why it isn't working. You need to have network connectivity to all of your scrape targets from the Prometheus server. So if you have configured Prometheus to scrape every pod (via the Kubernetes SD for example) the Prometheus server will either need to be inside the cluster or connected to the same network mechanism as the pods.
-- Stuart Clark -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/4eb0b62f043f84563619eecb8ba0c307%40Jahingo.com.