Skip to content

Commit fb5d518

Browse files
committed
dahboard.py amelioration for better visibility
1 parent fffcdd5 commit fb5d518

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

monitoring/lifecycle/dashboard.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,7 @@ def color_override(name, color):
768768
dataSource="${DS_PROMETHEUS}",
769769
fillOpacity=20,
770770
lineInterpolation="smooth",
771+
decimals=0,
771772
targets=[
772773
Target(
773774
expr=Metrics.SCAN_COUNT(type='bucket'),
@@ -786,26 +787,33 @@ def color_override(name, color):
786787

787788
bucket_processor_scan_progress = TimeSeries(
788789
title="Bucket Processor Scan Progress",
789-
description="Shows whether each bucket processor is actively "
790-
"processing a scan. Non-zero = scan in progress (value is "
791-
"the scan start timestamp). When all pods reset to 0, the "
792-
"end-to-end scan is complete.",
790+
description="Shows how long each bucket processor has been working "
791+
"on the current scan. Drops to 0 / disappears when idle.",
793792
dataSource="${DS_PROMETHEUS}",
794793
lineInterpolation="smooth",
794+
unit=UNITS.SECONDS,
795795
targets=[
796796
Target(
797-
expr=Metrics.BUCKET_PROCESSOR_SCAN_START_TIME() + ' > 0',
797+
expr='(time() * 1000 - '
798+
+ Metrics.BUCKET_PROCESSOR_SCAN_START_TIME()
799+
+ ') / 1000 > 0',
798800
legendFormat='{{pod}}',
799801
),
800802
],
801803
)
802804

803805
bucket_processor_buckets = TimeSeries(
804806
title="Bucket Processor Lifecycle Buckets",
805-
description="Number of lifecycle-enabled buckets processed by "
806-
"each bucket processor during the current scan.",
807+
description="Running count of lifecycle-enabled bucket tasks "
808+
"processed by each bucket processor pod since it last "
809+
"detected a new scan. Resets when the pod receives the "
810+
"first message of a new conductor scan. As Kafka "
811+
"distributes messages across pods, not every pod sees "
812+
"every scan boundary, so values may accumulate across "
813+
"multiple scans.",
807814
dataSource="${DS_PROMETHEUS}",
808815
lineInterpolation="smooth",
816+
decimals=0,
809817
targets=[
810818
Target(
811819
expr=Metrics.BUCKET_PROCESSOR_BUCKETS_COUNT(),

0 commit comments

Comments
 (0)