-
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
Perf/metrics #3634
Perf/metrics #3634
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov Report
@@ Coverage Diff @@
## master #3634 +/- ##
==========================================
- Coverage 81.03% 77.64% -3.40%
==========================================
Files 427 427
Lines 31962 31954 -8
==========================================
- Hits 25901 24810 -1091
- Misses 6061 7144 +1083
Continue to review full report at Codecov.
|
c93bd59
to
57afc49
Compare
This comment was marked as outdated.
This comment was marked as outdated.
57afc49
to
a7453fa
Compare
This comment was marked as outdated.
This comment was marked as outdated.
a7453fa
to
660f4dd
Compare
small_tests_24 / small_tests / 660f4dd small_tests_23 / small_tests / 660f4dd dynamic_domains_pgsql_mnesia_23 / pgsql_mnesia / 660f4dd dynamic_domains_pgsql_mnesia_24 / pgsql_mnesia / 660f4dd dynamic_domains_mysql_redis_24 / mysql_redis / 660f4dd dynamic_domains_mssql_mnesia_24 / odbc_mssql_mnesia / 660f4dd ldap_mnesia_24 / ldap_mnesia / 660f4dd ldap_mnesia_23 / ldap_mnesia / 660f4dd internal_mnesia_24 / internal_mnesia / 660f4dd pgsql_mnesia_24 / pgsql_mnesia / 660f4dd elasticsearch_and_cassandra_24 / elasticsearch_and_cassandra_mnesia / 660f4dd mssql_mnesia_24 / odbc_mssql_mnesia / 660f4dd pgsql_mnesia_23 / pgsql_mnesia / 660f4dd mysql_redis_24 / mysql_redis / 660f4dd riak_mnesia_24 / riak_mnesia / 660f4dd |
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 ok to me 👍
As mentioned in slack, updating metrics is sanitising the host type name every single time, even, when metrics have been configured as global and the host type won’t be used for its name. So here we first don't even try to find out the prefix if after all we're using global, and then we precompute the prefixes in the config processing callback and simply fetch them.