You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/filtering.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ The language is currently integrated in the "keep_entry" transform/filtering API
34
34
rules:
35
35
- type: keep_entry_query
36
36
keepEntryQuery: (namespace="A" and with(workload)) or service=~"abc.+"
37
-
keepEntrySampling: 10# Optionally, a sampling ratio can be associated with the filter
37
+
keepEntrySampling: 10# Optionally, a sampling interval can be associated with the filter
38
38
```
39
39
40
40
## Integration with the NetObserv operator
@@ -48,7 +48,7 @@ spec:
48
48
- query: |
49
49
(SrcK8S_Namespace="netobserv" OR (SrcK8S_Namespace="openshift-ingress" AND DstK8S_Namespace="netobserv"))
50
50
outputTarget: Loki # The filter can target a specific output (such as Loki logs or exported data), or all outputs.
51
-
sampling: 10 # Optionally, a sampling ratio can be associated with the filter
51
+
sampling: 10 # Optionally, a sampling interval can be associated with the filter
52
52
```
53
53
54
54
See also the [list of field names](https://github.com/netobserv/network-observability-operator/blob/main/docs/flows-format.adoc) that are available for queries, and the [API documentation](https://github.com/netobserv/network-observability-operator/blob/main/docs/FlowCollector.md#flowcollectorspecprocessorfiltersindex-1).
Copy file name to clipboardExpand all lines: pkg/api/transform_filter.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ type TransformFilterRule struct {
63
63
RemoveEntry*TransformFilterGenericRule`yaml:"removeEntry,omitempty" json:"removeEntry,omitempty" doc:"configuration for remove_entry_* rules"`
64
64
RemoveEntryAllSatisfied []*RemoveEntryRule`yaml:"removeEntryAllSatisfied,omitempty" json:"removeEntryAllSatisfied,omitempty" doc:"configuration for remove_entry_all_satisfied rule"`
65
65
KeepEntryQuerystring`yaml:"keepEntryQuery,omitempty" json:"keepEntryQuery,omitempty" doc:"configuration for keep_entry rule"`
66
-
KeepEntrySamplinguint16`yaml:"keepEntrySampling,omitempty" json:"keepEntrySampling,omitempty" doc:"sampling value for keep_entry type: 1 flow on <sampling> is kept"`
66
+
KeepEntrySamplinguint16`yaml:"keepEntrySampling,omitempty" json:"keepEntrySampling,omitempty" doc:"sampling interval for keep_entry type: 1 flow on <sampling> is kept"`
67
67
AddField*TransformFilterGenericRule`yaml:"addField,omitempty" json:"addField,omitempty" doc:"configuration for add_field rule"`
68
68
AddFieldIfDoesntExist*TransformFilterGenericRule`yaml:"addFieldIfDoesntExist,omitempty" json:"addFieldIfDoesntExist,omitempty" doc:"configuration for add_field_if_doesnt_exist rule"`
69
69
AddFieldIf*TransformFilterRuleWithAssignee`yaml:"addFieldIf,omitempty" json:"addFieldIf,omitempty" doc:"configuration for add_field_if rule"`
@@ -115,7 +115,7 @@ type RemoveEntryRule struct {
115
115
}
116
116
117
117
typeSamplingConditionstruct {
118
-
Valueuint16`yaml:"value,omitempty" json:"value,omitempty" doc:"sampling value: 1 flow on <sampling> is kept"`
118
+
Valueuint16`yaml:"value,omitempty" json:"value,omitempty" doc:"sampling interval: 1 flow on <sampling> is kept"`
119
119
Rules []*RemoveEntryRule`yaml:"rules,omitempty" json:"rules,omitempty" doc:"rules to be satisfied for this sampling configuration"`
0 commit comments