fix(prom_auth): authz_enable key from enable status

- https://emqx.atlassian.net/browse/EMQX-11800
This commit is contained in:
JimMoen 2024-01-24 15:33:38 +08:00
parent 6e3ce4d644
commit 5e02709de0
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -485,6 +485,8 @@ mnesia_size(Tab) ->
do_metric(emqx_authn_enable, #{enable := B}, _) ->
emqx_prometheus_cluster:boolean_to_number(B);
do_metric(emqx_authz_enable, #{enable := B}, _) ->
emqx_prometheus_cluster:boolean_to_number(B);
do_metric(K, _, Metrics) ->
?MG0(K, Metrics).