4 ms·
What's a good alternative to Prometheus when pulling stats is impractical? Say I want to monitor a personal laptop like I would a server. It will change network
by bacondude3 6y ago
What's a good alternative to Prometheus when pulling stats is impractical? Say I want to monitor a personal laptop like I would a server. It will change networks and IP addresses, so pulling would be impractical to configure, whereas the laptop could easily(?) push its stats to a remote server.
- cortesoft 6y agoUse a push gateway?
- bvrmn 6y agoYou can use push approach. Like graphite. Grafana has excellent support of graphite queries. Also graphite has low-footprint implementation https://github.com/baverman/hisser https://github.com/baverman/hisser
- molecule 6y agoTelegraf + InfluxDB?
- abhishekjha 6y agoThis is my setup on all my raspberrypis. I have not be been able to figure out how to monitor a cluster though. I saw that grafana free tier doesn’t allow a cluster of servers getting monitored. I have telegraf + influxdb + grafana installed on all my servers.
- michaelmcdonald 6y agoCould you expand on what you mean by: > grafana free tier doesn’t allow a cluster of servers getting monitored. Is there a particular aspect of the cluster you're missing? Is it that you don't want individual server metrics?
- abhishekjha 6y agoI have telegraf + influxdb + grafana-server installed on each of my Rpis giving me multiple dashboards. I want only one grafana-server dashboard where all the telegraf metrics could be seen.
- valyala 6y agovmagent + victoriametrics :)
- MetalMatze 6y agoPrometheus supports writing (replicating) data to a remote endpoint on a per scrape basis with a protocol called remote-write. You can pretty easily set that up on any Prometheus instance. There are quite some implementations to receive those remote-write requests: https://prometheus.io/docs/operating/integrations/#remote-endpoints-and-storage https://prometheus.io/docs/operating/integrations/#remote-en... You're probably exactly looking for something like that. In fact, I've given a talk about a similar scenario at the KubeCon San Diego: https://www.youtube.com/watch?v=FrcfxkbJH20 https://www.youtube.com/watch?v=FrcfxkbJH20 Disclosure: I work on Thanos and Thanos Receiver which implements that protocol.
- bacondude3 6y agoOh, I had no idea about that. Thanks!
- cassianoleal 6y agoI've been using ZeroTier [0] so whenever my laptop is online, it's also accessible by Prometheus so it can be scraped. I run ZeroTier in a container on my router, and on each "road warrior" that needs LAN access (laptop, phone...). The caveat is that I have no metrics when the laptop is offline but that doesn't happen very often anyway. [0] https://www.zerotier.com/ https://www.zerotier.com/
- bacondude3 6y agoThat looks like a really cool solution. Thanks for the suggestion!
- valyala 6y agoYou can run lightweight vmagent [1] on your laptop. The vmagent collects all the metrics from your laptop and then sends them to remote storage when connection to the remote storage is available. It can send data to any remote storage system that support Prometheus remote_write protocol [2]. [1] https://victoriametrics.github.io/vmagent.html https://victoriametrics.github.io/vmagent.html [2] https://prometheus.io/docs/operating/integrations/#remote-endpoints-and-storage https://prometheus.io/docs/operating/integrations/#remote-en...
- bacondude3 6y agoThat looks like a really promising solution. Thanks!
- ncrmro 6y agoIf you use wireguard you can tell Prometheus to scrape your ip on the wireguard network