From: Michael Tremer Date: Fri, 28 Nov 2025 12:28:26 +0000 (+0000) Subject: unbound: Rename the queries graph to "Cache Performance" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0617859b560ded4315f61ee41165a53d23012094;p=collecty.git unbound: Rename the queries graph to "Cache Performance" Signed-off-by: Michael Tremer --- diff --git a/src/daemon/graphs.c b/src/daemon/graphs.c index d7fd551..37242c6 100644 --- a/src/daemon/graphs.c +++ b/src/daemon/graphs.c @@ -69,7 +69,7 @@ static const td_graph_impl* graph_impls[] = { &pressure_memory_graph, // Unbound - &unbound_queries_graph, + &unbound_cache_performance_graph, &unbound_recursion_time_graph, // Legacy diff --git a/src/daemon/graphs/unbound.c b/src/daemon/graphs/unbound.c index 7608fd7..ef8aa45 100644 --- a/src/daemon/graphs/unbound.c +++ b/src/daemon/graphs/unbound.c @@ -23,12 +23,12 @@ #include "graph.h" #include "unbound.h" -static int unbound_queries_title(td_ctx* ctx, td_graph* graph, +static int unbound_cache_performance_title(td_ctx* ctx, td_graph* graph, const char* object, char* title, size_t length) { - return __td_string_set(title, length, _("DNS Queries")); + return __td_string_set(title, length, _("DNS Cache Performance")); } -static int unbound_queries_render(td_ctx* ctx, td_graph* graph, +static int unbound_cache_performance_render(td_ctx* ctx, td_graph* graph, const td_graph_render_options* options, td_args* args, const char* object) { int r; @@ -62,10 +62,10 @@ static int unbound_queries_render(td_ctx* ctx, td_graph* graph, return 0; } -const td_graph_impl unbound_queries_graph = { - .name = "UnboundQueries", - .render = unbound_queries_render, - .title = unbound_queries_title, +const td_graph_impl unbound_cache_performance_graph = { + .name = "UnboundCachePerformance", + .render = unbound_cache_performance_render, + .title = unbound_cache_performance_title, .vlabel = td_graph_vlabel_qps, // Limits diff --git a/src/daemon/graphs/unbound.h b/src/daemon/graphs/unbound.h index 39573af..54f10fc 100644 --- a/src/daemon/graphs/unbound.h +++ b/src/daemon/graphs/unbound.h @@ -23,7 +23,7 @@ #include "../graph.h" -extern const td_graph_impl unbound_queries_graph; +extern const td_graph_impl unbound_cache_performance_graph; extern const td_graph_impl unbound_recursion_time_graph; #endif /* TELEMETRY_GRAPH_UNBOUND_H */