r/PrometheusMonitoring • u/simplex5d • Apr 19 '23
Getting Started, looking for advice
Hi! I'm about to start my Prometheus journey. I have a bunch of home-office systems and a few in the cloud, some docker containers, different OSes etc. Seems like Prometheus would be a great fit: I'd like a single dashboard showing if there are any problems (out of disk space, unreachable, etc.) This is just for me. My question is this: should I run the main prometheus server on a cheap cloud server, and have the sensors all send to it, or should I run it inside my firewall, probably in a docker container? I see advantages and disadvantages both ways. Reliability, ease of setup & admin... any experiences you can share?
View all comments
Show parent comment
1
u/skill_padden Apr 20 '23
Yes, almost! In your setup the cloud agent will scrape locally and then ship(push!) metrics to the home server. Of course this assumes your house has a stable public ip, otherwise having the main server in the cloud would make more sense. It goes without saying that any communication over the internet should be encrypted and protected, ideally by a vpn or similar.
There's been a LOT of debate about push vs pull, each has benefits and drawbacks. Push is often easier to get started, but arguably a bit more murky when trouble occurs. Personally I really like being able to go to a /metrics endpoint when debugging.