# io.k8s.api.autoscaling.v2.PodsMetricSource

From **Kubernetes**.

PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.

- Type: `object`

## Properties

### `metric`

- Required: true
- Default: `{}`

metric identifies the target metric by name and selector

### `target`

- Required: true
- Default: `{}`

target specifies the target value for the given metric

## JSON Schema

```json
{"description":"PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.","properties":{"metric":{"allOf":[{"$ref":"#/components/schemas/io.k8s.api.autoscaling.v2.MetricIdentifier"}],"default":{},"description":"metric identifies the target metric by name and selector"},"target":{"allOf":[{"$ref":"#/components/schemas/io.k8s.api.autoscaling.v2.MetricTarget"}],"default":{},"description":"target specifies the target value for the given metric"}},"required":["metric","target"],"type":"object"}
```
