From: Michael Tremer Date: Fri, 28 Nov 2025 13:35:46 +0000 (+0000) Subject: unbound: Show prefetches in the cache performance graph X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce9f71320cfa45af8b58fcf483d59d3d7902bbe0;p=telemetry.git unbound: Show prefetches in the cache performance graph Signed-off-by: Michael Tremer --- diff --git a/src/daemon/colors.h b/src/daemon/colors.h index 6faaf30..8a855fb 100644 --- a/src/daemon/colors.h +++ b/src/daemon/colors.h @@ -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 diff --git a/src/daemon/graphs/unbound.c b/src/daemon/graphs/unbound.c index 0096179..ba12feb 100644 --- a/src/daemon/graphs/unbound.c +++ b/src/daemon/graphs/unbound.c @@ -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; }