-
Notifications
You must be signed in to change notification settings - Fork 421
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
Metrics per host type #3120
Metrics per host type #3120
Conversation
354047f
to
085d090
Compare
085d090
to
3d828ec
Compare
The testcase could fail if the common_test init process died too early and the port was closed. It did not manifest in our CI, but I noticed it during developement.
"Failing the test due to failed rerun groups" will not be printed everytime now.
75ceff5
to
4b829e6
Compare
Codecov Report
@@ Coverage Diff @@
## master #3120 +/- ##
==========================================
+ Coverage 79.46% 79.48% +0.01%
==========================================
Files 395 395
Lines 32168 32189 +21
==========================================
+ Hits 25563 25584 +21
Misses 6605 6605
Continue to review full report at Codecov.
|
4b829e6
to
7dd253d
Compare
7dd253d
to
f93e92d
Compare
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.
All seems good to me, but I'm not confident about merging this one, yet, so maybe let's see about more opinions @chrzaszcz @DenysGonchar
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.
Looks good, mostly minor comments from me. Some hooks needs fixing soon as they are not converted to host types yet.
I would like to see a test suite for metrics added to dynamic_domains.spec
. Would it be possible to do it now or not yet?
Co-authored-by: Paweł Chrząszcz <pawel.chrzaszcz@erlang-solutions.com>
|
are you sure that the config provided to |
This PR updates the metrics to use host types instead of hosts. There are still some places left that use host types and should be updated when the modules are updated (for example
mongoose_wpool_rdbms
).Because the host type may be any string, the spaces
" "
are changed to underscores"_"
in the metrics modules in a simple manner on every call. Because of that, when calling functions likemongoose_metrics:get_metric_value/1
, which expect the metric name, one has to provide a sanitized name - this is not needed when calling the metrics API expecting host types.There are also some small fixes, like a bugfix for a test suite that occurred seemingly only on my computer, and getting rid of the "Failing the test due failed rerun groups" message that was printed even if the tests were successful.