# io.k8s.api.autoscaling.v2.ExternalMetricSource

From **Kubernetes**.

ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).

- 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":"ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).","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"}
```
