Commit Graph

295 Commits

Author SHA1 Message Date
Thales Macedo Garitezi 0333e6f860
Merge pull request #8027 from thalesmg/telemetry-uuid-file
feat(telemetry): save uuids to files
2022-05-24 16:55:09 -03:00
Thales Macedo Garitezi 4afb4d9dd8
feat(telemetry): save uuids to files
In order for the node and cluster UUIDs used by telemetry to survive
database purges, we'll save the generated UUIDs to files in EMQX's
data directory as well.
2022-05-24 09:32:04 -03:00
ieQu1 9474241ad9 fix(emqx_telemetry): Async start of telemetry module 2022-05-24 11:28:35 +02:00
Thales Macedo Garitezi e0a6ebbd56
fix(telemetry): use the live connection count instead of max conns 2022-05-13 09:02:15 -03:00
Zhongwen Deng f0cb72dda6 fix: telemetry can't get active plugins list 2022-05-12 11:18:44 +08:00
Thales Macedo Garitezi 47ed9cbc76
fix(telemetry): count bridges referenced in `from` rule clauses 2022-05-11 15:15:17 -03:00
Thales Macedo Garitezi 9e706fc76d
feat(telemetry): count advanced mqtt feature usage
Originally, we wanted to just check if certain features were enabled.
Now, we want to count certain usage metrics for them.
2022-05-11 15:15:17 -03:00
Shawn 0c8a7e751f fix(test): clear emqx_cluster_rpc mnesia table at the end of the suite 2022-04-29 18:53:01 +08:00
Shawn ef0e6d7fd8 fix(test): ensure the test node removed from the ekka cluster 2022-04-29 16:43:51 +08:00
Shawn 1393ab677d fix(test): race condition in emqx_telemetry_SUITE 2022-04-29 16:43:51 +08:00
JianBo He 2dded74584
Merge pull request #7716 from lafirest/fix/delayed_disable_action
fix(delayed): unify and optimize the enable/disable codes
2022-04-28 09:39:41 +08:00
firest 3429eaabcd test(delayed): add enable/disable test for delayed 2022-04-27 13:52:42 +08:00
Thales Macedo Garitezi f8f97d39d3
Merge pull request #7766 from thalesmg/bugfix-telemetry-bridge
fix: avoid crashing telemetry if bridge app is not ready
2022-04-26 09:03:29 -03:00
firest fc391c7b9e fix(delayed): unify and optimize the enable/disable codes 2022-04-26 15:26:40 +08:00
Thales Macedo Garitezi 727bc712e6
fix(telemetry): avoid hanging emqx_modules_app init with request 2022-04-25 11:54:01 -03:00
Zaiming (Stone) Shi d6b3ecf75e fix(telemetry): add verify_none ssl option
To stop the "Authenticity is not established by certificate path
validation", Reason: "Option {verify, verify_peer} and
cacertfile/cacerts is missing" warning message
2022-04-25 09:56:15 +02:00
Zaiming (Stone) Shi c32fc33c1a style: cosmetic fix for code style 2022-04-23 09:48:58 +02:00
DDDHuang 575d34cb69
Merge pull request #7724 from DDDHuang/tm_t_api_desc
fix: telemetry & topic metrics support i18n
2022-04-22 22:02:13 +08:00
JianBo He 92e010b652
Merge pull request #7727 from HJianBo/text-improve
chore: improve error message
2022-04-22 21:55:31 +08:00
Thales Macedo Garitezi 14d80c7c46
Merge pull request #7692 from thalesmg/bugfix-telemetry-enable-official
feat(telemetry): enable/disable even in non-official versions
2022-04-22 10:16:40 -03:00
JianBo He 239f159306 chore: improve error message 2022-04-22 17:08:18 +08:00
DDDHuang de7c15dd19 fix: telemetry & topic metrics support i18n 2022-04-22 16:34:06 +08:00
ieQu1 f0455b32f8 chore(schema): Fix grammar 2022-04-21 23:41:06 +02:00
JianBo He d6a9072bb0 chore: make spellcheck happy 2022-04-21 21:19:24 +08:00
Thales Macedo Garitezi 6e819b5ecb
feat(telemetry): enable/disable even in non-official versions
- Makes telemetry enabled by default on official versions.
- Allow enabling/disabling telemetry even on non-official versions.
2022-04-20 07:42:03 -03:00
Thales Macedo Garitezi 097b38e418
Merge pull request #7678 from thalesmg/fix-flaky-prop-and-test
Fix flaky tests and properties
2022-04-20 07:41:24 -03:00
lafirest 758c115556
Merge pull request #7671 from lafirest/feat/chinese_desc_api_delayed
feat(delayed): add i18n support
2022-04-20 17:42:30 +08:00
Thales Macedo Garitezi ec1ff14759
fix(test): fix flaky test node setup 2022-04-20 05:05:48 -03:00
Thales Macedo Garitezi ac7a13f9f2
fix(test): fix flaky property 2022-04-20 05:05:48 -03:00
Thales Macedo Garitezi f5dea51e24
Merge pull request #7614 from thalesmg/telemetry-cluster-uuid
feat(telemetry): add cluster uuid
2022-04-19 09:06:11 -03:00
firest d02ac812e6 feat(delayed): add i18n support for delayed 2022-04-19 18:21:52 +08:00
DDDHuang 39d3d6a3d3 fix: auto sub & banned & topics rewrite, add required 2022-04-19 17:08:19 +08:00
DDDHuang 330e302a7c fix: better atom name 2022-04-19 11:28:50 +08:00
DDDHuang f47f5db521 fix: prometheus & statsd & topic rewrite docs 2022-04-19 10:55:37 +08:00
DDDHuang 82ce6ae9f9 fix: bad integer, bad qos; TODO: gateway api * 2 2022-04-16 16:37:10 +08:00
DDDHuang e22d01d25f fix: page & limit & pool_size pos_integer; some bad spelling 2022-04-16 16:37:10 +08:00
Thales Macedo Garitezi 1c71237abe
feat(telemetry): add cluster uuid 2022-04-13 11:48:37 -03:00
Thales Macedo Garitezi 6eed6e45c2
feat(telemetry): report basic exhook usage 2022-04-07 13:52:28 -03:00
Thales Macedo Garitezi 0aa3597736
feat(telemetry): report basic rule and bridge info 2022-04-06 10:20:23 -03:00
Thales Macedo Garitezi 8431aecf9b
Merge pull request #7515 from thalesmg/telemetry-revamp-part4
feat(telemetry): add gateway info to reported data
2022-04-05 15:58:45 -03:00
Dmitrii 20f66664d7
Merge pull request #7478 from ieQu1/doc-schema-7
docs(schema): Add descriptions of fields and records
2022-04-05 14:21:07 +02:00
ieQu1 8df76da9ac chore(formatting): Fix formatting of modules, authz and authn 2022-04-05 11:01:53 +02:00
ieQu1 99b3f2f83e docs(schema): Document missing records and fields 2022-04-04 23:58:43 +02:00
Ilya Averyanov f4e4331556 chore(emqx_mangement): improve emqx_mgmt_api_nodes coverage 2022-04-04 23:39:53 +03:00
Thales Macedo Garitezi af4ad5721f
feat(telemetry): add gateway info to reported data 2022-04-04 15:21:02 -03:00
Ilya Averyanov 8f0497c441 chore(emqx_modules): add tests and refactor
* improve `emqx_rewrite_api` coverage
* improve `emqx_telemetry_api` coverage
* refactor `emqx_telemetry` to use config clustering for settings
2022-04-04 18:16:07 +03:00
Zaiming (Stone) Shi 5080c17ad6
Merge pull request #7512 from zmstone/0404-5.0-add-test-coverage-for-observer-cli
test: add test coverage for emqx_observer_cli
2022-04-04 13:47:05 +01:00
Zaiming (Stone) Shi c24d61efcd test: add test coverage for emqx_observer_cli 2022-04-04 11:57:33 +02:00
Thales Macedo Garitezi c0d2243e72
refactor(telemetry): move authn/authz info fns to their own apps 2022-04-01 09:27:52 -03:00
Thales Macedo Garitezi b07b705621
feat(telemetry): add authn and authz info to telemetry data 2022-04-01 09:24:51 -03:00
Thales Macedo Garitezi 8513580f5a
fix: use api for setting advanced mqtt features in use 2022-04-01 09:23:41 -03:00
JianBo He 8500200e81 Merge remote-tracking branch 'ce/master' into fmt-gw 2022-04-01 09:52:12 +08:00
Ilya Averyanov 8f5812e61f
Merge pull request #7479 from savonarola/emqx_topic_metrics-cov
chore(emqx_modules): improve emqx_topic_metrics coverage
2022-03-31 23:15:35 +03:00
Ilya Averyanov ce437ac5b2 chore(emqx_modules): improve emqx_delayed coverage 2022-03-31 20:29:46 +03:00
Ilya Averyanov 12f6b8fab0 chore(emqx_modules): improve emqx_delayed_api coverage 2022-03-31 18:44:29 +03:00
Ilya Averyanov f34fce7c70 chore(emqx_modules): improve emqx_topic_metrics coverage 2022-03-31 14:29:42 +03:00
JianBo He f2168f5b0d style(modules): reformat emqx_modules appplication 2022-03-31 17:41:43 +08:00
Ilya Averyanov a6031d6695
Merge pull request #7464 from savonarola/emqx_topic_metrics_api-cov
chore(emqx_modules): add emqx_topic_metrics_api tests
2022-03-31 11:27:58 +03:00
Ilya Averyanov 0728b1e3f4 chore(emqx_modules): add emqx_topic_metrics_api tests 2022-03-30 21:18:27 +03:00
ieQu1 d8e16b37da docs(schema): Add documentation for the fields and records 2022-03-30 11:53:53 +02:00
lafirest 55516364ae
Merge pull request #7444 from lafirest/test/delayed_api
test(delayed): add test case for emqx_delayed_api
2022-03-30 09:53:06 +08:00
firest 410bc8005e test(delayed): add test case for emqx_delayed_api 2022-03-29 17:23:00 +08:00
Ilya Averyanov f85fc98b39 fix(emqx_telemety): use total_memory memsup key 2022-03-29 11:56:50 +03:00
Thales Macedo Garitezi 7b6a71c117
Merge pull request #7369 from thalesmg/telemetry-revamp-part2
Telemetry revamp part2
2022-03-28 09:03:45 -03:00
Thales Macedo Garitezi 105ec5104a
fix: set own app environment and expose convenient api
... for accessing advanced mqtt features in use.
2022-03-25 10:12:50 -03:00
JianBo He 7f1082a0bb chore: make xref happy 2022-03-25 11:20:18 +08:00
JianBo He ec0c698914 refactor: remove event_messages mod 2022-03-25 10:20:11 +08:00
Thales Macedo Garitezi a310d2390e
Merge pull request #7381 from thalesmg/fix-telemetry-mac-symlink
fix(test): use a real copy of BUILD_INFO for testing
2022-03-24 09:04:28 -03:00
Thales Macedo Garitezi d312bc0f28
feat: add advanced mqtt features to telemetry 2022-03-23 14:05:04 -03:00
Thales Macedo Garitezi 7e3b9bb356
fix(test): use a real copy of BUILD_INFO for testing
On macOS, apparently symlinks can cause problems when rebar3 tries to
copy files to the `_build` directory.  So we now use a copy of
`rel/BUILD_INFO`.  Unfortunately, this has the downside of this copy
possibly going stale over time.
2022-03-23 13:29:11 -03:00
JianBo He 617022f276
Merge pull request #7372 from lafirest/fix/coap_events
fix(coap): trigger disconnect logic when the client manually disconne…
2022-03-23 19:36:23 +08:00
firest ab51d8ab8e fix(coap): trigger disconnect logic when the client manually disconnected 2022-03-23 14:19:00 +08:00
ieQu1 6f4e7dc118 docs(schema): Formatting 2022-03-22 20:19:18 +01:00
Thales Macedo Garitezi fbfbaa8a9a
test: add more tests to telemetry 2022-03-22 15:28:42 -03:00
Thales Macedo Garitezi 35a523230f
feat: add mqtt runtime insights to telemetry data 2022-03-22 15:28:19 -03:00
ieQu1 c6b0e8806f docs(schema): Add descriptions to the schema 2022-03-22 19:09:20 +01:00
Thales Macedo Garitezi 4d3157743e
style: format `emqx_modules` 2022-03-22 09:31:55 -03:00
Thales Macedo Garitezi 7ec6947c02
fix: add http timeout to prevent hanging 2022-03-21 14:24:40 -03:00
Thales Macedo Garitezi bf82b2d45c
style: fix typo 2022-03-21 14:24:40 -03:00
Thales Macedo Garitezi e8682a1107
feat: add build info and vm specs to telemetry 2022-03-21 14:24:40 -03:00
Thales Macedo Garitezi 5b49f3eee8
chore: rm `active_modules` 2022-03-21 14:24:40 -03:00
Thales Macedo Garitezi 98f950881f
chore: drop `mnesia(boot)`, create tables on start up 2022-03-21 14:24:40 -03:00
Zhongwen Deng df6141e4b8 test: fix plugin ct failed 2022-03-21 17:56:22 +08:00
lafirest d231b2222e
Merge pull request #7328 from lafirest/fix/delayed_lookup
fix(delayed): make it possible to lookup/delete other node's delayed …
2022-03-18 00:53:53 +08:00
firest 3fc4236565 fix(delayed): make it possible to lookup/delete other node's delayed message 2022-03-17 14:36:55 +08:00
firest 43a935286a fix(delayed): cancel the publish timer when terminate 2022-03-16 17:51:29 +08:00
lafirest 1a8288de75 fix(delayed): fix code style error 2022-03-11 11:32:25 +08:00
lafirest eeb92dae23 fix(delayed): fix that the query is not a cluster query 2022-03-11 10:54:11 +08:00
lafirest 2b2104851a fix(rewrite): fix config update maybe not work 2022-03-10 16:31:44 +08:00
Zhongwen Deng 512a5c3b8e fix: elvis warning 2022-03-08 14:50:10 +08:00
Zhongwen Deng 1244391cb7 fix: alarm crash when safe_publish not ready. Filter out unnecessary APIs 2022-03-08 14:14:54 +08:00
zhongwencool 2d9a086bbb
Merge pull request #7198 from zhongwencool/emqx-conf-ct-coverage
chore: add more test for emqx_config_handler
2022-03-08 10:04:02 +08:00
Zhongwen Deng 9b00f2756b feat: Make sure that Specify Key and ?WKEY cannot be on the same level. 2022-03-07 21:48:31 +08:00
Zhongwen Deng e2f386383d fix: replace local ref by remote ref 2022-03-04 09:13:56 +08:00
Zhongwen Deng 71d20d153b fix: replace deep_merge with merge. 2022-03-03 22:52:46 +08:00
firest df2da949f1 fix(emqx_rewrite): fix config update not work in cluster 2022-03-01 23:11:21 +08:00
lafirest 24cba8efa1 fix(emqx_event_message): fix config update not work in cluster 2022-03-01 15:08:21 +08:00
JimMoen d82a5544da fix: topic_metrics example 2022-02-28 11:38:18 +08:00
DDDHuang 0e3310f1cf fix: remove bindings params url decode (url decode by minirest) 2022-02-28 11:13:23 +08:00
zhongwencool 13a0eff678
Merge pull request #7125 from zhongwencool/schema-json
feat: generate hot config's schema.json and remove nullable option.
2022-02-25 17:18:20 +08:00