Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upI don't want prometheus to scrape metrics from a target but just its discovery under target tab on UI. #4971
Comments
This comment has been minimized.
This comment has been minimized.
|
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. |
simonpasquier
closed this
Dec 7, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vivekj11 commentedDec 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
Linux 3.10.0-957.1.3.el7.x86_64 x86_64
2.5.0