days to Istio 1.5

Edge

The edge template represents an edge in the mesh graph.

Template

The edge template represents an edge in the mesh graph

When writing the configuration, the value for the fields associated with this template can either be a literal or an expression. Please note that if the datatype of a field is not istio.mixer.adapter.model.v1beta1.Value, then the expression’s inferred type must match the datatype of the field.

Example config:

apiVersion: "config.istio.io/v1alpha2"
kind: instance
metadata:
  name: default
  namespace: istio-system
spec:
  compiledTemplate: edge
  params:
    timestamp: request.time
    sourceUid: source.uid | "Unknown"
    sourceOwner: source.owner | "Unknown"
    sourceWorkloadName: source.workload.name | "Unknown"
    sourceWorkloadNamespace: source.workload.namespace | "Unknown"
    destinationUid: destination.uid | "Unknown"
    destinationOwner: destination.owner | "Unknown"
    destinationWorkloadName: destination.workload.name | "Unknown"
    destinationWorkloadNamespace: destination.workload.namespace | "Unknown"
    destinationServiceName: destination.service.name | "Unknown"
    destinationServiceNamespace: destination.service.namespace | "Unknown"
    apiProtocol: api.protocol | "Unknown"
    contextProtocol: context.protocol | "Unknown"
FieldTypeDescriptionRequired
timestampTimeStamp

Timestamp of the edge

No
sourceWorkloadNamespacestring

Namespace of the source workload

No
sourceWorkloadNamestring

Name of the source workload

No
sourceOwnerstring

Owner of the source workload (often k8s deployment)

No
sourceUidstring

UID of the source workload

No
destinationWorkloadNamespacestring

Namespace of the destination workload

No
destinationWorkloadNamestring

Name of the destination workload

No
destinationOwnerstring

Owner of the destination workload (often k8s deployment)

No
destinationUidstring

UID of the destination workload

No
destinationServiceNamespacestring

Namespace of the destination Service

No
destinationServiceNamestring

Name of the destination Service

No
contextProtocolstring

Protocol used for communication (http, tcp)

No
apiProtocolstring

The protocol type of the API call (http, https, grpc)

No
Was this information useful?
Do you have any suggestions for improvement?

Thanks for your feedback!