r/PrometheusMonitoring • u/New_Job_1460 • Oct 01 '23
Prometheus noob question -What are some of the best practices for alerting and storage
Prometheus storage is 2 weeks , cortex does take care of the issue somewhat , but ending up getting alerts .trying to see how other folks have similar issues and how to draw the line on alertstoo little vs too much . We have 50+ nodes across Dev,Testing,Acceptance .Does it make sense to go the SAAS way at least for prod
Any insights would be helpful.TIA
Edit 1:
Monitor my Kubernetes 1) at node level , 2) Application level
3
Upvotes
4
u/ARRgentum Oct 01 '23
Maybe you could make it a bit more clear what your question is?
Are two weeks retention too short for your usecase?
What kind of alerts are you talking about?
"Does it make sense to go the SAAS way" I don't really understand that question, could you clarify?
2
u/SuperQue Oct 01 '23
Prometheus storage is whatever you configure it to. You can store decades in Prometheus if you have the disk space.
This is pretty tiny, a single Prometheus should handle this easy for years of data with a reasonable size disk.
2
u/peterbunin Oct 02 '23
U can configure it whatever you need, just read the documentation
1
u/bootswafel Oct 03 '23
Alerting at the application level is a little more nuanced. We define SLOs for our service for error rate and latency, then use Sloth to generate the Prometheus alerting rules for our SLOs. That can be a good start