feat: native metrics with Prometheus support (#772, #560) #814
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
metricslibrary with hackney-native metrics abstractionChanges
hackney_metrics_backend.erl(behaviour),hackney_metrics_dummy.erl,hackney_metrics_prometheus.erlhackney_metrics.erl(API facade),hackney_manager.erl,hackney_pool.erl,hackney_util.erlmetricsdependency fromrebar.configandhackney.app.srcNew Metrics (Prometheus-compatible names)
hackney_requests_totalhackney_requests_activehackney_requests_finished_totalhackney_request_duration_secondshackney_pool_free_counthackney_pool_in_use_counthackney_pool_checkouts_totalConfiguration
Closes #772, closes #560