chore: don't delete bpapi when 5.0.x
This commit is contained in:
parent
97124be63a
commit
3233a40af3
|
@ -59,6 +59,12 @@
|
||||||
|
|
||||||
-export([collect/1]).
|
-export([collect/1]).
|
||||||
|
|
||||||
|
-export([
|
||||||
|
%% For bpapi, deprecated_since 5.0.10, remove this when 5.1.x
|
||||||
|
do_start/0,
|
||||||
|
do_stop/0
|
||||||
|
]).
|
||||||
|
|
||||||
-define(C(K, L), proplists:get_value(K, L, 0)).
|
-define(C(K, L), proplists:get_value(K, L, 0)).
|
||||||
|
|
||||||
-define(TIMER_MSG, '#interval').
|
-define(TIMER_MSG, '#interval').
|
||||||
|
@ -591,3 +597,11 @@ emqx_cluster_data() ->
|
||||||
{nodes_running, length(Running)},
|
{nodes_running, length(Running)},
|
||||||
{nodes_stopped, length(Stopped)}
|
{nodes_stopped, length(Stopped)}
|
||||||
].
|
].
|
||||||
|
|
||||||
|
%% deprecated_since 5.0.10, remove this when 5.1.x
|
||||||
|
do_start() ->
|
||||||
|
emqx_prometheus_sup:start_child(?APP).
|
||||||
|
|
||||||
|
%% deprecated_since 5.0.10, remove this when 5.1.x
|
||||||
|
do_stop() ->
|
||||||
|
emqx_prometheus_sup:stop_child(?APP).
|
||||||
|
|
|
@ -20,13 +20,15 @@
|
||||||
|
|
||||||
-export([
|
-export([
|
||||||
introduced_in/0,
|
introduced_in/0,
|
||||||
|
deprecated_since/0,
|
||||||
start/1,
|
start/1,
|
||||||
stop/1
|
stop/1
|
||||||
]).
|
]).
|
||||||
|
|
||||||
-include_lib("emqx/include/bpapi.hrl").
|
-include_lib("emqx/include/bpapi.hrl").
|
||||||
|
|
||||||
|
deprecated_since() -> "5.0.10".
|
||||||
|
|
||||||
introduced_in() ->
|
introduced_in() ->
|
||||||
"5.0.0".
|
"5.0.0".
|
||||||
|
|
||||||
|
|
|
@ -8,9 +8,10 @@
|
||||||
|
|
||||||
- Improve memory usage on core nodes when bootstrapping a replicant [#9236](https://github.com/emqx/emqx/pull/9236).
|
- Improve memory usage on core nodes when bootstrapping a replicant [#9236](https://github.com/emqx/emqx/pull/9236).
|
||||||
|
|
||||||
- Improve the stability of prometheus push_gateway and print error logs when POST fails [#9235](http://github.com/emqx/emqx/pull/9235).
|
- Improve stability of Prometheus Push Gateway and log errors when POST fails [#9235](http://github.com/emqx/emqx/pull/9235).
|
||||||
|
|
||||||
- Now we can disable some internal prometheus metrics. Closing some metrics that are not cared about when the prometheus/stats API timeout ( the machine load is too high ). [#9222](https://github.com/emqx/emqx/pull/9222).
|
- Now it is possible to opt out VM internal metrics in prometheus stats [#9222](https://github.com/emqx/emqx/pull/9222).
|
||||||
|
When system load is high, reporting too much metrics data may cause the prometheus stats API timeout.
|
||||||
|
|
||||||
## Bug fixes
|
## Bug fixes
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
- 在引导 `replicant` 节点时,改善 `core` 节点的内存使用量 [#9236](https://github.com/emqx/emqx/pull/9236)。
|
- 在引导 `replicant` 节点时,改善 `core` 节点的内存使用量 [#9236](https://github.com/emqx/emqx/pull/9236)。
|
||||||
|
|
||||||
- 增加 prometheus push_gateway 的稳定性, 并在 POST 失败时打印错误日志 [#9235](http://github.com/emqx/emqx/pull/9235)。
|
- 增加 Prometheus Push Gateway 的稳定性, 并在 POST 失败时打印错误日志 [#9235](http://github.com/emqx/emqx/pull/9235)。
|
||||||
|
|
||||||
- 可通过配置关闭 prometheus 中的部分内部指标,如果遇到机器负载过高 prometheus 接口返回超时可考虑关闭部分不关心指标,以提高响应速度 [#9222](https://github.com/emqx/emqx/pull/9222)。
|
- 可通过配置关闭 prometheus 中的部分内部指标,如果遇到机器负载过高 prometheus 接口返回超时可考虑关闭部分不关心指标,以提高响应速度 [#9222](https://github.com/emqx/emqx/pull/9222)。
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue