Skip to content

Commit 0cbff17

Browse files
committed
Add flowmetrics sample for workload flow matrix
1 parent bd9921d commit 0cbff17

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Workload flows matrix for TCP/SYN traffic, with labels remapped for focusing on incoming traffic
2+
# More examples in https://github.com/netobserv/network-observability-operator/tree/main/config/samples/flowmetrics
3+
apiVersion: flows.netobserv.io/v1alpha1
4+
kind: FlowMetric
5+
metadata:
6+
name: workload-syn-in
7+
namespace: netobserv
8+
spec:
9+
type: Counter
10+
flatten: [Flags]
11+
labels:
12+
- SrcSubnetLabel
13+
- SrcK8S_Namespace
14+
- SrcK8S_OwnerName
15+
- SrcK8S_OwnerType
16+
- DstSubnetLabel
17+
- DstK8S_Namespace
18+
- DstK8S_OwnerName
19+
- DstK8S_OwnerType
20+
- DstPort
21+
- Flags
22+
filters:
23+
- field: Flags
24+
value: SYN
25+
remap:
26+
SrcK8S_Namespace: from_namespace
27+
SrcK8S_OwnerName: from_workload
28+
SrcK8S_OwnerType: from_kind
29+
SrcSubnetLabel: from_subnet_label
30+
DstK8S_Namespace: namespace
31+
DstK8S_OwnerName: workload
32+
DstK8S_OwnerType: kind
33+
DstSubnetLabel: subnet_label
34+
DstPort: port
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#
2+
# More examples in https://github.com/netobserv/network-observability-operator/tree/main/config/samples/flowmetrics
3+
apiVersion: flows.netobserv.io/v1alpha1
4+
kind: FlowMetric
5+
metadata:
6+
name: workload-syn-out
7+
namespace: netobserv
8+
spec:
9+
type: Counter
10+
flatten: [Flags]
11+
labels:
12+
- SrcSubnetLabel
13+
- SrcK8S_Namespace
14+
- SrcK8S_OwnerName
15+
- SrcK8S_OwnerType
16+
- DstSubnetLabel
17+
- DstK8S_Namespace
18+
- DstK8S_OwnerName
19+
- DstK8S_OwnerType
20+
- DstPort
21+
- Flags
22+
filters:
23+
- field: Flags
24+
value: SYN
25+
remap:
26+
DstK8S_Namespace: to_namespace
27+
DstK8S_OwnerName: to_workload
28+
DstK8S_OwnerType: to_kind
29+
DstSubnetLabel: to_subnet_label
30+
SrcK8S_Namespace: namespace
31+
SrcK8S_OwnerName: workload
32+
SrcK8S_OwnerType: kind
33+
SrcSubnetLabel: subnet_label
34+
DstPort: port

0 commit comments

Comments
 (0)