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 upSupport AMQP as a medium for scraping (apart from http{s}). #1691
Comments
This comment has been minimized.
This comment has been minimized.
|
A system where there's no HTTP and where it cannot be added at all sounds like a very niche use case. I don't think it would be appropriate to add an additional non-HTTP scrape protocol to support it. |
This comment has been minimized.
This comment has been minimized.
|
I don't think it's that niche. As mentioned on the "Pushing metrics" page, they may just live behind a firewall (my case). As, also mentioned on your site, push gateway is usually not the right solution. That's why I want to use AMQP. With that said - I understand that adding AMQP might not be something you want to look into, and appreciate this.
|
This comment has been minimized.
This comment has been minimized.
We recommend running Prometheus on the same network as what you're monitoring. We already support 2, see how the blackbox exporter works for example. |
This comment has been minimized.
This comment has been minimized.
|
The one thing that I'm missing in the blackbox example, is a call for init. |
This comment has been minimized.
This comment has been minimized.
|
Closing this as we're not likely to add non-HTTP scraper support and a workaround has been found. |
juliusv
closed this
Jun 2, 2016
This comment has been minimized.
This comment has been minimized.
|
Greetings. Even if this has been discarded I'd like to tell you why I need this today. My company is going to deploy hundreds of servers at clients and we need to export the metrics of this servers and aggregate them in a single place. As prometheus provide no authentication we can't use it as it because we can not expose the push gateway on internet without any authentication. So we thought about it and we already have an authenticated path between the servers at the clients and us, rabbitmq. So we are going to write something that is going to poll the node exporter locally on the servers and send the result to rabbitmq. It would have been nice if promrtheus was able to natively poll rabbitmq queues, it would have spared us to develop something that polls queues and send the messages to the push gateway. Regards. |
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
mishas commentedMay 30, 2016
Many distributed systems already have one control/management channel opened into the network, and opening another one (for example http{s} for scraping) may raise security or otherwise maintenance concerns.
One protocol that is extremely popular in this space is the AMQP protocol (RabbitMQ).
AMQP protocol supports the RPC use case, which can be easily used by prometheus to scrape the information needed.
My feature request is to implement such scraping mechanism.
Please note, that for now, I've implemented a "proxy" service that accepts HTTP{s} requests and sends an AMQP-RPC request to my remote servers, but this is very patchy and I'd prefer this to be integrated into Prometheus. Code can be found here.
I also volunteer to implement this in prometheus code base (and send a pull request), if it's something you see fit in the project.