TD-788: Fixes broken prometheus collector return (#31)

This commit is contained in:
Aleksey Kashapov 2023-12-19 17:48:13 +03:00 committed by GitHub
parent 2cbe19998c
commit 14998c8e47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -32,7 +32,8 @@ collect_mf(_Registry, Callback) ->
make_pool_data(Pool, get_pool_stats(Pool))
end,
Data = lists:flatten(lists:map(F, get_hackney_pools())),
Callback(create_gauge(Data)).
_ = Callback(create_gauge(Data)),
ok.
-spec collect_metrics(prometheus_metric:name(), data()) ->
prometheus_model:'Metric'() | [prometheus_model:'Metric'()].

View File

@ -34,7 +34,8 @@ collect_mf(_Registry, Callback) ->
make_listener_data(ListenerRef, ListenerInfo)
end,
Data = lists:flatten(lists:map(F, get_listeners_info())),
Callback(create_gauge(Data)).
_ = Callback(create_gauge(Data)),
ok.
-spec collect_metrics(prometheus_metric:name(), data()) ->
prometheus_model:'Metric'() | [prometheus_model:'Metric'()].