From 7832bbc0a43a8786c6deb684b489ea7e137a205e Mon Sep 17 00:00:00 2001 From: JimMoen Date: Sun, 14 Jan 2024 23:55:44 +0800 Subject: [PATCH] fix(prom): schema registry not in ce edition --- .../src/emqx_prometheus_data_integration.erl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/emqx_prometheus/src/emqx_prometheus_data_integration.erl b/apps/emqx_prometheus/src/emqx_prometheus_data_integration.erl index 4c679b842..5039cb9b6 100644 --- a/apps/emqx_prometheus/src/emqx_prometheus_data_integration.erl +++ b/apps/emqx_prometheus/src/emqx_prometheus_data_integration.erl @@ -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