Service Control Report

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

配置样例:

  1. apiVersion: "config.istio.io/v1alpha2"
  2. kind: servicecontrolreport
  3. metadata:
  4. name: report
  5. namespace: istio-system
  6. spec:
  7. api_version : api.version | ""
  8. api_operation : api.operation | ""
  9. api_protocol : api.protocol | ""
  10. api_service : api.service | ""
  11. api_key : api.key | ""
  12. request_time : request.time
  13. request_method : request.method
  14. request_path : request.path
  15. request_bytes: request.size
  16. response_time : response.time
  17. response_code : response.code | 520
  18. response_bytes : response.size | 0
  19. 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