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 upQuestion / use case #1322
Comments
brian-brazil
added
the
question
label
Jan 16, 2016
This comment has been minimized.
This comment has been minimized.
|
Firstly, we recommend running a Prometheus on each network so that you're not crossing failure domains. Then you'd (optionally) have a Prometheus running that'd pull aggregated stats from those. You could use a number of ways to get that through your network, including VPN, ssl and proxies. |
This comment has been minimized.
This comment has been minimized.
|
Ah that makes sense. Good idea. I think weave would be excellent match to push the remote Prometheus data back up to the data centre. |
This comment has been minimized.
This comment has been minimized.
|
Weave mates with docker and now non docker networks as a mesh . |
joeblew99
closed this
Jan 17, 2016
This comment has been minimized.
This comment has been minimized.
|
I just read also that i can use the https://github.com/prometheus/pushgateway to send from the NAT network into the data center. Sounds like this also fits my use case ? |
joeblew99
reopened this
Jan 17, 2016
This comment has been minimized.
This comment has been minimized.
|
It's not advised to use the PushGateway in that manner, it's meant for batch jobs. The main issue you'd run into would be metrics hanging around for things that no longer exist. |
This comment has been minimized.
This comment has been minimized.
zeroware
commented
Jan 20, 2016
|
We used OpenVPN to pull metrics from network behind NAT / Firewall. |
This comment has been minimized.
This comment has been minimized.
|
Hey all - thanks for the though advice. For sure openvpn will do the job. I just can use one because all the sites are wrapped in one already, that we don't control. This is an IOT style environment. I am thinking of trying the weave golang code. It creates mesh networks in data centres and between them. I need to try it I guess. Regarding the batch aspect of the push gateway. Ok good to know. |
This comment has been minimized.
This comment has been minimized.
|
That would be the perfect reason to have a Prometheus running at each site, so that you still have monitoring when the network is down. The pushgateway will not let you workaround network outages. |
This comment has been minimized.
This comment has been minimized.
|
Thanks ! But the push gateway will pick up where it off, once the network Also I had some nasty experiences with message ordering on another system , On Thu, 21 Jan 2016, 19:33 Brian Brazil notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
The pushgateway only remember the most recent value for a metric. Depending on how you've done things, this may or not be okay. |
This comment has been minimized.
This comment has been minimized.
|
On Jan 21, 2016 7:42 PM, "jow blew" notifications@github.com wrote:
Two misconceptions here, I think. The pushgateway does not batch metrics or samples, it only holds the The other is messages. Prometheus does not deal in these at all. Instead, Prometheus if not suited for tracking one-off events. /MR |
This comment has been minimized.
This comment has been minimized.
|
Ok I am getting that it's basically upping counters and it pushes the counter, not the raw data ?? |
This comment has been minimized.
This comment has been minimized.
|
The push is from your application to the gateway. Prometheus still only There is no "raw data" in this model, only sampled monotonically increasing /MR On Thu, Jan 21, 2016 at 7:45 PM, jow blew notifications@github.com wrote:
Matthias Rampke SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany | +49 173 |
This comment has been minimized.
This comment has been minimized.
|
Got it ta. So the reason I need both is this. Basically the raw data is very high frequency. But its also very nice to be able to deliver faw data to the data Center and do aggregation there too. Maybe a separate "channel" can be used for that ? The reason is to do with energy and network bandwidth. Some sites you have lots of energy and crappy bandwidth, and so counters are perfect. |
This comment has been minimized.
This comment has been minimized.
|
You can configure the scrape frequency on a job-by-job basis. Federation is On Thu, Jan 21, 2016 at 7:54 PM, jow blew notifications@github.com wrote:
Matthias Rampke SoundCloud Ltd. | Rheinsberger Str. 76/77, 10115 Berlin, Germany | +49 173 |
This comment has been minimized.
This comment has been minimized.
|
Thanks again. I will do off and find more info on federation patterns. |
joeblew99
closed this
Jan 21, 2016
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 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. |
joeblew99 commentedJan 16, 2016
I have lots of devices that are on NAT networks, and mostly behind VPN.
As I understand it Prometheus is designed around a pull model, which means the server will not be able to reach my devices.
I really want to use Prometheus because its proven itself many times to be awesome, compared to other solutions s, but I am stuck due to the pull model.
Does anyone have any suggestions ?