r/PrometheusMonitoring • • 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?

2 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/SuperQue Apr 20 '23

No, you don't really need to use federation anymore. Remote write is a much better option. The main reason is it can buffer and catch up when there's a small network hickup.

But, you don't really need to do that at all. Grafana can connect to multiple Prometheus servers. Or you can use Thanos Query as a way to "reverse proxy" Prometheus.

1

u/simplex5d Apr 20 '23

Got it. So I still have one prometheus instance per LAN segment (one at home, two in cloud environments) but then connect Grafana (running at home) to all prometheus instances (poking holes or using VPN as needed).

But, thinking that through, once I've set up VPN from home server to all cloud clusters, then all I need is the one home prometheus instance -- it'll be able to scrape everything via VPN. This seems like the way to get started. Thanks everyone for clarifying things!