summaryrefslogtreecommitdiffstats
path: root/src/collectors/common-contexts/common-contexts.h
blob: 4c7e58e7fb5352dfc241265fdfda275fb0777fd2 (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
30
31
32
33
34
35
36
37
38
39
// 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-interrupts.h"
#include "system-processes.h"
#include "system-ipc.h"
#include "mem-swap.h"
#include "mem-pgfaults.h"
#include "mem-available.h"
#include "disk-io.h"
#include "disk-ops.h"
#include "disk-qops.h"
#include "disk-util.h"
#include "disk-busy.h"
#include "disk-iotime.h"
#include "disk-await.h"
#include "disk-svctm.h"
#include "disk-avgsz.h"

#endif //NETDATA_COMMON_CONTEXTS_H