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 associatedwith this template can either be a literal or anexpression. Pleasenote that if the datatype of a field is notistio.mixer.adapter.model.v1beta1.Value, then the expression’sinferred typemust match the datatype of the field.

Example config:

  1. apiVersion: "config.istio.io/v1alpha2"
  2. kind: instance
  3. metadata:
  4. name: default
  5. namespace: istio-system
  6. spec:
  7. compiledTemplate: edge
  8. params:
  9. timestamp: request.time
  10. sourceUid: source.uid | "Unknown"
  11. sourceOwner: source.owner | "Unknown"
  12. sourceWorkloadName: source.workload.name | "Unknown"
  13. sourceWorkloadNamespace: source.workload.namespace | "Unknown"
  14. destinationUid: destination.uid | "Unknown"
  15. destinationOwner: destination.owner | "Unknown"
  16. destinationWorkloadName: destination.workload.name | "Unknown"
  17. destinationWorkloadNamespace: destination.workload.namespace | "Unknown"
  18. destinationServiceName: destination.service.name | "Unknown"
  19. destinationServiceNamespace: destination.service.namespace | "Unknown"
  20. apiProtocol: api.protocol | "Unknown"
  21. 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