# IApplicationLoadBalancerMetrics

Contains all metrics for an Application Load Balancer.

- Source: [`aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts#L927)
- Type last changed: v2.64.0 · 9 Feb 2023

## Methods

- `activeConnectionCount(props?: MetricOptions): Metric` — The total number of concurrent TCP connections active from clients to the load balancer and from the load balancer to targets.

- `clientTlsNegotiationErrorCount(props?: MetricOptions): Metric` — The number of TLS connections initiated by the client that did not establish a session with the load balancer.

  Possible causes include a
  mismatch of ciphers or protocols.

- `consumedLCUs(props?: MetricOptions): Metric` — The number of load balancer capacity units (LCU) used by your load balancer.

- `custom(metricName: string, props?: MetricOptions): Metric` — Return the given named metric for this Application Load Balancer.

- `elbAuthError(props?: MetricOptions): Metric` — The number of user authentications that could not be completed.

  Because an authenticate action was misconfigured, the load balancer
  couldn't establish a connection with the IdP, or the load balancer
  couldn't complete the authentication flow due to an internal error.

- `elbAuthFailure(props?: MetricOptions): Metric` — The number of user authentications that could not be completed because the IdP denied access to the user or an authorization code was used more than once.

- `elbAuthLatency(props?: MetricOptions): Metric` — The time elapsed, in milliseconds, to query the IdP for the ID token and user info.

  If one or more of these operations fail, this is the time to failure.

- `elbAuthSuccess(props?: MetricOptions): Metric` — The number of authenticate actions that were successful.

  This metric is incremented at the end of the authentication workflow,
  after the load balancer has retrieved the user claims from the IdP.

- `httpCodeElb(code: HttpCodeElb, props?: MetricOptions): Metric` — The number of HTTP 3xx/4xx/5xx codes that originate from the load balancer.

  This does not include any response codes generated by the targets.

- `httpCodeTarget(code: HttpCodeTarget, props?: MetricOptions): Metric` — The number of HTTP 2xx/3xx/4xx/5xx response codes generated by all targets in the load balancer.

  This does not include any response codes generated by the load balancer.

- `httpFixedResponseCount(props?: MetricOptions): Metric` — The number of fixed-response actions that were successful.

- `httpRedirectCount(props?: MetricOptions): Metric` — The number of redirect actions that were successful.

- `httpRedirectUrlLimitExceededCount(props?: MetricOptions): Metric` — The number of redirect actions that couldn't be completed because the URL in the response location header is larger than 8K.

- `ipv6ProcessedBytes(props?: MetricOptions): Metric` — The total number of bytes processed by the load balancer over IPv6.

- `ipv6RequestCount(props?: MetricOptions): Metric` — The number of IPv6 requests received by the load balancer.

- `newConnectionCount(props?: MetricOptions): Metric` — The total number of new TCP connections established from clients to the load balancer and from the load balancer to targets.

- `processedBytes(props?: MetricOptions): Metric` — The total number of bytes processed by the load balancer over IPv4 and IPv6.

- `rejectedConnectionCount(props?: MetricOptions): Metric` — The number of connections that were rejected because the load balancer had reached its maximum number of connections.

- `requestCount(props?: MetricOptions): Metric` — The number of requests processed over IPv4 and IPv6.

  This count includes only the requests with a response generated by a target of the load balancer.

- `ruleEvaluations(props?: MetricOptions): Metric` — The number of rules processed by the load balancer given a request rate averaged over an hour.

- `targetConnectionErrorCount(props?: MetricOptions): Metric` — The number of connections that were not successfully established between the load balancer and target.

- `targetResponseTime(props?: MetricOptions): Metric` — The time elapsed, in seconds, after the request leaves the load balancer until a response from the target is received.

- `targetTLSNegotiationErrorCount(props?: MetricOptions): Metric` — The number of TLS connections initiated by the load balancer that did not establish a session with the target.

  Possible causes include a mismatch of ciphers or protocols.
