--- title: Mixer Configuration Schema overview: Generated documentation for Mixer's Configuration Schema order: 40 layout: docs type: markdown --- ## Package istio.mixer.v1.config ### Index * [Adapter](#istio.mixer.v1.config.Adapter) (message) * [Aspect](#istio.mixer.v1.config.Aspect) (message) * [AspectRule](#istio.mixer.v1.config.AspectRule) (message) * [AttributeManifest](#istio.mixer.v1.config.AttributeManifest) (message) * [DnsName](#istio.mixer.v1.config.DnsName) (message) * [EmailAddress](#istio.mixer.v1.config.EmailAddress) (message) * [GlobalConfig](#istio.mixer.v1.config.GlobalConfig) (message) * [IpAddress](#istio.mixer.v1.config.IpAddress) (message) * [ServiceConfig](#istio.mixer.v1.config.ServiceConfig) (message) * [Uri](#istio.mixer.v1.config.Uri) (message) ### Adapter Adapter config defines specifics of adapter implementations We define an adapter that provides "metrics" aspect kind: istio/metrics name: metrics-statsd impl: “istio.io/adapters/statsd” params: Host: statd.svc.cluster Port: 8125
| Field | Type | Description |
|---|---|---|
name |
string | statsd-slow |
kind |
string | metrics |
impl |
string | istio.statsd |
params |
Struct | Struct representation of a proto defined by the implementation based on impl {} |
| Field | Type | Description |
|---|---|---|
kind |
string | |
adapter |
string | optional, allows specifying an adapter |
params |
Struct | Struct representation of a proto defined by the aspect |
| Field | Type | Description |
|---|---|---|
selector |
string | selector is an attributes based predicate. attr1 == "20" && attr2 == "30" |
aspects[] |
repeated Aspect | The following aspects apply when the selector predicate evaluates to True |
rules[] |
repeated AspectRule | Nested aspect Rule is evaluated if selector predicate evaluates to True |
| Field | Type | Description |
|---|---|---|
revision |
string | |
name |
string | Name of the component producing these attributes. This can be the proxy (with the canonical name "istio-proxy") or the name of an attribute producing adapter in the mixer itself. |
attributes[] |
repeated AttributeDescriptor | The set of attributes this Istio component will be responsible for producing at runtime. |
| Field | Type | Description |
|---|---|---|
value |
string |
| Field | Type | Description |
|---|---|---|
value |
string |
| Field | Type | Description |
|---|---|---|
revision |
string | |
adapters[] |
repeated Adapter | |
manifests[] |
repeated AttributeManifest | |
logs[] |
repeated LogEntryDescriptor | |
metrics[] |
repeated MetricDescriptor | |
monitored_resources[] |
repeated MonitoredResourceDescriptor | |
principals[] |
repeated PrincipalDescriptor | |
quotas[] |
repeated QuotaDescriptor |
| Field | Type | Description |
|---|---|---|
value |
bytes |
| Field | Type | Description |
|---|---|---|
subject |
string | subject is unique for a config type 2 config with the same subject will overwrite each other |
revision |
string | revision of this config. This is assigned by the server |
rules[] |
repeated AspectRule |
| Field | Type | Description |
|---|---|---|
value |
string |
| Field | Type | Description |
|---|---|---|
name |
string | The name of this descriptor, referenced from individual attribute instances and other descriptors. The format of this name is: Where Attribute descriptor names must be unique within a single Istio deployment. There is a well- known set of attributes which have succinct names. Attributes not on this list should be named with a component-specific suffix such as request.count-my.component |
description |
string | An optional human-readable description of the attribute's purpose. |
value_type |
ValueType | The type of data carried by attributes |
| Field | Type | Description |
|---|---|---|
name |
string | The name of this descriptor. |
display_name |
string | An optional concise name for the log entry type, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count". |
description |
string | An optional description of the log entry type, which can be used in documentation. |
payload_format |
PayloadFormat | Format of the value of the payload attribute. |
log_template |
string | The template that will be populated with labels at runtime to generate a log message; the labels describe the parameters for this template. The template strings must conform to go's text/template syntax. |
labels |
repeated map<string, ValueType> | Labels describe the parameters of this log's template string. The log definition allows the user to map attribute expressions to actual values for these labels at run time; the result of the evaluation must be of the type described by the kind for each label. |
| Value | Description |
|---|---|
| PAYLOAD_FORMAT_UNSPECIFIED | Invalid, default value. |
| TEXT | Indicates a payload format of raw text. |
| JSON | Indicates that the payload is a serialized JSON object. |
| Field | Type | Description |
|---|---|---|
name |
string | The name of this descriptor. This is used to refer to this descriptor in other contexts. |
display_name |
string | An optional concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example "Request count". |
description |
string | An optional description of the metric, which should be used as the documentation for the metric. |
kind |
MetricKind | Whether the metric records instantaneous values, changes to a value, etc. |
value |
ValueType | The type of data this metric records. |
labels |
repeated map<string, ValueType> | Labels that dimension the data recorded by this metric. The metric definition allows the user to map attribute expressions to actual values for these labels at run time; the result of the evaluation must be of the type described by the kind for each label. |
buckets |
BucketsDefinition | For metrics with a metric kind of DISTRIBUTION, this provides a mechanism for configuring the buckets that will be used to store the aggregated values. This field must be provided for metrics declared to be of type DISTRIBUTION. This field will be ignored for non-distribution metric kinds. |
| Field | Type | Description |
|---|---|---|
linear_buckets |
Linear (oneof ) | The linear buckets. |
exponential_buckets |
Exponential (oneof ) | The exponential buckets. |
explicit_buckets |
Explicit (oneof ) | The explicit buckets. |
| Field | Type | Description |
|---|---|---|
bounds[] |
repeated double | The values must be monotonically increasing. |
| Field | Type | Description |
|---|---|---|
num_finite_buckets |
int32 | Must be greater than 0. |
growth_factor |
double | Must be greater than 1. |
scale |
double | Must be greater than 0. |
| Field | Type | Description |
|---|---|---|
num_finite_buckets |
int32 | Must be greater than 0. |
width |
double | Must be greater than 0. |
offset |
double | Lower bound of the first bucket. |
| Field | Type | Description |
|---|---|---|
name |
string | The name of this descriptor |
description |
string | An optional detailed description of the monitored resource descriptor that might be used in documentation. |
labels |
repeated map<string, ValueType> | Labels represent the dimensions that uniquely identify this monitored resource. At runtime expressions will be evaluated to provide values for each label. Label names are mapped to expressions as part of aspect configuration. |
| Field | Type | Description |
|---|---|---|
name |
string | The name of this descriptor. |
labels |
repeated map<string, ValueType> | Labels represent the dimensions that uniquely identify this security principal. At runtime expressions will be evaluated to provide values for each label. Label names are mapped to expressions as part of aspect configuration. |
| Field | Type | Description |
|---|---|---|
name |
string | The name of this descriptor. |
display_name |
string | An optional concise name for the quota which can be displayed in user interfaces. |
description |
string | An optional description of the quota which can be used in documentation. |
labels |
repeated map<string, ValueType> | The set of labels that are necessary to describe a specific value cell for a quota of this type. |
rate_limit |
bool | Indicates whether the quota represents a rate limit or represents a resource quota. |