fix(prom): schema registry not in ce edition

This commit is contained in:
JimMoen 2024-01-14 23:55:44 +08:00
parent 5158395bcf
commit 7832bbc0a4
No known key found for this signature in database
1 changed files with 8 additions and 0 deletions

View File

@ -295,6 +295,7 @@ actions_exec_count_data() ->
%%====================
%% Schema Registry
-if(?EMQX_RELEASE_EDITION == ee).
schema_registry() ->
[
emqx_schema_registry_count
@ -304,6 +305,13 @@ schema_registry_data() ->
#{
emqx_schema_registry_count => erlang:map_size(emqx_schema_registry:list_schemas())
}.
-else.
schema_registry() ->
[].
schema_registry_data() ->
#{}.
-endif.
%%====================
%% Connectors