igorkasyanchuk / rails_performance

Monitor performance of you Rails applications (self-hosted and free)
https://www.railsjazz.com/
MIT License
950 stars 53 forks source link

Ignore monitoring of some requests #41

Open Laykou opened 2 years ago

Laykou commented 2 years ago

We have /health_check requests which are being used by Docker Swarm to check if the container is healthy. We would like to ignore these requests in performance matrix. Is it possible to ignore certain requests based on URL or controller/action?

Thank you!

igorkasyanchuk commented 2 years ago

Hello @Laykou Unfortunately, there is no config to skip endpoints, but from what I think it should be relatively easy to add. Can you try to do it by youself? I can help with advice if needed.

ekampp commented 11 months ago

Would ignored_endpoints = ['HealthController#status'] work? This is documented in the readme.

Laykou commented 11 months ago

For now we put on-hold usage of this gem, so I cannot confirm on this anymore.

igorkasyanchuk commented 11 months ago

@ekampp actually as I see it's not documented in the readme https://github.com/search?q=repo%3Aigorkasyanchuk%2Frails_performance%20ignored_endpoints&type=code

who wants to double-check this feature and make a PR? :)

ekampp commented 11 months ago

My bad, you're right; it's not in the Readme. It shows up in the configuration file when running the generator.