Просмотр исходного кода

docs(emqx_prometheus): leave remark about json being deprecated

Stefan Strigler 2 лет назад
Родитель
Сommit
f5e93b1b2b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/emqx_prometheus/src/emqx_prometheus_api.erl

+ 2 - 2
apps/emqx_prometheus/src/emqx_prometheus_api.erl

@@ -18,7 +18,6 @@
 
 -behaviour(minirest_api).
 
--include("emqx_prometheus.hrl").
 -include_lib("hocon/include/hoconsc.hrl").
 
 -import(hoconsc, [ref/2]).
@@ -128,7 +127,8 @@ prometheus_config_example() ->
 
 prometheus_data_schema() ->
     #{
-        description => <<"Get Prometheus Data">>,
+        description =>
+            <<"Get Prometheus Data. Note that support for JSON output is deprecated and will be removed in v5.2.">>,
         content =>
             #{
                 'application/json' =>