Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions apis/flowcollector/v1beta2/flowcollector_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,11 @@ type FlowCollectorEBPF struct {
type FlowCollectorKafka struct {
// Important: Run "make generate" to regenerate code after modifying this file

//+kubebuilder:default:=""
// +kubebuilder:default:=""
// Address of the Kafka server
Address string `json:"address"`

//+kubebuilder:default:=""
// +kubebuilder:default:=""
// Kafka topic to use. It must exist. NetObserv does not create it.
Topic string `json:"topic"`

Expand All @@ -396,11 +396,12 @@ type FlowCollectorKafka struct {
}

type FlowCollectorIPFIXReceiver struct {
//+kubebuilder:default:=""
// +kubebuilder:default:=""
// Address of the IPFIX external receiver.
TargetHost string `json:"targetHost"`

// Port for the IPFIX external receiver.
// +kubebuilder:default:=4739
TargetPort int `json:"targetPort"`

// Transport protocol (`TCP` or `UDP`) to be used for the IPFIX connection, defaults to `TCP`.
Expand All @@ -412,13 +413,13 @@ type FlowCollectorIPFIXReceiver struct {

type FlowCollectorOpenTelemetryLogs struct {
// Set `enable` to `true` to send logs to an OpenTelemetry receiver.
//+kubebuilder:default:=true
// +kubebuilder:default:=true
Enable *bool `json:"enable,omitempty"`
}

type FlowCollectorOpenTelemetryMetrics struct {
// Set `enable` to `true` to send metrics to an OpenTelemetry receiver.
//+kubebuilder:default:=true
// +kubebuilder:default:=true
Enable *bool `json:"enable,omitempty"`

// Specify how often metrics are sent to a collector.
Expand All @@ -440,6 +441,7 @@ type FlowCollectorOpenTelemetry struct {
TargetHost string `json:"targetHost"`

// Port for the OpenTelemetry receiver.
// +kubebuilder:default:=4317
TargetPort int `json:"targetPort"`

// Protocol of the OpenTelemetry connection. The available options are `http` and `grpc`.
Expand Down
2 changes: 2 additions & 0 deletions bundle/manifests/flows.netobserv.io_flowcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5782,6 +5782,7 @@ spec:
description: Address of the IPFIX external receiver.
type: string
targetPort:
default: 4739
description: Port for the IPFIX external receiver.
type: integer
transport:
Expand Down Expand Up @@ -6018,6 +6019,7 @@ spec:
description: Address of the OpenTelemetry receiver.
type: string
targetPort:
default: 4317
description: Port for the OpenTelemetry receiver.
type: integer
tls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -732,6 +732,10 @@ spec:
path: exporters[0].kafka
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:fieldDependency:exporters.type:Kafka
- displayName: OpenTelemetry configuration
path: exporters[0].openTelemetry
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:fieldDependency:exporters.type:OpenTelemetry
- displayName: Exclude interfaces
path: agent.ebpf.excludeInterfaces
- displayName: Features
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/flows.netobserv.io_flowcollectors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5366,6 +5366,7 @@ spec:
description: Address of the IPFIX external receiver.
type: string
targetPort:
default: 4739
description: Port for the IPFIX external receiver.
type: integer
transport:
Expand Down Expand Up @@ -5567,6 +5568,7 @@ spec:
description: Address of the OpenTelemetry receiver.
type: string
targetPort:
default: 4317
description: Port for the OpenTelemetry receiver.
type: integer
tls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@ spec:
path: exporters[0].kafka
x-descriptors:
- "urn:alm:descriptor:com.tectonic.ui:fieldDependency:exporters.type:Kafka"
- displayName: OpenTelemetry configuration
path: exporters[0].openTelemetry
x-descriptors:
- "urn:alm:descriptor:com.tectonic.ui:fieldDependency:exporters.type:OpenTelemetry"
statusDescriptors:
- displayName: Namespace
description: Namespace where console plugin and flowlogs-pipeline have been deployed.
Expand Down
4 changes: 4 additions & 0 deletions docs/FlowCollector.md
Original file line number Diff line number Diff line change
Expand Up @@ -11715,6 +11715,8 @@ IPFIX configuration, such as the IP address and port to send enriched IPFIX flow
<td>integer</td>
<td>
Port for the IPFIX external receiver.<br/>
<br/>
<i>Default</i>: 4739<br/>
</td>
<td>true</td>
</tr><tr>
Expand Down Expand Up @@ -12135,6 +12137,8 @@ OpenTelemetry configuration, such as the IP address and port to send enriched lo
<td>integer</td>
<td>
Port for the OpenTelemetry receiver.<br/>
<br/>
<i>Default</i>: 4317<br/>
</td>
<td>true</td>
</tr><tr>
Expand Down
Loading