Bastien, Hmm interesting. At this point it would be helpful if you could share some more information so that we can help you figure out what is wrong here - I would be interested to know what configuration is reported in the Configuration UI <https://prometheus.demo.do.prometheus.io/config>, and what is being reported in the Targets UI <https://prometheus.demo.do.prometheus.io/targets>. The logs from Prometheus itself almost always contains useful information too.
Best, Ian On Tue, Jul 6, 2021 at 8:59 AM Bastien Moyet <[email protected]> wrote: > Hi, > > Thanks for your answer. > > That's what I thought too, but I'm not seeing any push_gateway in the UI, > neither healthy nor unhealthy. As if prometheus wasn't using my > configuration. > > That's why I'm asking my question here, and if there is a way to see why > my configuration is not used. > > On Monday, 5 July 2021 at 17:54:13 UTC+2 [email protected] wrote: > >> Hi Bastien, >> >> If your prometheus instance is correctly configured to scrape metrics >> from push_gateway, you should be able to see this in the Prometheus > >> Status > Targets UI. It should look 'healthy' like the following from the >> demo >> prometheus <https://prometheus.demo.do.prometheus.io/targets>: >> >> Best, >> >> Ian >> >> On Mon, Jul 5, 2021 at 8:16 AM Bastien Moyet <[email protected]> wrote: >> >>> Otherwise, are there any logs I can find regarding which endpoints are >>> effectively scrapped, or if there is an error scrapping them ? Though I >>> suspect there is no error since my prometheus gateway is not showing up in >>> targets list. >>> >>> On Friday, 2 July 2021 at 10:39:19 UTC+2 Bastien Moyet wrote: >>> >>>> Hi, >>>> >>>> I deployed a prometheus instance using prometheus operator (8.16.1) >>>> alongside a pushgateway (1.4.3) in a kubernetes cluster. But I cannot >>>> access my pushgateway metrics from prometheus. >>>> >>>> My pushgateway is correctly deployed, accessible and its data can be >>>> viewed on its UI. >>>> >>>> Prometheus is up and running too. However I cannot find the pushgateway >>>> in the listed target on http://prometheus:9090/targets . That seemed >>>> logic at first since the http://prometheus:9090/config page does not >>>> show any pushgateway either. >>>> >>>> However if I go check the config file I can find in >>>> http://prometheus:9090/flags >>>> (/etc/prometheus/config_out/prometheus.env.yaml) it gives me differents >>>> values than the one I can find on the UI. >>>> >>>> Notably in my pod the config file contains : >>>> >>>> - honor_labels: true >>>> job_name: pushgateway >>>> static_configs: >>>> - targets: >>>> - prometheus-pushgateway:9091 >>>> >>>> So i'm wondering why the config files differs from the config displayed >>>> on the UI. Is it a normal behavior or does it explain my issue ? >>>> >>>> Thanks >>>> >>> -- >>> 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/8b19a767-c1d8-4190-8e37-cb9e16822dc2n%40googlegroups.com >>> <https://groups.google.com/d/msgid/prometheus-users/8b19a767-c1d8-4190-8e37-cb9e16822dc2n%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/af839193-de1d-4148-b76f-e3de9c7308a2n%40googlegroups.com > <https://groups.google.com/d/msgid/prometheus-users/af839193-de1d-4148-b76f-e3de9c7308a2n%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/CADoMBNVZ9_K7GV9G3FsYYt--Gb02wm7fjPg7%2BUeiV5bMwyo9zA%40mail.gmail.com.

