src/daemon/graph-bus.h \
src/daemon/graphs.c \
src/daemon/graphs.h \
+ src/daemon/graphs/loadavg.c \
+ src/daemon/graphs/loadavg.h \
src/daemon/logging.c \
src/daemon/logging.h \
src/daemon/main.c \
#include "graph.h"
#include "graphs.h"
+// Load all graphs
+#include "graphs/loadavg.h"
+
// Register all graphs
static const collecty_graph_impl* graph_impls[] = {
+ &loadavg_graph,
NULL,
};
--- /dev/null
+/*#############################################################################
+# #
+# collecty - A system statistics collection daemon for IPFire #
+# Copyright (C) 2025 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 "../graph.h"
+#include "loadavg.h"
+
+const collecty_graph_impl loadavg_graph = {
+ .name = "LoadAverage",
+};
--- /dev/null
+/*#############################################################################
+# #
+# collecty - A system statistics collection daemon for IPFire #
+# Copyright (C) 2025 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 COLLECTY_GRAPH_LOADAVG_H
+#define COLLECTY_GRAPH_LOADAVG_H
+
+#include "../graph.h"
+
+extern const collecty_graph_impl loadavg_graph;
+
+#endif /* COLLECTY_GRAPH_LOADAVG_H */