]> git.ipfire.org Git - telemetry.git/commitdiff
graphs: knot-resolver: Rename the latency graph to response times
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Jul 2026 11:34:59 +0000 (11:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 12 Jul 2026 11:34:59 +0000 (11:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/daemon/graphs.c
src/daemon/graphs/knot-resolver.c
src/daemon/graphs/knot-resolver.h

index 8ec25560dd3ac6b47288573cfc9938e542b9556d..2c0a6c1b6c04711c5c853774eeff06fffe6be2f9 100644 (file)
@@ -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,
index 3adcc55f755e4979ea675c9f056f4f1821a732f0..bb4e3224e1b5ebe68ddfe770edb64c3b963a5ec2 100644 (file)
@@ -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
index 2b9e4cac9ac334f211f3e5b74e8a310773167ad1..849c4c01f70d75ba3222fd85027a761004890577 100644 (file)
@@ -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 */