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
57 changes: 55 additions & 2 deletions config/sample-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,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 @@ -586,6 +600,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 @@ -1022,6 +1043,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 @@ -1086,6 +1111,14 @@ frontend:
feature: multiCluster
filter: cluster_name
stepInto: zone
- id: udn
name: UDN
shortName: UDN
description: User Defined Network
labels:
- UdnId
filter: udn
stepInto: host
- id: zone
name: Zone
shortName: AZ
Expand All @@ -1099,17 +1132,21 @@ frontend:
filters:
- src_zone
- dst_zone
stepInto: host
stepInto: namespace
- id: host
name: Node
shortName: Node
description: Node on which the resources are running
labels:
- SrcK8S_HostName
- DstK8S_HostName
groups:
- clusters
- udns
- zones
- clusters
- clusters+zones
- clusters+udns
- udns+zones
filters:
- src_host_name
- dst_host_name
Expand All @@ -1128,6 +1165,9 @@ frontend:
- zones
- zones+hosts
- hosts
- udns
- udns+zones
- udns+hosts
filters:
- src_namespace
- dst_namespace
Expand All @@ -1154,6 +1194,10 @@ frontend:
- hosts
- hosts+namespaces
- namespaces
- udns
- udns+zones
- udns+hosts
- udns+namespaces
filters:
- src_owner_name
- dst_owner_name
Expand Down Expand Up @@ -1193,6 +1237,11 @@ frontend:
- namespaces
- namespaces+owners
- owners
- udns
- udns+zones
- udns+hosts
- udns+namespaces
- udns+owners
filters:
- src_resource
- dst_resource
Expand Down Expand Up @@ -1366,6 +1415,10 @@ frontend:
- name: K8S_ClusterName
type: string
description: Cluster name or identifier
- 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
132 changes: 132 additions & 0 deletions mocks/loki/flow_metrics_dropped_udn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"UdnId": "my-udn"
},
"values": [
[
1708011360,
"0.041666666666666664"
],
[
1708011720,
"0.6236111111111111"
]
]
},
{
"metric": {
"UdnId": "my-udn-2"
},
"values": [
[
1708011360,
"0.036111111111111115"
],
[
1708011720,
"0.49166666666666664"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 379050316,
"linesProcessedPerSecond": 577163,
"totalBytesProcessed": 221936446,
"totalLinesProcessed": 337933,
"execTime": 0.585506558,
"queueTime": 5.295528995,
"subqueries": 0,
"totalEntriesReturned": 2,
"splits": 6,
"shards": 48,
"totalPostFilterLines": 810,
"totalStructuredMetadataBytesProcessed": 0
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0,
"postFilterLines": 0,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
}
}
},
"ingester": {
"totalReached": 48,
"totalChunksMatched": 375,
"totalBatches": 56,
"totalLinesSent": 802,
"store": {
"totalChunksRef": 16,
"totalChunksDownloaded": 16,
"chunksDownloadTime": 7855086,
"chunk": {
"headChunkBytes": 18755808,
"headChunkLines": 28594,
"decompressedBytes": 203180638,
"decompressedLines": 309339,
"compressedBytes": 43253118,
"totalDuplicates": 0,
"postFilterLines": 810,
"headChunkStructuredMetadataBytes": 0,
"decompressedStructuredMetadataBytes": 0
}
}
},
"cache": {
"chunk": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0
},
"index": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0
},
"result": {
"entriesFound": 4,
"entriesRequested": 6,
"entriesStored": 3,
"bytesReceived": 1372,
"bytesSent": 0,
"requests": 9,
"downloadTime": 63334
},
"statsResult": {
"entriesFound": 0,
"entriesRequested": 0,
"entriesStored": 0,
"bytesReceived": 0,
"bytesSent": 0,
"requests": 0,
"downloadTime": 0
}
}
}
}
}
Loading
Loading