Skip to content
Closed
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
32 changes: 31 additions & 1 deletion config/sample-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ loki:
- DstK8S_Type
- K8S_FlowLayer
- FlowDirection
- UdnId
# - Duplicate
# - _RecordType
# - K8S_ClusterName
Expand Down Expand Up @@ -82,7 +83,7 @@ frontend:
merge: false
# The following configuration is taken from Network Observability Operator
# see https://github.com/netobserv/network-observability-operator/blob/main/controllers/consoleplugin/config/static-frontend-config.yaml
panels:
panels:
# Protocol
- Proto_Bytes
- sum_Proto_Bytes
Expand Down Expand Up @@ -152,6 +153,20 @@ frontend:
# flow on current scope
- Flows
- DnsFlows
# UDN
- UdnId_Bytes
- UdnId_Packets
- min_UdnId_TimeFlowRttNs
- max_UdnId_TimeFlowRttNs
- avg_UdnId_TimeFlowRttNs
- p90_UdnId_TimeFlowRttNs
- p99_UdnId_TimeFlowRttNs
- min_UdnId_DnsLatencyMs
- max_UdnId_DnsLatencyMs
- avg_UdnId_DnsLatencyMs
- p90_UdnId_DnsLatencyMs
- p99_UdnId_DnsLatencyMs
- UdnId_Flows
columns:
- id: StartTime
name: Start Time
Expand Down Expand Up @@ -555,6 +570,13 @@ frontend:
field: Interfaces
default: false
width: 15
- id: UDN
name: User Defined Network
tooltip: The user defined network identifier.
field: UdnId
filter: udn
default: false
width: 15
- id: Bytes
name: Bytes
tooltip: The total aggregated number of bytes.
Expand Down Expand Up @@ -932,6 +954,10 @@ frontend:
component: autocomplete
placeholder: 'E.g: Ingress, Egress'
hint: Specify the direction of the Flow observed at the network interface observation point.
- id: udn
name: User Defined Network
component: autocomplete
hint: Specify a user defined network name.
- id: id
name: Conversation Id
component: text
Expand Down Expand Up @@ -1154,6 +1180,10 @@ frontend:
type: string
description: Cluster name or identifier
lokiLabel: true
- name: UdnId
type: string
description: User Defined Network
lokiLabel: true
- name: _RecordType
type: string
description: "Type of record: 'flowLog' for regular flow logs, or 'newConnection', 'heartbeat', 'endConnection' for conversation tracking"
Expand Down
2 changes: 1 addition & 1 deletion mocks/loki/flow_metrics_dropped_app.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,4 @@
}
}
}
}
}
32 changes: 21 additions & 11 deletions mocks/loki/flow_metrics_dropped_namespace.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"result": [
{
"metric": {
"SrcK8S_Namespace": "netobserv"
"SrcK8S_Namespace": "netobserv",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -20,7 +21,8 @@
},
{
"metric": {
"SrcK8S_Namespace": "openshift-console"
"SrcK8S_Namespace": "openshift-console",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -35,7 +37,8 @@
},
{
"metric": {
"SrcK8S_Namespace": "openshift-console-operator"
"SrcK8S_Namespace": "openshift-console-operator",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -50,7 +53,8 @@
},
{
"metric": {
"SrcK8S_Namespace": "openshift-insights"
"SrcK8S_Namespace": "openshift-insights",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -65,7 +69,8 @@
},
{
"metric": {
"SrcK8S_Namespace": "openshift-kube-storage-version-migrator-operator"
"SrcK8S_Namespace": "openshift-kube-storage-version-migrator-operator",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -80,7 +85,8 @@
},
{
"metric": {
"SrcK8S_Namespace": "openshift-monitoring"
"SrcK8S_Namespace": "openshift-monitoring",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -95,7 +101,8 @@
},
{
"metric": {
"SrcK8S_Namespace": "openshift-multus"
"SrcK8S_Namespace": "openshift-multus",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -106,7 +113,8 @@
},
{
"metric": {
"SrcK8S_Namespace": "openshift-network-diagnostics"
"SrcK8S_Namespace": "openshift-network-diagnostics",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -121,7 +129,8 @@
},
{
"metric": {
"SrcK8S_Namespace": "openshift-service-ca"
"SrcK8S_Namespace": "openshift-service-ca",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -136,7 +145,8 @@
},
{
"metric": {
"SrcK8S_Namespace": "openshift-service-ca-operator"
"SrcK8S_Namespace": "openshift-service-ca-operator",
"UdnId": "my-udn"
},
"values": [
[
Expand Down Expand Up @@ -258,4 +268,4 @@
}
}
}
}
}
35 changes: 23 additions & 12 deletions mocks/loki/flow_metrics_dropped_owner.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"metric": {
"SrcK8S_Namespace": "netobserv",
"SrcK8S_OwnerName": "flowlogs-pipeline",
"SrcK8S_OwnerType": "DaemonSet"
"SrcK8S_OwnerType": "DaemonSet",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -24,7 +25,8 @@
"metric": {
"SrcK8S_Namespace": "openshift-console",
"SrcK8S_OwnerName": "console",
"SrcK8S_OwnerType": "Deployment"
"SrcK8S_OwnerType": "Deployment",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -41,7 +43,8 @@
"metric": {
"SrcK8S_Namespace": "openshift-console-operator",
"SrcK8S_OwnerName": "console-operator",
"SrcK8S_OwnerType": "Deployment"
"SrcK8S_OwnerType": "Deployment",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -58,7 +61,8 @@
"metric": {
"SrcK8S_Namespace": "openshift-insights",
"SrcK8S_OwnerName": "insights-operator",
"SrcK8S_OwnerType": "Deployment"
"SrcK8S_OwnerType": "Deployment",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -75,7 +79,8 @@
"metric": {
"SrcK8S_Namespace": "openshift-kube-storage-version-migrator-operator",
"SrcK8S_OwnerName": "kube-storage-version-migrator-operator",
"SrcK8S_OwnerType": "Deployment"
"SrcK8S_OwnerType": "Deployment",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -92,7 +97,8 @@
"metric": {
"SrcK8S_Namespace": "openshift-monitoring",
"SrcK8S_OwnerName": "prometheus-k8s",
"SrcK8S_OwnerType": "StatefulSet"
"SrcK8S_OwnerType": "StatefulSet",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -109,7 +115,8 @@
"metric": {
"SrcK8S_Namespace": "openshift-multus",
"SrcK8S_OwnerName": "network-metrics-daemon",
"SrcK8S_OwnerType": "DaemonSet"
"SrcK8S_OwnerType": "DaemonSet",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -122,7 +129,8 @@
"metric": {
"SrcK8S_Namespace": "openshift-network-diagnostics",
"SrcK8S_OwnerName": "network-check-source",
"SrcK8S_OwnerType": "Deployment"
"SrcK8S_OwnerType": "Deployment",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -139,7 +147,8 @@
"metric": {
"SrcK8S_Namespace": "openshift-service-ca",
"SrcK8S_OwnerName": "service-ca",
"SrcK8S_OwnerType": "Deployment"
"SrcK8S_OwnerType": "Deployment",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -156,7 +165,8 @@
"metric": {
"SrcK8S_Namespace": "openshift-service-ca-operator",
"SrcK8S_OwnerName": "service-ca-operator",
"SrcK8S_OwnerType": "Deployment"
"SrcK8S_OwnerType": "Deployment",
"UdnId": "my-udn"
},
"values": [
[
Expand All @@ -172,7 +182,8 @@
{
"metric": {
"SrcK8S_OwnerName": "ip-10-0-1-7.ec2.internal",
"SrcK8S_OwnerType": "Node"
"SrcK8S_OwnerType": "Node",
"UdnId": "my-udn"
},
"values": [
[
Expand Down Expand Up @@ -281,4 +292,4 @@
}
}
}
}
}
Loading
Loading