# IApplicationTargetGroupMetrics

Contains all metrics for a Target Group of a Application Load Balancer.

- Source: [`aws-elasticloadbalancingv2/lib/alb/application-target-group.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/alb/application-target-group.ts#L135)
- Type last changed: v2.65.0 · 15 Feb 2023

## Methods

- `custom(metricName: string, props?: MetricOptions): Metric` — Return the given named metric for this Network Target Group.

- `healthyHostCount(props?: MetricOptions): Metric` — The number of healthy hosts in the target group.

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

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

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

- `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.

- `requestCountPerTarget(props?: MetricOptions): Metric` — The average number of requests received by each target in a target group.

  The only valid statistic is Sum. Note that this represents the average not the sum.

- `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.

- `unhealthyHostCount(props?: MetricOptions): Metric` — The number of unhealthy hosts in the target group.
