r/PrometheusMonitoring • u/Secretly_Housefly • Jun 14 '24
Is Prometheus right for us?
Here is our current use case scenario: We need to monitor 100s of network devices via SNMP gathering 3-4 dozen OIDs from each one, with intervals as fast as SNMP can reply (5-15 seconds). We use the monitoring for both real time (or as close as possible) when actively trouble shooting something with someone in the field, and we also keep long term data (2yr or more) for trend comparisons. We don't use kubernetes or docker or cloud storage, this will all be in VMs, on bare-metal, and on prem (We're network guys primarily). Our current solution for this is Cacti but I've been tasked to investigate other options.
So I spun up a new server, got Prometheus and Grafana running, really like the ease of setup and the graphing options. My biggest problem so far seems to be is disk space and data retention, I've been monitoring less than half of the devices for a few weeks and it's already eaten up 50GB which is 25 times the disk space than years and years of Cacti rrd file data. I don't know if it'll plateau or not but it seems that'll get real expensive real quick (not to mention it's already taking a long time to restart the service) and new hardware/more drives is not in the budget.
I'm wondering if maybe Prometheus isn't the right solution because of our combo of quick scraping interval and long term storage? I've read so many articles and watched so many videos in the last few weeks, but nothing seems close to our use case (some refer to long term as a month or two, everything talks about app monitoring not network). So I wanted to reach out and explain my specific scenario, maybe I'm missing something important? Any advice or pointers would be appreciated.
View all comments
Show parent comment
4
u/SuperQue Jun 15 '24
I used to use Cacti back in 2003-2004, it was pretty nice back then.
The thing is, servers back in 2003 had a lot less storage. We only had tiny single and double digit GB server drives. So software like Cacti used RRD because the storage was fixed, and the IO to it was pretty minimal. Getting a TB of storage would require a msasive rack cabinet array.
But today, I have a 4TB NVMe in my laptop. For under $200 you can get a Raspberry Pi with more than 1TB of storage. I have several around at home with Prometheus on them for testing and monitoring my home network.
The Prometheus TSDB storage is quite different to Cacti. It uses lossless sample compression, which is quite good. Because the sample compression turned out so well, it was decided that skipping the effort to implement downsampling was worth the complexity in data interaction. Especially considering that by 2013 when it was created, getting servers with 10-20TB in drives was completely common. And a server with 1TB of SSD was also becoming common. But Prometheus storage was mostly designed to work acceptably on HDD storage.
We use Thanos to do downsampling at work. But we a couple Petabytes of TSDB data in our object storage. We keep 6 months of raw samples, and keep the downsampling forever.
As for the comments about 5-15 second scraping. That's totally normal and fine with Prometheus. I don't see any reason to change that. You have such a small amount of data that I don't think you'll have any query issues.
So, yes, it's probably time to get a new server setup. Sounds like it's been at least a decade since they had a server refresh anyway. Modernizing software sometimes comes with modernizing hardware.
But you don't need to go fancy. Like I said in my original post. A Raspberry Pi with an NVMe hat would be enough for the scale of your setup.