Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I don't want prometheus to scrape metrics from a target but just its discovery under target tab on UI. #4971

Closed
vivekj11 opened this Issue Dec 7, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@vivekj11
Copy link

vivekj11 commented Dec 7, 2018

Proposal

Use case. Why is this important?

I am trying to monitor a container which does not provide any metrics. I am not permitted to change/add any configuration in that target as of now.
I want to list this target under "target" tab on Prometheus UI.
In simple words- I just want prometheus to give me details about the status of this target without scrapping any metrics from it.

What did you do?
I have setup prometheus, grafana, CAdvisor and node_exporter on separate containers and their status is visible on UI as they provide metrics which prometheus is scrapping continuously.
But I want to get running status of any other app container (Like container is up or not ).
I tried with different metrics but not getting expected result.
I also tried to understand " prometheus service discovery", but didn't able to find something to get expected result.

What did you expect to see?
I want to see this target under the target tab on prometheus UI so I can easily monitor it with "up" query.
I am also ready to use any other query which Cadvisor or node_exporter provides, to get this detail.

Environment
Docker-Containers

  • System information:

Linux 3.10.0-957.1.3.el7.x86_64 x86_64

  • Prometheus version:

2.5.0

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Dec 7, 2018

The target needs to expose an HTTP endpoint that Prometheus could scrape. In your case, it can be an empty page.

I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.