summaryrefslogtreecommitdiffstats
path: root/src/collectors/common-contexts/common-contexts.h
blob: 9d2d7714784448790d944d6bc0ec56258dc8787d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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