-
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
Instrument: global probes and counters #4317
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
aa72216
to
215dbd3
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## feature/instrument #4317 +/- ##
======================================================
- Coverage 84.39% 76.16% -8.24%
======================================================
Files 553 554 +1
Lines 33874 33856 -18
======================================================
- Hits 28587 25785 -2802
- Misses 5287 8071 +2784 ☔ View full report in Codecov by Sentry. |
215dbd3
to
14a3494
Compare
This comment was marked as outdated.
This comment was marked as outdated.
14a3494
to
0d16732
Compare
This comment was marked as outdated.
This comment was marked as outdated.
0d16732
to
dd04e5c
Compare
This comment was marked as outdated.
This comment was marked as outdated.
dd04e5c
to
a9882a2
Compare
This comment was marked as outdated.
This comment was marked as outdated.
a9882a2
to
bff258b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
bff258b
to
254a8d2
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
15f2410
to
4d3c3d4
Compare
This comment was marked as outdated.
This comment was marked as outdated.
4d3c3d4
to
6e6440b
Compare
This comment was marked as outdated.
This comment was marked as outdated.
6e6440b
to
abd9e92
Compare
This comment was marked as outdated.
This comment was marked as outdated.
abd9e92
to
63c0ea2
Compare
This comment was marked as outdated.
This comment was marked as outdated.
63c0ea2
to
2fa0af6
Compare
This comment was marked as outdated.
This comment was marked as outdated.
2fa0af6
to
709e7a0
Compare
This comment was marked as outdated.
This comment was marked as outdated.
709e7a0
to
0d5073c
Compare
This comment was marked as outdated.
This comment was marked as outdated.
0d5073c
to
6b6dc1a
Compare
elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / 6b6dc1a small_tests_25 / small_tests / 6b6dc1a small_tests_26 / small_tests / 6b6dc1a small_tests_26_arm64 / small_tests / 6b6dc1a ldap_mnesia_26 / ldap_mnesia / 6b6dc1a internal_mnesia_26 / internal_mnesia / 6b6dc1a dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / 6b6dc1a dynamic_domains_mysql_redis_26 / mysql_redis / 6b6dc1a dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 6b6dc1a pgsql_cets_26 / pgsql_cets / 6b6dc1a pgsql_mnesia_25 / pgsql_mnesia / 6b6dc1a ldap_mnesia_25 / ldap_mnesia / 6b6dc1a mysql_redis_26 / mysql_redis / 6b6dc1a mssql_mnesia_26 / odbc_mssql_mnesia / 6b6dc1a pgsql_mnesia_26 / pgsql_mnesia / 6b6dc1a dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / 6b6dc1a |
Included probes: - Mnesia and system - moved from mongoose_metrics
- Add start/stop calls - Start/stop CETS and Mnesia probes in mongoose_internal_databases
It is started by mongoose_system_probes now
This Graphite mock expected packets preceded by their length, while the Graphite text protocol uses text delimited by newlines. As a result, mongooseim_metrics_SUITE could take up to a minute to execute, because the first bytes were interpreted as packet length.
Remove metric tests, which are now replaced by events checked in big tests.
Not all possible gagues were checked, because they will be tested in system_probes_SUITE.
- Remove instrument_cets_SUITE
6b6dc1a
to
5c7ea1c
Compare
elasticsearch_and_cassandra_26 / elasticsearch_and_cassandra_mnesia / 5c7ea1c small_tests_25 / small_tests / 5c7ea1c small_tests_26 / small_tests / 5c7ea1c small_tests_26_arm64 / small_tests / 5c7ea1c ldap_mnesia_25 / ldap_mnesia / 5c7ea1c dynamic_domains_mysql_redis_26 / mysql_redis / 5c7ea1c ldap_mnesia_26 / ldap_mnesia / 5c7ea1c dynamic_domains_pgsql_mnesia_25 / pgsql_mnesia / 5c7ea1c dynamic_domains_pgsql_mnesia_26 / pgsql_mnesia / 5c7ea1c internal_mnesia_26 / internal_mnesia / 5c7ea1c pubsub_SUITE:dag+node_config:send_last_published_item_test{error,{{badmatch,false},
[{pubsub_tools,check_response,2,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,444}]},
{pubsub_tools,receive_response,3,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,434}]},
{pubsub_tools,receive_and_check_response,4,
[{file,"/home/circleci/project/big_tests/tests/pubsub_tools.erl"},
{line,424}]},
{escalus_story,story,4,
[{file,"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_story.erl"},
{line,72}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1793}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1302}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1234}]}]}} pgsql_cets_26 / pgsql_cets / 5c7ea1c connect_SUITE:just_tls:starttls_required:starttls_required_parallel:cannot_connect_with_proxy_header{error,
{thrown,
{{timeout,stream_end},
[{escalus_connection,get_stream_end,2,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,369}]},
{escalus_connection,end_stream,1,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,507}]},
{escalus_connection,stop,1,
[{file,
"/home/circleci/project/big_tests/_build/default/lib/escalus/src/escalus_connection.erl"},
{line,407}]},
{test_server,ts_tc,3,[{file,"test_server.erl"},{line,1793}]},
{test_server,run_test_case_eval1,6,
[{file,"test_server.erl"},{line,1302}]},
{test_server,run_test_case_eval,9,
[{file,"test_server.erl"},{line,1234}]}]}}} dynamic_domains_mssql_mnesia_26 / odbc_mssql_mnesia / 5c7ea1c pgsql_mnesia_25 / pgsql_mnesia / 5c7ea1c mysql_redis_26 / mysql_redis / 5c7ea1c pgsql_mnesia_26 / pgsql_mnesia / 5c7ea1c mssql_mnesia_26 / odbc_mssql_mnesia / 5c7ea1c internal_mnesia_26 / internal_mnesia / 5c7ea1c pgsql_cets_26 / pgsql_cets / 5c7ea1c |
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.
Thanks for the changes! The new tests look excellent, and I appreciate the simplification of the GraphQL types. Everything looks good to me 👍
Put system-wide instrumentation probes in
mongoose_system_probes
.The affected probes include:
system_up_time
,system_process_queue_lengths
,system_info
,system_memory
,system_dist_data
. They are moved frommongoose_metrics
.system_memory
contains all stats fromerlang:memory()
.system_process_queue_lengths
used to take into consideration thep1_fsm_old
queues, which are not used anymore. Although one could collect internalgen_statem
event queue data, it would be a complex task, and it might decrease system performance.cets_info
andmnesia_info
are set up withmongoose_system_probes
, although their configuration and implementation is inmongoose_internal_databases
.cets_info
, it is further delegated tomongoose_instrument_probe_cets
. I didn't do the same for Mnesia, because the Mnesia probe is very simple.mnesia_info
,db_nodes
is added torunning_db_nodes
(which used to be calledclusterSize
).Other changes:
mongoose_internal_databases
is refactored without any functional changes.carbon_cache_server
. This Graphite mock expected packets preceded by their length, while the Graphite text protocol uses text delimited by newlines. As a result, mongooseim_metrics_SUITE could take up to a minute toexecute, because the first bytes were interpreted as packet length, and the code was just waiting for more and more metrics.
test/mongooseim_metrics_SUITE.erl
with event checks inbig_tests/system_probes_SUITE.erl
.