Skip to content

Commit

Permalink
Improve the sweep lag panel in the retention dashboard. (#4030)
Browse files Browse the repository at this point in the history
This uses now a graph panel which shows us lags over time.

Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
  • Loading branch information
cyriltovena authored Jul 23, 2021
1 parent 17f4a73 commit 6c05970
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion production/loki-mixin/dashboards/loki-retention.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ local utils = import 'mixin-utils/utils.libsonnet';
.addRow(
$.row('')
.addPanel(
$.fromNowPanel('Sweep Lag', 'loki_boltdb_shipper_retention_sweeper_marker_file_processing_current_time')
$.queryPanel(['time() - (loki_boltdb_shipper_retention_sweeper_marker_file_processing_current_time{%s} > 0)' % $.namespaceMatcher()], ['lag']) + {
yaxes: g.yaxes({ format: 's', min: null }),
},
)
.addPanel(
$.panel('Marks Files to Process') +
Expand Down

0 comments on commit 6c05970

Please sign in to comment.