Merge pull request #10457 from HJianBo/hide-statsd

chore: deprecate statsd
This commit is contained in:
zhongwencool 2023-04-20 17:19:33 +08:00 committed by GitHub
commit 72685beb72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,7 @@
%% -*- mode: erlang -*- %% -*- mode: erlang -*-
{application, emqx_statsd, [ {application, emqx_statsd, [
{description, "EMQX Statsd"}, {description, "EMQX Statsd"},
{vsn, "5.0.8"}, {vsn, "5.0.9"},
{registered, []}, {registered, []},
{mod, {emqx_statsd_app, []}}, {mod, {emqx_statsd_app, []}},
{applications, [ {applications, [

View File

@ -49,6 +49,7 @@ schema("/statsd") ->
'operationId' => statsd, 'operationId' => statsd,
get => get =>
#{ #{
deprecated => true,
description => ?DESC(get_statsd_config_api), description => ?DESC(get_statsd_config_api),
tags => ?API_TAG_STATSD, tags => ?API_TAG_STATSD,
responses => responses =>
@ -56,6 +57,7 @@ schema("/statsd") ->
}, },
put => put =>
#{ #{
deprecated => true,
description => ?DESC(update_statsd_config_api), description => ?DESC(update_statsd_config_api),
tags => ?API_TAG_STATSD, tags => ?API_TAG_STATSD,
'requestBody' => statsd_config_schema(), 'requestBody' => statsd_config_schema(),

View File

@ -32,7 +32,8 @@
namespace() -> "statsd". namespace() -> "statsd".
roots() -> ["statsd"]. roots() ->
[{"statsd", hoconsc:mk(hoconsc:ref(?MODULE, "statsd"), #{importance => ?IMPORTANCE_HIDDEN})}].
fields("statsd") -> fields("statsd") ->
[ [

View File

@ -0,0 +1,4 @@
Deprecates the integration with StatsD.
Since StatsD is not used a lot. So we will deprecate it in the next release
and plan to remove it in 5.1