-
Notifications
You must be signed in to change notification settings - Fork 428
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
Do not create nor update skipped hooks #573
Conversation
end), | ||
Reporters = get_reporters_cfg(Port), | ||
application:set_env(exometer, report, Reporters), | ||
PortServer = receive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this receive could be encapsulated inside the carbon_sever
module- ex. wait_wait_for_client or sth similar. Btw we can name it carbon_cache_server. Initially, I thought that it might have something to do with carbon copies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. I'll do that.
What about testing title's feature - skipped hooks? I see two ways of doing that, either extend carbon_server and make it understand metric reports or use meck to validate if "mongoose_metrics:update/2" has/hasn't been called. |
Done. Also I renamed the carbon_server and applied your suggestion. |
86c656b
to
cbe4144
Compare
…ment Do not create nor update skipped hooks
This PR prevents creating a spiral metric for skipped hook. Such metric is dangerous because it may have lot of (tens of thousands) updates in a minute which can lead to too long message inbox for process holding this metric and can crash
exometer_reporter
.Also, this PR adds some tests for metric subscriptions.