Uploaded image for project: 'Network Observability'
  1. Network Observability
  2. NETOBSERV-1342

Define custom metrics from CRD [dev preview]

    • 5
    • False
    • None
    • False
    • NetObserv - Sprint 244, NetObserv - Sprint 245, NetObserv - Sprint 246, NetObserv - Sprint 247

      Create a new field in FlowCollector CRD (e.g: "processor.metrics.definitions") so that custom can provide their own metrics.

      This should be more or less just a mapping of FLP's metrics config: https://github.com/netobserv/flowlogs-pipeline/blob/main/pkg/api/encode_prom.go#L43-L51

      Then it just needs to be translated in FLP format.

       

      Example of CRD config:

       

        processor:
          metrics:
            definitions:
              - name: node_ingress_bytes_total
                type: Counter
                valueField: Bytes
                filters:
                  Duplicate: "false"
                  FlowDirection: "0"
                labels:
                  - SrcK8S_HostName
                  - DstK8S_HostName
              - name: workload_ingress_bytes_total
                type: Counter
                valueField: Bytes
                filters:
                  Duplicate: "false"
                  FlowDirection: "0"
                labels:
                  - SrcK8S_Namespace
                  - DstK8S_Namespace
                  - SrcK8S_OwnerName
                  - DstK8S_OwnerName
                  - SrcK8S_OwnerType
                  - DstK8S_OwnerType

       

       

            jtakvori Joel Takvorian
            jtakvori Joel Takvorian
            Mehul Modi Mehul Modi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: