From: Michael Tremer Date: Sun, 12 Jul 2026 11:34:59 +0000 (+0000) Subject: graphs: knot-resolver: Rename the latency graph to response times X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0216bdb18721d858923ae17d0ab9b64d5f98d9e;p=telemetry.git graphs: knot-resolver: Rename the latency graph to response times Signed-off-by: Michael Tremer --- diff --git a/src/daemon/graphs.c b/src/daemon/graphs.c index 8ec2556..2c0a6c1 100644 --- a/src/daemon/graphs.c +++ b/src/daemon/graphs.c @@ -98,7 +98,7 @@ static const td_graph_impl* graph_impls[] = { &knot_resolver_cache_graph, &knot_resolver_transports_graph, &knot_resolver_responses_graph, - &knot_resolver_latency_graph, + &knot_resolver_response_time_graph, // Unbound &unbound_cache_performance_graph, diff --git a/src/daemon/graphs/knot-resolver.c b/src/daemon/graphs/knot-resolver.c index 3adcc55..bb4e322 100644 --- a/src/daemon/graphs/knot-resolver.c +++ b/src/daemon/graphs/knot-resolver.c @@ -255,7 +255,7 @@ const td_graph_impl knot_resolver_responses_graph = { .upper_limit = LONG_MAX, }; -// Latency +// Response Time // We define the colours locally because no other software will have the same buckets #define COLOR_LATENCY_1MS COLOR_CLEAN_GREEN @@ -268,12 +268,12 @@ const td_graph_impl knot_resolver_responses_graph = { #define COLOR_LATENCY_1500MS COLOR_PURPLE_MAGENTA #define COLOR_LATENCY_SLOW COLOR_PINK_MAGENTA -static int knot_resolver_latency_title(td_ctx* ctx, td_graph* graph, +static int knot_resolver_response_time_title(td_ctx* ctx, td_graph* graph, const char* object, char* title, size_t length) { - return __td_string_set(title, length, _("Latency")); + return __td_string_set(title, length, _("Response Time")); } -static int knot_resolver_latency_render(td_ctx* ctx, td_graph* graph, +static int knot_resolver_response_time_render(td_ctx* ctx, td_graph* graph, const td_graph_render_options* options, td_args* args, const char* object) { int r; @@ -336,11 +336,11 @@ static int knot_resolver_latency_render(td_ctx* ctx, td_graph* graph, return 0; } -const td_graph_impl knot_resolver_latency_graph = { - .name = "KnotResolverLatency", +const td_graph_impl knot_resolver_response_time_graph = { + .name = "KnotResolverResponseTime", .can_render = knot_resolver_can_render, - .render = knot_resolver_latency_render, - .title = knot_resolver_latency_title, + .render = knot_resolver_response_time_render, + .title = knot_resolver_response_time_title, .vlabel = td_graph_vlabel_qps, // Limits diff --git a/src/daemon/graphs/knot-resolver.h b/src/daemon/graphs/knot-resolver.h index 2b9e4ca..849c4c0 100644 --- a/src/daemon/graphs/knot-resolver.h +++ b/src/daemon/graphs/knot-resolver.h @@ -27,6 +27,6 @@ extern const td_graph_impl knot_resolver_queries_graph; extern const td_graph_impl knot_resolver_cache_graph; extern const td_graph_impl knot_resolver_transports_graph; extern const td_graph_impl knot_resolver_responses_graph; -extern const td_graph_impl knot_resolver_latency_graph; +extern const td_graph_impl knot_resolver_response_time_graph; #endif /* TELEMETRY_GRAPH_KNOT_RESOLVER_H */