Architecture Design For CDE

Is there any API like way to get those metrics? I'd like to get ingress/egress for each service or identity so I can know if a pod has communicated in the last x time.

Actually, I can just record that data in the agent logic I am building

Below is an example block of the event configuration. This bit you probably want is:

      - type: fabric.usage
        version: 3
        include:
          - ingress.rx
          - egress.rx

That generates usage events per circuit. The usage data is bucketed per-minute.

events:
  jsonLogger:
    subscriptions:
      - type: entityChange
        include:
          - services
          - identities
      - type: fabric.circuits
      - type: fabric.links
      - type: fabric.routers
      - type: fabric.terminators
      - type: metrics
        sourceFilter: .*
        metricFilter: .*
      - type: edge.sessions
      - type: edge.apiSessions
      - type: fabric.usage
        version: 3
        include:
          - ingress.rx
          - egress.rx
      - type: services
      - type: edge.entityCounts
        interval: 5s
    handler:
      type: file
      format: json
      path: /tmp/ziti-events.log
  usageLogger:
    subscriptions:
      - type: fabric.usage
        interval: 5s
    handler:
      type: amqp
      format: json
      url: "amqp://localhost:5672" 
      queue: ziti
      durable: true      //default:true
      autoDelete: false  //default:false
      exclusive: false   //default:false
      noWait: false      //default:false
      bufferSize: 50     //default:50

Cheers,
Paul