Prometheus Target is UP but i have no data

741 views
Skip to first unread message

Chaima TOUIL

unread,
May 6, 2022, 6:34:19 AM5/6/22
to Prometheus Users
I have prometheus target for apache exporter Up but i have no data for apache metrics. Any ideas about that please?

Julius Volz

unread,
May 8, 2022, 5:07:38 AM5/8/22
to Chaima TOUIL, Prometheus Users
Hi,

A couple of things you could look into:

* Can you not only see the target as UP on /targets, but also see the "up" metric for the exporter job when querying for it? If not, maybe the system time between your Prometheus backend and your browser frontend is off, although modern versions of Prometheus should show a warning about that in the web UI.
* What does the "scrape_samples_scraped" metric say about the number of samples scraped from the Apache exporter job?
* What does the "apache_up" metric say, in case it exists?

Cheers,
Julius


On Fri, May 6, 2022 at 12:34 PM Chaima TOUIL <chaima...@sesame.com.tn> wrote:
I have prometheus target for apache exporter Up but i have no data for apache metrics. Any ideas about that please?

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/2705b0d5-b2dd-4155-95af-503d6df47620n%40googlegroups.com.


--
Julius Volz
PromLabs - promlabs.com

Chaima TOUIL

unread,
May 10, 2022, 10:17:04 AM5/10/22
to Prometheus Users
Hi, 
Thanks for your response. I checked the "scrape_samples_scraped" metric and it gives me 48 . And i checked the  "apache_up" metric and it gives me 0. Although i have only 5 instances UP for my job "apache_exporter".
The main idea was to automate exporter starting via the entrypoint.sh in the kubernetes pod where the exporter is installed but i had a problem of connection refused bescause it worked with the port 80 and not the 9117. Maybe any idea about this can resolve the main problem. 
Thanks.

Chaima TOUIL

unread,
May 10, 2022, 10:19:17 AM5/10/22
to Prometheus Users

And in my script i just added the starting command of apache_exporter like that :
Apache.PNG
Reply all
Reply to author
Forward
0 new messages