What is the usage of `averagingWindowSeconds` and `sampleRateSeconds` in the metrics API?

Hi there, I'd like to use the metrics API to understand the usage of my production deployment. I'm a little confused as what does the averagingWindowSeconds and sampleRateSeconds argument mean?
5 Replies
Percy
Percy2y ago
Project ID: 032aac44-311a-48b5-98a7-9ae8670c6762
Percy
Percy2y ago
You might find these helpful: - Metrics | Railway Docs
⚠️ experimental feature
Anshuman
Anshuman2y ago
032aac44-311a-48b5-98a7-9ae8670c6762
angelo
angelo2y ago
Hey there, can you link your account and tell us a bit more about your usecase? cc @Anshuman
Anshuman
Anshuman2y ago
Hi Angelo, sure. I want to detect any memory leaks before running out of my credits or shutting down project. It happened with me in the last project that node-cron created a memory leak, I want to check memory usage every 6 hours or so to ensure my application isn't going 2x-3x of it's usual memory usage.
Want results from more Discord servers?
Add your server