fix(topic metrics): export mandatory functions to support cluster calls (#4870)
This commit is contained in:
parent
82f762524a
commit
439c0d6fa8
|
@ -53,6 +53,12 @@
|
||||||
, unregister/2
|
, unregister/2
|
||||||
]).
|
]).
|
||||||
|
|
||||||
|
-export([ get_topic_metrics/2
|
||||||
|
, register_topic_metrics/2
|
||||||
|
, unregister_topic_metrics/2
|
||||||
|
, unregister_all_topic_metrics/1
|
||||||
|
]).
|
||||||
|
|
||||||
list(#{topic := Topic0}, _Params) ->
|
list(#{topic := Topic0}, _Params) ->
|
||||||
execute_when_enabled(fun() ->
|
execute_when_enabled(fun() ->
|
||||||
Topic = emqx_mgmt_util:urldecode(Topic0),
|
Topic = emqx_mgmt_util:urldecode(Topic0),
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{application, emqx_modules,
|
{application, emqx_modules,
|
||||||
[{description, "EMQ X Module Management"},
|
[{description, "EMQ X Module Management"},
|
||||||
{vsn, "4.3.1"},
|
{vsn, "4.3.2"},
|
||||||
{modules, []},
|
{modules, []},
|
||||||
{applications, [kernel,stdlib]},
|
{applications, [kernel,stdlib]},
|
||||||
{mod, {emqx_modules_app, []}},
|
{mod, {emqx_modules_app, []}},
|
||||||
|
|
|
@ -1,14 +1,22 @@
|
||||||
%% -*-: erlang -*-
|
%% -*-: erlang -*-
|
||||||
{VSN,
|
{VSN,
|
||||||
[
|
[
|
||||||
|
{"4.3.1", [
|
||||||
|
{load_module, emqx_mod_api_topic_metrics, brutal_purge, soft_purge, []}
|
||||||
|
]},
|
||||||
{"4.3.0", [
|
{"4.3.0", [
|
||||||
{update, emqx_mod_delayed, {advanced, []}}
|
{update, emqx_mod_delayed, {advanced, []}},
|
||||||
|
{load_module, emqx_mod_api_topic_metrics, brutal_purge, soft_purge, []}
|
||||||
]},
|
]},
|
||||||
{<<".*">>, []}
|
{<<".*">>, []}
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
{"4.3.1", [
|
||||||
|
{load_module, emqx_mod_api_topic_metrics, brutal_purge, soft_purge, []}
|
||||||
|
]},
|
||||||
{"4.3.0", [
|
{"4.3.0", [
|
||||||
{update, emqx_mod_delayed, {advanced, []}}
|
{update, emqx_mod_delayed, {advanced, []}},
|
||||||
|
{load_module, emqx_mod_api_topic_metrics, brutal_purge, soft_purge, []}
|
||||||
]},
|
]},
|
||||||
{<<".*">>, []}
|
{<<".*">>, []}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue