mirror of
https://github.com/valitydev/woody_erlang.git
synced 2024-11-06 02:15:19 +00:00
TD-788: Fixes broken prometheus collector return (#31)
This commit is contained in:
parent
2cbe19998c
commit
14998c8e47
@ -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'()].
|
||||
|
@ -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'()].
|
||||
|
Loading…
Reference in New Issue
Block a user