Skip to content

Commit 25365df

Browse files
author
Robin Hermann
committed
fix: pattern for sourceLabels & DestinationLabels extraction
1 parent 6c8f73d commit 25365df

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

helm/hubble-observer/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: hubble-observer
33
description: A Helm chart for Hubble Observer - A small observability component that monitors network flows within Cilium.
44
type: application
5-
version: 1.2.2
5+
version: 1.2.3
66
appVersion: "1.16.4"
77
keywords:
88
- networking

helm/hubble-observer/dashboard/cilium-hubble-flows.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@
10831083
},
10841084
"direction": "backward",
10851085
"editorMode": "code",
1086-
"expr": "{namespace=\"$hubbleobservernamespace\",container=\"hubble-observer\"} |~ `(?i)$searchregex` !~ `(?i)$excluderegex`\n| $cri_logparser \n| flow_source_namespace=~\"$sourcenamespace\" | flow_destination_namespace=~\"$destinationnamespace\" | flow_traffic_direction=~\"$direction\" | flow_IP_ipVersion=~\"$ipversion\" | json flow_destination_name=\"flow.destination_names[0]\"\n| pattern `<_>,\"source\":{<_>\"labels\":[<sourceLabels>]},\"destination\":{<_>\"labels\":[<destinationLabels>]}` #\"source\":{\"identity\":6,\"labels\":[\"reserved:remote-node\"]},\"destination\"\n| label_format \n Verdict=`{{.flow_verdict}}`,\n Source_IP=`{{.flow_IP_source}}`,\n Source=`{{ if .flow_source_pod_name }}{{.flow_source_pod_name}} (Pod) {{else}} {{.sourceLabels}} (Label) {{end}}`,\n Source_Namespace=`{{.flow_source_namespace}}`,\n Direction=`{{.flow_traffic_direction}}`,\n Dest_Port=`{{ if .flow_l4_TCP_destination_port}}TCP-{{.flow_l4_TCP_destination_port}}{{else if .flow_l4_UDP_destination_port}}UDP-{{.flow_l4_UDP_destination_port}}{{else if .flow_l4_ICMPv4_type}} ICMPv4 {{else}}{{end}}`, #\n #Destination=`{{.flow_destination_name}}`,\n Destination=`{{ if .flow_destination_pod_name }}{{.flow_destination_pod_name}} (Pod) {{ else if .flow_destination_name }}{{.flow_destination_name}} (URL){{else}} {{.destinationLabels}} (Label) {{end}}`,\n #Destination_Pod=`{{.flow_destination_pod_name}}`,\n Destination_Namespace=`{{.flow_destination_namespace}}`,\n Destination_IP=`{{.flow_IP_destination}}`, \n Drop_Description=`{{.flow_drop_reason_desc}}`,\n Flow_UUID=`{{.flow_uuid}}`",
1086+
"expr": "{namespace=\"$hubbleobservernamespace\",container=\"hubble-observer\"} |~ `(?i)$searchregex` !~ `(?i)$excluderegex`\n| $cri_logparser \n| flow_source_namespace=~\"$sourcenamespace\" | flow_destination_namespace=~\"$destinationnamespace\" | flow_traffic_direction=~\"$direction\" | flow_IP_ipVersion=~\"$ipversion\" | json flow_destination_name=\"flow.destination_names[0]\"\n| pattern `<_>\"source\":{<_>\"labels\":[<sourceLabels>]<_>}<_>,\"destination\":{<_>\"labels\":[<destinationLabels>]}<_>`\n| label_format \n Verdict=`{{.flow_verdict}}`,\n Source_IP=`{{.flow_IP_source}}`,\n Source=`{{ if .flow_source_pod_name }}{{.flow_source_pod_name}} (Pod) {{else}} {{.sourceLabels}} (Label) {{end}}`,\n Source_Namespace=`{{.flow_source_namespace}}`,\n Direction=`{{.flow_traffic_direction}}`,\n Dest_Port=`{{ if .flow_l4_TCP_destination_port}}TCP-{{.flow_l4_TCP_destination_port}}{{else if .flow_l4_UDP_destination_port}}UDP-{{.flow_l4_UDP_destination_port}}{{else if .flow_l4_ICMPv4_type}} ICMPv4 {{else}}{{end}}`, #\n #Destination=`{{.flow_destination_name}}`,\n Destination=`{{ if .flow_destination_pod_name }}{{.flow_destination_pod_name}} (Pod) {{ else if .flow_destination_name }}{{.flow_destination_name}} (URL){{else}} {{.destinationLabels}} (Label) {{end}}`,\n #Destination_Pod=`{{.flow_destination_pod_name}}`,\n Destination_Namespace=`{{.flow_destination_namespace}}`,\n Destination_IP=`{{.flow_IP_destination}}`, \n Drop_Description=`{{.flow_drop_reason_desc}}`,\n Flow_UUID=`{{.flow_uuid}}`",
10871087
"maxLines": 100,
10881088
"queryType": "range",
10891089
"refId": "A"

0 commit comments

Comments
 (0)