Skip to content

Commit 7fd6c46

Browse files
authored
NETOBSERV-1902 Additionnal graphs + tab + autocomplete for UDN (#656)
* dev * udn mocks
1 parent 4b19487 commit 7fd6c46

23 files changed

+811
-55
lines changed

config/sample-config.yaml

Lines changed: 55 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,20 @@ frontend:
152152
# flow on current scope
153153
- Flows
154154
- DnsFlows
155+
# UDN
156+
- UdnId_Bytes
157+
- UdnId_Packets
158+
- min_UdnId_TimeFlowRttNs
159+
- max_UdnId_TimeFlowRttNs
160+
- avg_UdnId_TimeFlowRttNs
161+
- p90_UdnId_TimeFlowRttNs
162+
- p99_UdnId_TimeFlowRttNs
163+
- min_UdnId_DnsLatencyMs
164+
- max_UdnId_DnsLatencyMs
165+
- avg_UdnId_DnsLatencyMs
166+
- p90_UdnId_DnsLatencyMs
167+
- p99_UdnId_DnsLatencyMs
168+
- UdnId_Flows
155169
columns:
156170
- id: StartTime
157171
name: Start Time
@@ -586,6 +600,13 @@ frontend:
586600
field: Interfaces
587601
default: false
588602
width: 15
603+
- id: UDN
604+
name: User Defined Network
605+
tooltip: The user defined network identifier.
606+
field: UdnId
607+
filter: udn
608+
default: false
609+
width: 15
589610
- id: Bytes
590611
name: Bytes
591612
tooltip: The total aggregated number of bytes.
@@ -1022,6 +1043,10 @@ frontend:
10221043
component: autocomplete
10231044
placeholder: 'E.g: Ingress, Egress'
10241045
hint: Specify the direction of the Flow observed at the network interface observation point.
1046+
- id: udn
1047+
name: User Defined Network
1048+
component: autocomplete
1049+
hint: Specify a user defined network name.
10251050
- id: id
10261051
name: Conversation Id
10271052
component: text
@@ -1086,6 +1111,14 @@ frontend:
10861111
feature: multiCluster
10871112
filter: cluster_name
10881113
stepInto: zone
1114+
- id: udn
1115+
name: UDN
1116+
shortName: UDN
1117+
description: User Defined Network
1118+
labels:
1119+
- UdnId
1120+
filter: udn
1121+
stepInto: host
10891122
- id: zone
10901123
name: Zone
10911124
shortName: AZ
@@ -1099,17 +1132,21 @@ frontend:
10991132
filters:
11001133
- src_zone
11011134
- dst_zone
1102-
stepInto: host
1135+
stepInto: namespace
11031136
- id: host
11041137
name: Node
1138+
shortName: Node
11051139
description: Node on which the resources are running
11061140
labels:
11071141
- SrcK8S_HostName
11081142
- DstK8S_HostName
11091143
groups:
1110-
- clusters
1144+
- udns
11111145
- zones
1146+
- clusters
11121147
- clusters+zones
1148+
- clusters+udns
1149+
- udns+zones
11131150
filters:
11141151
- src_host_name
11151152
- dst_host_name
@@ -1128,6 +1165,9 @@ frontend:
11281165
- zones
11291166
- zones+hosts
11301167
- hosts
1168+
- udns
1169+
- udns+zones
1170+
- udns+hosts
11311171
filters:
11321172
- src_namespace
11331173
- dst_namespace
@@ -1154,6 +1194,10 @@ frontend:
11541194
- hosts
11551195
- hosts+namespaces
11561196
- namespaces
1197+
- udns
1198+
- udns+zones
1199+
- udns+hosts
1200+
- udns+namespaces
11571201
filters:
11581202
- src_owner_name
11591203
- dst_owner_name
@@ -1193,6 +1237,11 @@ frontend:
11931237
- namespaces
11941238
- namespaces+owners
11951239
- owners
1240+
- udns
1241+
- udns+zones
1242+
- udns+hosts
1243+
- udns+namespaces
1244+
- udns+owners
11961245
filters:
11971246
- src_resource
11981247
- dst_resource
@@ -1366,6 +1415,10 @@ frontend:
13661415
- name: K8S_ClusterName
13671416
type: string
13681417
description: Cluster name or identifier
1418+
- name: UdnId
1419+
type: string
1420+
description: User Defined Network
1421+
lokiLabel: true
13691422
- name: _RecordType
13701423
type: string
13711424
description: "Type of record: 'flowLog' for regular flow logs, or 'newConnection', 'heartbeat', 'endConnection' for conversation tracking"
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
{
2+
"status": "success",
3+
"data": {
4+
"resultType": "matrix",
5+
"result": [
6+
{
7+
"metric": {
8+
"UdnId": "my-udn"
9+
},
10+
"values": [
11+
[
12+
1708011360,
13+
"0.041666666666666664"
14+
],
15+
[
16+
1708011720,
17+
"0.6236111111111111"
18+
]
19+
]
20+
},
21+
{
22+
"metric": {
23+
"UdnId": "my-udn-2"
24+
},
25+
"values": [
26+
[
27+
1708011360,
28+
"0.036111111111111115"
29+
],
30+
[
31+
1708011720,
32+
"0.49166666666666664"
33+
]
34+
]
35+
}
36+
],
37+
"stats": {
38+
"summary": {
39+
"bytesProcessedPerSecond": 379050316,
40+
"linesProcessedPerSecond": 577163,
41+
"totalBytesProcessed": 221936446,
42+
"totalLinesProcessed": 337933,
43+
"execTime": 0.585506558,
44+
"queueTime": 5.295528995,
45+
"subqueries": 0,
46+
"totalEntriesReturned": 2,
47+
"splits": 6,
48+
"shards": 48,
49+
"totalPostFilterLines": 810,
50+
"totalStructuredMetadataBytesProcessed": 0
51+
},
52+
"querier": {
53+
"store": {
54+
"totalChunksRef": 0,
55+
"totalChunksDownloaded": 0,
56+
"chunksDownloadTime": 0,
57+
"chunk": {
58+
"headChunkBytes": 0,
59+
"headChunkLines": 0,
60+
"decompressedBytes": 0,
61+
"decompressedLines": 0,
62+
"compressedBytes": 0,
63+
"totalDuplicates": 0,
64+
"postFilterLines": 0,
65+
"headChunkStructuredMetadataBytes": 0,
66+
"decompressedStructuredMetadataBytes": 0
67+
}
68+
}
69+
},
70+
"ingester": {
71+
"totalReached": 48,
72+
"totalChunksMatched": 375,
73+
"totalBatches": 56,
74+
"totalLinesSent": 802,
75+
"store": {
76+
"totalChunksRef": 16,
77+
"totalChunksDownloaded": 16,
78+
"chunksDownloadTime": 7855086,
79+
"chunk": {
80+
"headChunkBytes": 18755808,
81+
"headChunkLines": 28594,
82+
"decompressedBytes": 203180638,
83+
"decompressedLines": 309339,
84+
"compressedBytes": 43253118,
85+
"totalDuplicates": 0,
86+
"postFilterLines": 810,
87+
"headChunkStructuredMetadataBytes": 0,
88+
"decompressedStructuredMetadataBytes": 0
89+
}
90+
}
91+
},
92+
"cache": {
93+
"chunk": {
94+
"entriesFound": 0,
95+
"entriesRequested": 0,
96+
"entriesStored": 0,
97+
"bytesReceived": 0,
98+
"bytesSent": 0,
99+
"requests": 0,
100+
"downloadTime": 0
101+
},
102+
"index": {
103+
"entriesFound": 0,
104+
"entriesRequested": 0,
105+
"entriesStored": 0,
106+
"bytesReceived": 0,
107+
"bytesSent": 0,
108+
"requests": 0,
109+
"downloadTime": 0
110+
},
111+
"result": {
112+
"entriesFound": 4,
113+
"entriesRequested": 6,
114+
"entriesStored": 3,
115+
"bytesReceived": 1372,
116+
"bytesSent": 0,
117+
"requests": 9,
118+
"downloadTime": 63334
119+
},
120+
"statsResult": {
121+
"entriesFound": 0,
122+
"entriesRequested": 0,
123+
"entriesStored": 0,
124+
"bytesReceived": 0,
125+
"bytesSent": 0,
126+
"requests": 0,
127+
"downloadTime": 0
128+
}
129+
}
130+
}
131+
}
132+
}

0 commit comments

Comments
 (0)