summaryrefslogtreecommitdiffstats
path: root/src/collectors/common-contexts/common-contexts.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/collectors/common-contexts/common-contexts.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/collectors/common-contexts/common-contexts.h b/src/collectors/common-contexts/common-contexts.h
new file mode 100644
index 000000000..9d2d77147
--- /dev/null
+++ b/src/collectors/common-contexts/common-contexts.h
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: GPL-3.0-or-later
+
+#ifndef NETDATA_COMMON_CONTEXTS_H
+#define NETDATA_COMMON_CONTEXTS_H
+
+#include "../../libnetdata/libnetdata.h"
+#include "../../database/rrd.h"
+
+#ifndef _COMMON_PLUGIN_NAME
+#error You need to set _COMMON_PLUGIN_NAME before including common-contexts.h
+#endif
+
+#ifndef _COMMON_PLUGIN_MODULE_NAME
+#error You need to set _COMMON_PLUGIN_MODULE_NAME before including common-contexts.h
+#endif
+
+#define _COMMON_CONFIG_SECTION "plugin:" _COMMON_PLUGIN_NAME ":" _COMMON_PLUGIN_MODULE_NAME
+
+typedef void (*instance_labels_cb_t)(RRDSET *st, void *data);
+
+#include "system.io.h"
+#include "system.ram.h"
+#include "system.processes.h"
+#include "mem.swap.h"
+#include "mem.pgfaults.h"
+#include "mem.available.h"
+#include "disk.io.h"
+
+#endif //NETDATA_COMMON_CONTEXTS_H