You'd need to write a custom service discovery based on the file SD [1]. See [2] for a list of existing projects which can provide some inspiration.
[1] https://prometheus.io/docs/prometheus/latest/configuration/configuration/#file_sd_config [2] https://prometheus.io/docs/operating/integrations/#file-service-discovery On Tue, Feb 25, 2020 at 11:20 AM Maksym Lushpenko < [email protected]> wrote: > Hi, Brian, > > thanks for your answer. These links come from Istio VirtualService custom > resource, actually, only domain name comes from them, https part has to be > added. From my understanding, services/endpoints/ingress won't be able to > discover them as they are custom resources. So, I haven't tried those > because seems like they won't help bu please correct me if I am wrong. > > Maksym Lushpenko > > DevOps Engineer . HAL24K <https://hal24k.com/> . M: +31 > 682 786 973 . S: lordnemiroff > > > > > > > > On Tue, Feb 25, 2020 at 9:41 AM Brian Candler <[email protected]> wrote: > >> Perhaps you could explain your problem a bit more. >> >> You give an example of static configs: >> >> - https://app1.customer1.exmaple.com >> - https://app1.customer2.exmaple.com >> - https://app2.customer2.exmaple.com >> >> >> To kubernetes, what are these? Services? Endpoints? Something else? >> >> kubernetes_sd_config has roles >> <https://prometheus.io/docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config> >> for ingress, service, endpoint. Do these not work with Istio? Can you >> show what you've tried, and explain what happens when you try them? >> >> -- >> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/prometheus-users/1f421125-6554-4e4b-b382-ff576c500889%40googlegroups.com >> <https://groups.google.com/d/msgid/prometheus-users/1f421125-6554-4e4b-b382-ff576c500889%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/prometheus-users/CAAGXLHoha7kXkfrxi-A7iis-Q3maq9Z9P5gLjGAvv7GJ0mQzhA%40mail.gmail.com > <https://groups.google.com/d/msgid/prometheus-users/CAAGXLHoha7kXkfrxi-A7iis-Q3maq9Z9P5gLjGAvv7GJ0mQzhA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/CAM6RFu51Hmd0UhAmsH4MtRM_dOFijTToeseQLScz76xUz%3DOdMA%40mail.gmail.com.

