--- title: Quota description: A template that represents a quota allocation request. location: https://istio.io/docs/reference/config/policy-and-telemetry/templates/quota.html layout: protoc-gen-docs generator: protoc-gen-docs aliases: - /docs/reference/config/template/quota.html number_of_entries: 1 ---

The `quota` template represents an item for which to check quota.

Example config:

    apiVersion: "config.istio.io/v1alpha2"
    kind: instance
    metadata:
      name: requestcount
      namespace: istio-system
    spec:
      compiledTemplate: quota
      params:
        dimensions:
          source: source.name | "unknown"
          sourceVersion: source.labels["version"] | "unknown"
          destination: destination.labels["app"] | destination.service.host | "unknown"
          destinationVersion: destination.labels["version"] | "unknown"

## Template

The `quota` template represents a piece of data to check Quota for.

When writing the configuration, the value for the fields associated with this template can either be a literal or an expression. Please note that if the datatype of a field is not istio.policy.v1beta1.Value, then the expression’s inferred type must match the datatype of the field.

Field | Type | Description | Required
--- | --- | --- | ---
`dimensions` | `map<string, Value>` | The unique identity of the particular quota to manipulate. | No