src/daemon/graphs/unbound-recursion-time.h \
src/daemon/graphs/unbound-queries.c \
src/daemon/graphs/unbound-queries.h \
+ src/daemon/graphs/unbound.c \
+ src/daemon/graphs/unbound.h \
src/daemon/graphs/uptime.c \
src/daemon/graphs/uptime.h \
src/daemon/i18n.h \
#include <limits.h>
#include "graph.h"
+#include "unbound.h"
#include "unbound-queries.h"
static int unbound_queries_title(td_ctx* ctx, td_graph* graph,
}
const td_graph_impl unbound_queries_graph = {
- .name = "UnboundQueries",
- .render = unbound_queries_render,
- .title = unbound_queries_title,
- .vlabel = td_graph_vlabel_qps,
+ .name = "UnboundQueries",
+ .can_render = unbound_can_render,
+ .render = unbound_queries_render,
+ .title = unbound_queries_title,
+ .vlabel = td_graph_vlabel_qps,
// Limits
.lower_limit = 0,
--- /dev/null
+/*#############################################################################
+# #
+# telemetryd - The IPFire Telemetry Collection Service #
+# Copyright (C) 2026 IPFire Development Team #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+#############################################################################*/
+
+#include "unbound.h"
+
+#include "../ctx.h"
+#include "../graph.h"
+
+int unbound_can_render(td_ctx* ctx, td_graph* graph,
+ const td_graph_render_options* options, const char* object) {
+ return td_graph_requires_source(graph, "unbound", NULL);
+}
--- /dev/null
+/*#############################################################################
+# #
+# telemetryd - The IPFire Telemetry Collection Service #
+# Copyright (C) 2026 IPFire Development Team #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+#############################################################################*/
+
+#ifndef TELEMETRY_GRAPH_UNBOUND_H
+#define TELEMETRY_GRAPH_UNBOUND_H
+
+#include "../ctx.h"
+#include "../graph.h"
+
+int unbound_can_render(td_ctx* ctx, td_graph* graph,
+ const td_graph_render_options* options, const char* object);
+
+#endif /* TELEMETRY_GRAPH_UNBOUND_H */