From ca925ae2e60de8551636a69ca26360a822eff6c7 Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Fri, 28 Jun 2019 18:28:10 -0700 Subject: [PATCH] dashboard: Add some extra detail sections for backfiller and downloader --- monitoring/dashboards/overview.jsonnet | 37 ++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/monitoring/dashboards/overview.jsonnet b/monitoring/dashboards/overview.jsonnet index e30b331..139c139 100644 --- a/monitoring/dashboards/overview.jsonnet +++ b/monitoring/dashboards/overview.jsonnet @@ -143,6 +143,43 @@ grafana.dashboard({ ], }, + { + name: "Downloader", + panels: [ + { + name: "Segments downloaded by node", + axis: {min: 0, label: "segments / sec"}, + expressions: { + "{{instance}} {{stream}}({{variant}})": + 'sum(rate(segments_downloaded_total[2m])) by (instance, stream, variant)', + }, + }, + { + name: "Downloader stream delay by node", + tooltip: "Time between the latest downloaded segment's timestamp and current time", + axis: {min: 0, format: grafana.formats.time}, + expressions: { + "{{instance}} {{stream}}({{variant}})": + 'time() - max(latest_segment) by (instance, stream, variant)', + }, + }, + ], + }, + + { + name: "Backfiller", + panels: [ + { + name: "Backfill by node pair", + axis: {min: 0, label: "segments / sec"}, + expressions: { + "{{remote}} -> {{instance}}": + 'sum(rate(segments_backfilled_total[2m])) by (remote, instance)', + }, + }, + ], + }, + ], })