Finch.HTTP2.PoolMetrics (Finch v0.20.0)

View Source

HTTP2 Pool metrics.

Available metrics:

  • :pool_index - Index of the pool
  • :in_flight_requests - Number of requests currently on the connection

Caveats:

  • HTTP2 pools have only one connection and leverage the multiplex nature of the protocol. That's why we only keep the in flight requests, representing the number of streams currently running on the connection.

Summary

Types

t()

@type t() :: %Finch.HTTP2.PoolMetrics{in_flight_requests: term(), pool_index: term()}

Functions

get_pool_status(ref)

get_pool_status(name, shp, pool_idx)

init(finch_name, shp, pool_idx)

maybe_add(ref, metrics_list)