Service Control

The servicecontrol adapter delivers logs and metrics to Google Service Control.

GcpServiceSetting

Adapter setting for a managed GCP service.

FieldTypeDescription
meshServiceNamestring

Local service name on the mesh, which matches destination.service attribute.

googleServiceNamestring

Fully qualified GCP service name.

quotasQuota[]

Quota configs

Params

Configuration format for the servicecontrol adapter.

Sample adapter config:

apiVersion: "config.istio.io/v1alpha2"
kind: servicecontrol
metadata:
  name: testhandler
  namespace: istio-system
spec:
  runtime_config:
    check_cache_size: 200
    check_result_expiration: 60s
  credential_path: "/path/to/token.json"
  service_configs:
    - mesh_service_name: "echo.local.svc"
      google_service_name: "echo.endpoints.cloud.goog"
      quotas:
        - name: ratelimit.quota.istio-system
          google_quota_metric_name: read-requests
          expiration: 1m
FieldTypeDescription
runtimeConfigRuntimeConfig
credentialPathstring

A path to JSON token file, usually mounted as Kubernetes secret on pod.

serviceConfigsGcpServiceSetting[]

Quota

FieldTypeDescription
namestring

Istio quota name.

googleQuotaMetricNamestring

The corresponding Google quota metric name.

expirationgoogle.protobuf.Duration

Quota token expiration time period.

RuntimeConfig

Adapter runtime config paramters.

FieldTypeDescription
checkCacheSizeint32
checkResultExpirationgoogle.protobuf.Duration