Skip to content

Commit

Permalink
fix: dont cut off next hop graph
Browse files Browse the repository at this point in the history
Closes #131

Change-Id: Iaa6c1e4b2667f40b1e1758a41c425437fcf55c87
Reviewed-on: https://review.monogon.dev/c/NetMeta/+/2240
Reviewed-by: Tim Windelschmidt <tim@monogon.tech>
  • Loading branch information
n0emis authored and fionera committed Oct 26, 2023
1 parent 4085972 commit 300481f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions deploy/dashboards/NetMeta_Overview.cue
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,20 @@ _trafficStatisticQueries: {
"""#
"Top 100 Next Hop":
#"""
SELECT
SELECT time, NextHop, BitsPerSecond
FROM
(SELECT
$__timeInterval(TimeReceived) as time,
NextHop,
(sum(Bytes * SamplingRate) * 8 / $__interval_s) AS BitsPerSecond
(sum(Bytes * SamplingRate) * 8 / $__interval_s) AS BitsPerSecond,
row_number() over (partition by time order by BitsPerSecond DESC) as row_num
FROM flows_raw
WHERE $__timeFilter(TimeReceived)
\#(_filtersWithHost)
AND NextHop != toIPv6('::')
GROUP BY time, NextHop
ORDER BY time
LIMIT 100
ORDER BY time) as subquery
where row_num <= 100
"""#
"Traffic per Ingress Interface":
#"""
Expand Down

0 comments on commit 300481f

Please sign in to comment.