Service Control Report

servicecontrolreport 模板需配合 Google Servie Control 适配器使用。

配置样例:

apiVersion: "config.istio.io/v1alpha2"
kind: servicecontrolreport
metadata:
  name: report
  namespace: istio-system
spec:
  api_version : api.version | ""
  api_operation : api.operation | ""
  api_protocol : api.protocol | ""
  api_service : api.service | ""
  api_key : api.key | ""
  request_time : request.time
  request_method : request.method
  request_path : request.path
  request_bytes: request.size
  response_time : response.time
  response_code : response.code | 520
  response_bytes : response.size | 0
  response_latency : response.duration | "0ms"

模板

Google Servie Control 适配器会根据这个模板描述的数据点,为每个请求生成指标和日志。

字段类型描述
apiVersionstring
apiOperationstring
apiProtocolstring
apiServicestring
apiKeystring
requestTimeistio.policy.v1beta1.TimeStamp
requestMethodstring
requestPathstring
requestBytesint64
responseTimeistio.policy.v1beta1.TimeStamp
responseCodeint64
responseByteint64
responseLatencyistio.policy.v1beta1.Duration