January 2019
Intermediate to advanced
484 pages
11h 48m
English
A Mixer template defines which data Mixer should organize, and in what form the data should be in. To get metrics and access logs, we need the metric and logentry templates. For instance, the following template tells Mixer to output the log with the source and destination name, the method, the request URL, and so on:
apiVersion: config.istio.io/v1alpha2kind: logentrymetadata: name: accesslog namespace: istio-systemspec: severity: '"info"' timestamp: request.time variables: source: source.workload.name | "unknown" destination: destination.workload.name | "unknown" method: request.method | "" url: request.path | "" protocol: request.scheme | "" responseCode: response.code | 0 responseSize: response.size | 0 requestSize: request.size ...
Read now
Unlock full access