Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore monitoring of some requests #41

Open
Laykou opened this issue Jun 10, 2022 · 5 comments
Open

Ignore monitoring of some requests #41

Laykou opened this issue Jun 10, 2022 · 5 comments

Comments

@Laykou
Copy link

Laykou commented Jun 10, 2022

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
Copy link
Owner

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
Copy link

ekampp commented Jul 26, 2023

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

@Laykou
Copy link
Author

Laykou commented Jul 26, 2023

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

@igorkasyanchuk
Copy link
Owner

@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
Copy link

ekampp commented Jul 27, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants