-
Story
-
Resolution: Done
-
Undefined
-
None
-
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