-
Story
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
None
-
Product / Portfolio Work
-
False
-
-
False
-
None
-
None
-
None
-
NetObserv - Sprint 261, NetObserv - Sprint 262, NetObserv - Sprint 263
The FlowMetrics API needs to be improved to allow having labels and/or filters set on list fields (NetworkEvents is a list).
For instance, we want to be able to define a metric such as:
Def:{ Name: network_policy_verdict Filters: [{Key: "networkEvents.type", Value: "acl"}] Labels: [SrcPod, DstPod, networkEvents.name] Remap: {"networkEvents.name": "name"} }
(this is just an example, not a design reference)
Here's a working example of a metric using this feature, with the Interfaces field:
apiVersion: flows.netobserv.io/v1alpha1 kind: FlowMetric metadata: name: per-interface namespace: netobserv spec: metricName: per_interface type: Counter labels: [Interfaces] flatten: [Interfaces] remap: Interfaces: interface
- links to
(1 links to)