]> git.ipfire.org Git - people/ms/telemetry.git/commitdiff
unbound: Show prefetches in the cache performance graph
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 28 Nov 2025 13:35:46 +0000 (13:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 28 Nov 2025 13:35:46 +0000 (13:35 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/colors.h
src/daemon/graphs/unbound.c

index 6faaf30dd3d19426064dbf659477c3ed87ec73b5..8a855fbfb7e5b7d30e39451879cf127405919319 100644 (file)
@@ -76,6 +76,7 @@
 // Caches
 #define COLOR_CACHE_HIT                        COLOR_GREEN
 #define COLOR_CACHE_MISS               COLOR_RED
+#define COLOR_CACHE_PREFETCH   COLOR_BLACK
 
 // Latency
 #define COLOR_LATENCY                  COLOR_LIGHT_BLUE
index 00961799309077a9fd4e5d798d5da0ecf8fb5c63..ba12febc04b7287f0cfc1e40601f3ee2e1260f39 100644 (file)
@@ -59,6 +59,10 @@ static int unbound_cache_performance_render(td_ctx* ctx, td_graph* graph,
                COLOR_CACHE_MISS, STACKED, _("Cache Miss"));
        PRINT_CAMM(args, "cachemiss", NULL, QPS);
 
+       DRAW_LINE_WITH_LABEL(args, 1, "prefetch", NULL,
+               COLOR_CACHE_PREFETCH, 0, _("Prefetched Queries"));
+       PRINT_CAMM(args, "prefetch", NULL, QPS);
+
        return 0;
 }