Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NETOBSERV-1190: use DNS latency instead of timestamps #356

Merged
merged 31 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3f1273d
PoC packet loss
jpinsonneau Apr 28, 2023
5c2042c
renamed Dropped -> TcpDrop
jpinsonneau May 2, 2023
e1d4d7f
fix errors and tests
jpinsonneau May 2, 2023
5a64637
add interface field & filter
jpinsonneau May 2, 2023
fe1a035
updated mocks
jpinsonneau May 10, 2023
4e1e6e8
overview & topology
jpinsonneau May 10, 2023
2dec416
dropped donuts
jpinsonneau May 23, 2023
5695cd0
state / cause filters and display
jpinsonneau May 26, 2023
3d2a3bc
ICMP & DNS
jpinsonneau Jun 8, 2023
8caac4d
optional features
jpinsonneau Jun 20, 2023
be424e8
drop latest renaming
jpinsonneau Jun 20, 2023
9096644
add drop state to defaults panels
jpinsonneau Jun 21, 2023
1d4e66a
manage DNS ID NaN
jpinsonneau Jun 21, 2023
c0f7a1e
fix compareToDropped
jpinsonneau Jun 21, 2023
05d1d75
update mocks
jpinsonneau Jun 21, 2023
ed4fcff
improved DNS latency tooltip
jpinsonneau Jun 21, 2023
8be4ab5
show ICMP details without drops
jpinsonneau Jun 21, 2023
6f0a6be
updated dns latency in summary panel
jpinsonneau Jun 21, 2023
de08501
hide dns id filter when not enabled
jpinsonneau Jun 21, 2023
1a87858
remove tcp drop enums
jpinsonneau Jun 28, 2023
991809d
removed unused field
jpinsonneau Jul 7, 2023
3442611
drops filter renaming
jpinsonneau Jul 7, 2023
dbc38e1
reuse lineFilters
jpinsonneau Jul 10, 2023
eaac85f
strict match on key
jpinsonneau Jul 10, 2023
f1dd55b
updated sent filter to match description
jpinsonneau Jul 10, 2023
2408676
aggregateBy
jpinsonneau Jul 11, 2023
0df2610
avoid divide by 0
jpinsonneau Jul 11, 2023
202797a
rebase fix
jpinsonneau Jul 12, 2023
cff3a93
dns response code + optionnal fields
jpinsonneau Jul 12, 2023
5e94cc3
update examples
jpinsonneau Jul 12, 2023
1fc4837
NETOBSERV-1190: use DNS latency instead of timestamps
msherif1234 Jul 14, 2023
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
3 changes: 3 additions & 0 deletions config/sample-frontend-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ quickFilters:
alertNamespaces:
- netobserv
sampling: 50
features:
- tcpDrop
- dnsTracking
383 changes: 382 additions & 1 deletion mocks/loki/flows.json

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions mocks/loki/flows_dropped.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [],
"stats": {
"summary": {
"bytesProcessedPerSecond": 0,
"linesProcessedPerSecond": 0,
"totalBytesProcessed": 0,
"totalLinesProcessed": 0,
"execTime": 0.176365334,
"queueTime": 2.993629871,
"subqueries": 61,
"totalEntriesReturned": 0
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0
}
}
},
"ingester": {
"totalReached": 112,
"totalChunksMatched": 0,
"totalBatches": 0,
"totalLinesSent": 0,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0
}
}
}
}
}
}
53 changes: 53 additions & 0 deletions mocks/loki/flows_has_dropped.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"status": "success",
"data": {
"resultType": "streams",
"result": [],
"stats": {
"summary": {
"bytesProcessedPerSecond": 0,
"linesProcessedPerSecond": 0,
"totalBytesProcessed": 0,
"totalLinesProcessed": 0,
"execTime": 0.173060291,
"queueTime": 2.971519607,
"subqueries": 61,
"totalEntriesReturned": 0
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0
}
}
},
"ingester": {
"totalReached": 112,
"totalChunksMatched": 0,
"totalBatches": 0,
"totalLinesSent": 0,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0
}
}
}
}
}
}
560 changes: 560 additions & 0 deletions mocks/loki/flows_sent.json

Large diffs are not rendered by default.

51 changes: 50 additions & 1 deletion mocks/loki/namespaces.json
Original file line number Diff line number Diff line change
@@ -1 +1,50 @@
{"status":"success","data":["","default","netobserv","openshift-apiserver","openshift-apiserver-operator","openshift-authentication","openshift-authentication-operator","openshift-cloud-credential-operator","openshift-cloud-network-config-controller","openshift-cluster-csi-drivers","openshift-cluster-node-tuning-operator","openshift-cluster-samples-operator","openshift-cluster-storage-operator","openshift-config-operator","openshift-console","openshift-console-operator","openshift-controller-manager","openshift-controller-manager-operator","openshift-dns","openshift-dns-operator","openshift-etcd-operator","openshift-image-registry","openshift-ingress","openshift-ingress-canary","openshift-ingress-operator","openshift-insights","openshift-kube-apiserver","openshift-kube-apiserver-operator","openshift-kube-controller-manager-operator","openshift-kube-scheduler-operator","openshift-kube-storage-version-migrator","openshift-kube-storage-version-migrator-operator","openshift-machine-api","openshift-machine-config-operator","openshift-marketplace","openshift-monitoring","openshift-multus","openshift-network-diagnostics","openshift-oauth-apiserver","openshift-operator-lifecycle-manager","openshift-operators","openshift-service-ca","openshift-service-ca-operator"]}
{
"status": "success",
"data": [
"default",
"netobserv",
"openshift-apiserver",
"openshift-apiserver-operator",
"openshift-authentication",
"openshift-authentication-operator",
"openshift-cloud-credential-operator",
"openshift-cloud-network-config-controller",
"openshift-cluster-csi-drivers",
"openshift-cluster-node-tuning-operator",
"openshift-cluster-samples-operator",
"openshift-cluster-storage-operator",
"openshift-config-operator",
"openshift-console",
"openshift-console-operator",
"openshift-controller-manager",
"openshift-controller-manager-operator",
"openshift-dns",
"openshift-dns-operator",
"openshift-e2e-loki",
"openshift-etcd",
"openshift-etcd-operator",
"openshift-image-registry",
"openshift-ingress",
"openshift-ingress-canary",
"openshift-ingress-operator",
"openshift-insights",
"openshift-kube-apiserver",
"openshift-kube-apiserver-operator",
"openshift-kube-controller-manager-operator",
"openshift-kube-scheduler",
"openshift-kube-scheduler-operator",
"openshift-kube-storage-version-migrator",
"openshift-kube-storage-version-migrator-operator",
"openshift-machine-api",
"openshift-machine-config-operator",
"openshift-marketplace",
"openshift-monitoring",
"openshift-multus",
"openshift-network-diagnostics",
"openshift-oauth-apiserver",
"openshift-operator-lifecycle-manager",
"openshift-route-controller-manager",
"openshift-service-ca",
"openshift-service-ca-operator"
]
}
106 changes: 105 additions & 1 deletion mocks/loki/topology_app.json
Original file line number Diff line number Diff line change
@@ -1 +1,105 @@
{"status":"success","data":{"resultType":"matrix","result":[{"metric":{"app":"netobserv-flowcollector"},"values":[[1667835240,"198.0712594007031"],[1667835255,"166397.4337099666"],[1667835270,"191495.12958610992"],[1667835285,"78639.41357971056"],[1667835300,"65217.3999710645"],[1667835315,"42264.24297451782"],[1667835330,"38787.97354376948"],[1667835345,"38390.60593892866"],[1667835360,"225207.26066852812"],[1667835375,"325021.0660155179"],[1667835390,"107786.04243344248"],[1667835405,"405876.57716574694"],[1667835420,"425972.7677463872"],[1667835435,"60627.76201690011"],[1667835450,"36025.30429681212"],[1667835465,"42146.07609019042"],[1667835480,"48279.516395224644"],[1667835495,"50006.35108892383"],[1667835510,"48981.883357347375"],[1667835525,"38750.07356896141"],[1667835540,"77452.61273185337"],[1667835555,"76837.54518151857"],[1667835570,"39889.30769636803"],[1667835585,"56304.32403319737"],[1667835600,"66838.20169032256"],[1667835615,"48078.382244957305"],[1667835630,"34645.46916960136"],[1667835645,"41622.1426005803"],[1667835660,"47633.44942873866"],[1667835675,"38179.90581174526"],[1667835690,"33626.30123040459"],[1667835705,"409898.78335795127"],[1667835720,"414053.38730543945"],[1667835735,"39229.93988297462"],[1667835750,"34732.33573674044"],[1667835765,"38967.139616972025"],[1667835780,"39250.80696785842"],[1667835795,"35414.40303640098"],[1667835810,"34819.73595168182"]]}],"stats":{"summary":{"bytesProcessedPerSecond":97453826,"linesProcessedPerSecond":194051,"totalBytesProcessed":30828924,"totalLinesProcessed":61387,"execTime":0.316343905,"queueTime":6.03145681,"subqueries":61},"querier":{"store":{"totalChunksRef":0,"totalChunksDownloaded":0,"chunksDownloadTime":0,"chunk":{"headChunkBytes":0,"headChunkLines":0,"decompressedBytes":0,"decompressedLines":0,"compressedBytes":0,"totalDuplicates":0}}},"ingester":{"totalReached":160,"totalChunksMatched":2943,"totalBatches":177,"totalLinesSent":43211,"store":{"totalChunksRef":0,"totalChunksDownloaded":0,"chunksDownloadTime":0,"chunk":{"headChunkBytes":13440444,"headChunkLines":25054,"decompressedBytes":17388480,"decompressedLines":36333,"compressedBytes":5309919,"totalDuplicates":0}}}}}}
{
"status": "success",
"data": {
"resultType": "matrix",
"result": [
{
"metric": {
"app": "netobserv-flowcollector"
},
"values": [
[
1689357240,
"95.18611111111112"
],
[
1689357600,
"95.86388888888888"
],
[
1689357960,
"95.90277777777779"
],
[
1689358320,
"94.43472222222222"
],
[
1689358680,
"95.92777777777778"
],
[
1689359040,
"95.40555555555557"
],
[
1689359400,
"95.04722222222222"
],
[
1689359760,
"95.82500000000002"
],
[
1689360120,
"93.0513888888889"
],
[
1689360480,
"94.64999999999999"
],
[
1689360840,
"96.88194444444446"
]
]
}
],
"stats": {
"summary": {
"bytesProcessedPerSecond": 17608526,
"linesProcessedPerSecond": 24920,
"totalBytesProcessed": 74698211,
"totalLinesProcessed": 105716,
"execTime": 4.242161489,
"queueTime": 63.642161992,
"subqueries": 6,
"totalEntriesReturned": 1
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0
}
}
},
"ingester": {
"totalReached": 16,
"totalChunksMatched": 448,
"totalBatches": 139,
"totalLinesSent": 67356,
"store": {
"totalChunksRef": 6,
"totalChunksDownloaded": 6,
"chunksDownloadTime": 3711023,
"chunk": {
"headChunkBytes": 15316800,
"headChunkLines": 22003,
"decompressedBytes": 59381411,
"decompressedLines": 83713,
"compressedBytes": 12306027,
"totalDuplicates": 2793
}
}
}
}
}
}
53 changes: 53 additions & 0 deletions mocks/loki/topology_dropped_app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"status": "success",
"data": {
"resultType": "matrix",
"result": [],
"stats": {
"summary": {
"bytesProcessedPerSecond": 0,
"linesProcessedPerSecond": 0,
"totalBytesProcessed": 0,
"totalLinesProcessed": 0,
"execTime": 0.353636484,
"queueTime": 1.037140248,
"subqueries": 6,
"totalEntriesReturned": 0
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0
}
}
},
"ingester": {
"totalReached": 16,
"totalChunksMatched": 0,
"totalBatches": 0,
"totalLinesSent": 0,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0
}
}
}
}
}
}
53 changes: 53 additions & 0 deletions mocks/loki/topology_dropped_cause.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"status": "success",
"data": {
"resultType": "matrix",
"result": [],
"stats": {
"summary": {
"bytesProcessedPerSecond": 0,
"linesProcessedPerSecond": 0,
"totalBytesProcessed": 0,
"totalLinesProcessed": 0,
"execTime": 0.345117107,
"queueTime": 0.910854438,
"subqueries": 6,
"totalEntriesReturned": 0
},
"querier": {
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0
}
}
},
"ingester": {
"totalReached": 16,
"totalChunksMatched": 0,
"totalBatches": 0,
"totalLinesSent": 0,
"store": {
"totalChunksRef": 0,
"totalChunksDownloaded": 0,
"chunksDownloadTime": 0,
"chunk": {
"headChunkBytes": 0,
"headChunkLines": 0,
"decompressedBytes": 0,
"decompressedLines": 0,
"compressedBytes": 0,
"totalDuplicates": 0
}
}
}
}
}
}
Loading
Loading