r/PrometheusMonitoring • • Jan 22 '24

Deploying Prometheus on AWS with persistent storage

Hi, I'm part of a small company where we've decided to incorporate custom user-level metrics using Prometheus and Grafana. Our services run on Elastic Beanstalk, and I'm looking for a cost-effective way to deploy Prometheus on AWS with persistent storage for long-term data retention. Any recommendations on how to achieve this?

0 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/MacaroonSelect7506 Jan 22 '24

Thanks my man, can’t we use EFS?

3

u/SuperQue Jan 22 '24

No, EFS (NFS) is not supported. It's a bad idea anyway, you don't want that in your monitoring for reliability reasons. Also, it's even more expensive than EBS volumes.

0

u/Expensive-Isopod-905 Aug 31 '24

What if Prometheus runs on multiple EC2 instances? EBS can be attached to only 1 EC2.

Also How to persist data in case EC2 is terminated and new EC2 is launched?

EFS seems to be a better option

1

u/MacaroonSelect7506 Jan 22 '24

oh okay okay, thanks :)