From 836b47cb7e99a977c5a23b059ca1d0b5065d310e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 24 Jul 2024 11:54:23 +0200 Subject: Merging upstream version 1.46.3. Signed-off-by: Daniel Baumann --- src/collectors/common-contexts/common-contexts.h | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/collectors/common-contexts/common-contexts.h (limited to 'src/collectors/common-contexts/common-contexts.h') 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 -- cgit v1.2.3