summaryrefslogtreecommitdiffstats
path: root/collectors/ebpf.plugin
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2021-08-02 18:29:53 +0000
committerGitHub <noreply@github.com>2021-08-02 18:29:53 +0000
commit340c31e13ca7486673123bdcfa208b55f22f9fb4 (patch)
tree2a60b7929bdac3b6412b21210ba81256748cff44 /collectors/ebpf.plugin
parente2303fea720871ef568a175d8a50a478154a1db8 (diff)
Specify module for threads (#11387)
Diffstat (limited to 'collectors/ebpf.plugin')
-rw-r--r--collectors/ebpf.plugin/ebpf.c19
-rw-r--r--collectors/ebpf.plugin/ebpf.h9
-rw-r--r--collectors/ebpf.plugin/ebpf_cachestat.c19
-rw-r--r--collectors/ebpf.plugin/ebpf_cachestat.h3
-rw-r--r--collectors/ebpf.plugin/ebpf_dcstat.c13
-rw-r--r--collectors/ebpf.plugin/ebpf_dcstat.h2
-rw-r--r--collectors/ebpf.plugin/ebpf_disk.c3
-rw-r--r--collectors/ebpf.plugin/ebpf_disk.h3
-rw-r--r--collectors/ebpf.plugin/ebpf_filesystem.c12
-rw-r--r--collectors/ebpf.plugin/ebpf_filesystem.h3
-rw-r--r--collectors/ebpf.plugin/ebpf_mount.c6
-rw-r--r--collectors/ebpf.plugin/ebpf_mount.h3
-rw-r--r--collectors/ebpf.plugin/ebpf_process.c26
-rw-r--r--collectors/ebpf.plugin/ebpf_process.h3
-rw-r--r--collectors/ebpf.plugin/ebpf_socket.c34
-rw-r--r--collectors/ebpf.plugin/ebpf_socket.h3
-rw-r--r--collectors/ebpf.plugin/ebpf_swap.c6
-rw-r--r--collectors/ebpf.plugin/ebpf_swap.h3
-rw-r--r--collectors/ebpf.plugin/ebpf_sync.c3
-rw-r--r--collectors/ebpf.plugin/ebpf_sync.h3
-rw-r--r--collectors/ebpf.plugin/ebpf_vfs.c46
-rw-r--r--collectors/ebpf.plugin/ebpf_vfs.h3
22 files changed, 138 insertions, 87 deletions
diff --git a/collectors/ebpf.plugin/ebpf.c b/collectors/ebpf.plugin/ebpf.c
index 415a02939e..81fc2b93a1 100644
--- a/collectors/ebpf.plugin/ebpf.c
+++ b/collectors/ebpf.plugin/ebpf.c
@@ -389,11 +389,12 @@ void write_io_chart(char *chart, char *family, char *dwrite, long long vwrite, c
* @param charttype chart type
* @param context chart context
* @param order chart order
+ * @param module chart module name, this is the eBPF thread.
*/
void ebpf_write_chart_cmd(char *type, char *id, char *title, char *units, char *family,
- char *charttype, char *context, int order)
+ char *charttype, char *context, int order, char *module)
{
- printf("CHART %s.%s '' '%s' '%s' '%s' '%s' '%s' %d %d\n",
+ printf("CHART %s.%s '' '%s' '%s' '%s' '%s' '%s' %d %d '' 'ebpf.plugin' '%s'\n",
type,
id,
title,
@@ -402,7 +403,8 @@ void ebpf_write_chart_cmd(char *type, char *id, char *title, char *units, char *
(context)?context:"",
(charttype)?charttype:"",
order,
- update_every);
+ update_every,
+ module);
}
/**
@@ -477,6 +479,7 @@ void ebpf_create_global_dimension(void *ptr, int end)
* @param ncd a pointer to a function called to create dimensions
* @param move a pointer for a structure that has the dimensions
* @param end number of dimensions for the chart created
+ * @param module chart module name, this is the eBPF thread.
*/
void ebpf_create_chart(char *type,
char *id,
@@ -488,9 +491,10 @@ void ebpf_create_chart(char *type,
int order,
void (*ncd)(void *, int),
void *move,
- int end)
+ int end,
+ char *module)
{
- ebpf_write_chart_cmd(type, id, title, units, family, charttype, context, order);
+ ebpf_write_chart_cmd(type, id, title, units, family, charttype, context, order, module);
ncd(move, end);
}
@@ -506,12 +510,13 @@ void ebpf_create_chart(char *type,
* @param order the chart order
* @param algorithm the algorithm used by dimension
* @param root structure used to create the dimensions.
+ * @param module chart module name, this is the eBPF thread.
*/
void ebpf_create_charts_on_apps(char *id, char *title, char *units, char *family, char *charttype, int order,
- char *algorithm, struct target *root)
+ char *algorithm, struct target *root, char *module)
{
struct target *w;
- ebpf_write_chart_cmd(NETDATA_APPS_FAMILY, id, title, units, family, charttype, NULL, order);
+ ebpf_write_chart_cmd(NETDATA_APPS_FAMILY, id, title, units, family, charttype, NULL, order, module);
for (w = root; w; w = w->next) {
if (unlikely(w->exposed))
diff --git a/collectors/ebpf.plugin/ebpf.h b/collectors/ebpf.plugin/ebpf.h
index bbd61a7029..0a3032bb8c 100644
--- a/collectors/ebpf.plugin/ebpf.h
+++ b/collectors/ebpf.plugin/ebpf.h
@@ -154,7 +154,8 @@ extern void ebpf_write_chart_cmd(char *type,
char *family,
char *charttype,
char *context,
- int order);
+ int order,
+ char *module);
extern void ebpf_write_global_dimension(char *name, char *id, char *algorithm);
@@ -170,7 +171,8 @@ extern void ebpf_create_chart(char *type,
int order,
void (*ncd)(void *, int),
void *move,
- int end);
+ int end,
+ char *module);
extern void write_begin_chart(char *family, char *name);
@@ -192,7 +194,8 @@ extern void ebpf_create_charts_on_apps(char *name,
char *charttype,
int order,
char *algorithm,
- struct target *root);
+ struct target *root,
+ char *module);
extern void write_end_chart();
diff --git a/collectors/ebpf.plugin/ebpf_cachestat.c b/collectors/ebpf.plugin/ebpf_cachestat.c
index 98f652e6e7..0ae32a921f 100644
--- a/collectors/ebpf.plugin/ebpf_cachestat.c
+++ b/collectors/ebpf.plugin/ebpf_cachestat.c
@@ -298,7 +298,7 @@ void ebpf_cachestat_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_LINE,
20090,
ebpf_algorithms[NETDATA_EBPF_ABSOLUTE_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_CACHESTAT);
ebpf_create_charts_on_apps(NETDATA_CACHESTAT_DIRTY_CHART,
"Number of pages marked as dirty. When a page is called dirty, this means that the data stored inside the page needs to be written to devices.",
@@ -307,7 +307,7 @@ void ebpf_cachestat_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20091,
ebpf_algorithms[NETDATA_EBPF_INCREMENTAL_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_CACHESTAT);
ebpf_create_charts_on_apps(NETDATA_CACHESTAT_HIT_CHART,
"Number of cache access without counting dirty pages and page additions.",
@@ -316,7 +316,7 @@ void ebpf_cachestat_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20092,
ebpf_algorithms[NETDATA_EBPF_ABSOLUTE_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_CACHESTAT);
ebpf_create_charts_on_apps(NETDATA_CACHESTAT_MISSES_CHART,
"Page caches added without counting dirty pages",
@@ -325,7 +325,7 @@ void ebpf_cachestat_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20093,
ebpf_algorithms[NETDATA_EBPF_ABSOLUTE_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_CACHESTAT);
}
/*****************************************************************
@@ -557,7 +557,7 @@ static void ebpf_create_memory_charts()
NETDATA_EBPF_CHART_TYPE_LINE,
21100,
ebpf_create_global_dimension,
- cachestat_counter_publish_aggregated, 1);
+ cachestat_counter_publish_aggregated, 1, NETDATA_EBPF_MODULE_NAME_CACHESTAT);
ebpf_create_chart(NETDATA_EBPF_MEMORY_GROUP, NETDATA_CACHESTAT_DIRTY_CHART,
"Number of dirty pages added to the page cache.",
@@ -566,7 +566,8 @@ static void ebpf_create_memory_charts()
NETDATA_EBPF_CHART_TYPE_LINE,
21101,
ebpf_create_global_dimension,
- &cachestat_counter_publish_aggregated[NETDATA_CACHESTAT_IDX_DIRTY], 1);
+ &cachestat_counter_publish_aggregated[NETDATA_CACHESTAT_IDX_DIRTY], 1,
+ NETDATA_EBPF_MODULE_NAME_CACHESTAT);
ebpf_create_chart(NETDATA_EBPF_MEMORY_GROUP, NETDATA_CACHESTAT_HIT_CHART,
"Hits are function calls that Netdata counts.",
@@ -575,7 +576,8 @@ static void ebpf_create_memory_charts()
NETDATA_EBPF_CHART_TYPE_LINE,
21102,
ebpf_create_global_dimension,
- &cachestat_counter_publish_aggregated[NETDATA_CACHESTAT_IDX_HIT], 1);
+ &cachestat_counter_publish_aggregated[NETDATA_CACHESTAT_IDX_HIT], 1,
+ NETDATA_EBPF_MODULE_NAME_CACHESTAT);
ebpf_create_chart(NETDATA_EBPF_MEMORY_GROUP, NETDATA_CACHESTAT_MISSES_CHART,
"Misses are function calls that Netdata counts.",
@@ -584,7 +586,8 @@ static void ebpf_create_memory_charts()
NETDATA_EBPF_CHART_TYPE_LINE,
21103,
ebpf_create_global_dimension,
- &cachestat_counter_publish_aggregated[NETDATA_CACHESTAT_IDX_MISS], 1);
+ &cachestat_counter_publish_aggregated[NETDATA_CACHESTAT_IDX_MISS], 1,
+ NETDATA_EBPF_MODULE_NAME_CACHESTAT);
fflush(stdout);
}
diff --git a/collectors/ebpf.plugin/ebpf_cachestat.h b/collectors/ebpf.plugin/ebpf_cachestat.h
index e7b0a1389b..9e207f801b 100644
--- a/collectors/ebpf.plugin/ebpf_cachestat.h
+++ b/collectors/ebpf.plugin/ebpf_cachestat.h
@@ -3,6 +3,9 @@
#ifndef NETDATA_EBPF_CACHESTAT_H
#define NETDATA_EBPF_CACHESTAT_H 1
+// Module name
+#define NETDATA_EBPF_MODULE_NAME_CACHESTAT "cachestat"
+
// charts
#define NETDATA_CACHESTAT_HIT_RATIO_CHART "cachestat_ratio"
#define NETDATA_CACHESTAT_DIRTY_CHART "cachestat_dirties"
diff --git a/collectors/ebpf.plugin/ebpf_dcstat.c b/collectors/ebpf.plugin/ebpf_dcstat.c
index 35bf5e428f..0d955cfb64 100644
--- a/collectors/ebpf.plugin/ebpf_dcstat.c
+++ b/collectors/ebpf.plugin/ebpf_dcstat.c
@@ -169,7 +169,7 @@ void ebpf_dcstat_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_LINE,
20100,
ebpf_algorithms[NETDATA_EBPF_ABSOLUTE_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_DCSTAT);
ebpf_create_charts_on_apps(NETDATA_DC_REFERENCE_CHART,
"Count file access.",
@@ -178,7 +178,7 @@ void ebpf_dcstat_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20101,
ebpf_algorithms[NETDATA_EBPF_ABSOLUTE_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_DCSTAT);
ebpf_create_charts_on_apps(NETDATA_DC_REQUEST_NOT_CACHE_CHART,
"Access to files that were not present inside directory cache.",
@@ -187,7 +187,7 @@ void ebpf_dcstat_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20102,
ebpf_algorithms[NETDATA_EBPF_ABSOLUTE_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_DCSTAT);
ebpf_create_charts_on_apps(NETDATA_DC_REQUEST_NOT_FOUND_CHART,
"Number of requests for files that were not found on filesystem.",
@@ -196,7 +196,7 @@ void ebpf_dcstat_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20103,
ebpf_algorithms[NETDATA_EBPF_ABSOLUTE_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_DCSTAT);
}
/*****************************************************************
@@ -529,7 +529,7 @@ static void ebpf_create_filesystem_charts()
NETDATA_EBPF_CHART_TYPE_LINE,
21200,
ebpf_create_global_dimension,
- dcstat_counter_publish_aggregated, 1);
+ dcstat_counter_publish_aggregated, 1, NETDATA_EBPF_MODULE_NAME_DCSTAT);
ebpf_create_chart(NETDATA_FILESYSTEM_FAMILY, NETDATA_DC_REFERENCE_CHART,
"Variables used to calculate hit ratio.",
@@ -538,7 +538,8 @@ static void ebpf_create_filesystem_charts()
NETDATA_EBPF_CHART_TYPE_LINE,
21201,
ebpf_create_global_dimension,
- &dcstat_counter_publish_aggregated[NETDATA_DCSTAT_IDX_REFERENCE], 3);
+ &dcstat_counter_publish_aggregated[NETDATA_DCSTAT_IDX_REFERENCE], 3,
+ NETDATA_EBPF_MODULE_NAME_DCSTAT);
fflush(stdout);
}
diff --git a/collectors/ebpf.plugin/ebpf_dcstat.h b/collectors/ebpf.plugin/ebpf_dcstat.h
index 373bb629d7..c5f92c36b3 100644
--- a/collectors/ebpf.plugin/ebpf_dcstat.h
+++ b/collectors/ebpf.plugin/ebpf_dcstat.h
@@ -3,6 +3,8 @@
#ifndef NETDATA_EBPF_DCSTAT_H
#define NETDATA_EBPF_DCSTAT_H 1
+// Module name
+#define NETDATA_EBPF_MODULE_NAME_DCSTAT "dcstat"
// charts
#define NETDATA_DC_HIT_CHART "dc_hit_ratio"
diff --git a/collectors/ebpf.plugin/ebpf_disk.c b/collectors/ebpf.plugin/ebpf_disk.c
index 5f62aeaf7c..6e23686ab1 100644
--- a/collectors/ebpf.plugin/ebpf_disk.c
+++ b/collectors/ebpf.plugin/ebpf_disk.c
@@ -634,7 +634,8 @@ static void ebpf_create_hd_charts(netdata_ebpf_disks_t *w)
ebpf_create_chart(w->histogram.name, family, "Disk latency", EBPF_COMMON_DIMENSION_CALL,
family, "disk.latency_io", NETDATA_EBPF_CHART_TYPE_STACKED, order,
- ebpf_create_global_dimension, disk_publish_aggregated, NETDATA_EBPF_HIST_MAX_BINS);
+ ebpf_create_global_dimension, disk_publish_aggregated, NETDATA_EBPF_HIST_MAX_BINS,
+ NETDATA_EBPF_MODULE_NAME_DISK);
order++;
w->flags |= NETDATA_DISK_CHART_CREATED;
diff --git a/collectors/ebpf.plugin/ebpf_disk.h b/collectors/ebpf.plugin/ebpf_disk.h
index 8727aabac2..8b85328fc8 100644
--- a/collectors/ebpf.plugin/ebpf_disk.h
+++ b/collectors/ebpf.plugin/ebpf_disk.h
@@ -3,6 +3,9 @@
#ifndef NETDATA_EBPF_DISK_H
#define NETDATA_EBPF_DISK_H 1
+// Module name
+#define NETDATA_EBPF_MODULE_NAME_DISK "disk"
+
#include "libnetdata/avl/avl.h"
#include "libnetdata/ebpf/ebpf.h"
diff --git a/collectors/ebpf.plugin/ebpf_filesystem.c b/collectors/ebpf.plugin/ebpf_filesystem.c
index cdec4c8338..e63ee9eff8 100644
--- a/collectors/ebpf.plugin/ebpf_filesystem.c
+++ b/collectors/ebpf.plugin/ebpf_filesystem.c
@@ -139,7 +139,8 @@ static void ebpf_create_fs_charts()
title,
EBPF_COMMON_DIMENSION_CALL, family,
NULL, NETDATA_EBPF_CHART_TYPE_STACKED, order, ebpf_create_global_dimension,
- filesystem_publish_aggregated, NETDATA_EBPF_HIST_MAX_BINS);
+ filesystem_publish_aggregated, NETDATA_EBPF_HIST_MAX_BINS,
+ NETDATA_EBPF_MODULE_NAME_FILESYSTEM);
order++;
snprintfz(title, 255, "%s latency for each write request.", efp->filesystem);
@@ -151,7 +152,8 @@ static void ebpf_create_fs_charts()
title,
EBPF_COMMON_DIMENSION_CALL, family,
NULL, NETDATA_EBPF_CHART_TYPE_STACKED, order, ebpf_create_global_dimension,
- filesystem_publish_aggregated, NETDATA_EBPF_HIST_MAX_BINS);
+ filesystem_publish_aggregated, NETDATA_EBPF_HIST_MAX_BINS,
+ NETDATA_EBPF_MODULE_NAME_FILESYSTEM);
order++;
snprintfz(title, 255, "%s latency for each open request.", efp->filesystem);
@@ -163,7 +165,8 @@ static void ebpf_create_fs_charts()
title,
EBPF_COMMON_DIMENSION_CALL, family,
NULL, NETDATA_EBPF_CHART_TYPE_STACKED, order, ebpf_create_global_dimension,
- filesystem_publish_aggregated, NETDATA_EBPF_HIST_MAX_BINS);
+ filesystem_publish_aggregated, NETDATA_EBPF_HIST_MAX_BINS,
+ NETDATA_EBPF_MODULE_NAME_FILESYSTEM);
order++;
char *type = (efp->flags & NETDATA_FILESYSTEM_ATTR_CHARTS) ? "attribute" : "sync";
@@ -175,7 +178,8 @@ static void ebpf_create_fs_charts()
ebpf_create_chart(NETDATA_FILESYSTEM_FAMILY, efp->hadditional.name, title,
EBPF_COMMON_DIMENSION_CALL, family,
NULL, NETDATA_EBPF_CHART_TYPE_STACKED, order, ebpf_create_global_dimension,
- filesystem_publish_aggregated, NETDATA_EBPF_HIST_MAX_BINS);
+ filesystem_publish_aggregated, NETDATA_EBPF_HIST_MAX_BINS,
+ NETDATA_EBPF_MODULE_NAME_FILESYSTEM);
order++;
efp->flags |= NETDATA_FILESYSTEM_FLAG_CHART_CREATED;
}
diff --git a/collectors/ebpf.plugin/ebpf_filesystem.h b/collectors/ebpf.plugin/ebpf_filesystem.h
index 57ae45d035..70e5f14d32 100644
--- a/collectors/ebpf.plugin/ebpf_filesystem.h
+++ b/collectors/ebpf.plugin/ebpf_filesystem.h
@@ -3,6 +3,9 @@
#ifndef NETDATA_EBPF_FILESYSTEM_H
#define NETDATA_EBPF_FILESYSTEM_H 1
+// Module name
+#define NETDATA_EBPF_MODULE_NAME_FILESYSTEM "filesystem"
+
#include "ebpf.h"
#define NETDATA_FS_MAX_DIST_NAME 64UL
diff --git a/collectors/ebpf.plugin/ebpf_mount.c b/collectors/ebpf.plugin/ebpf_mount.c
index c155aa6900..e45167e88d 100644
--- a/collectors/ebpf.plugin/ebpf_mount.c
+++ b/collectors/ebpf.plugin/ebpf_mount.c
@@ -190,7 +190,8 @@ static void ebpf_create_mount_charts()
NETDATA_EBPF_CHART_TYPE_LINE,
NETDATA_CHART_PRIO_EBPF_MOUNT_CHARTS,
ebpf_create_global_dimension,
- mount_publish_aggregated, NETDATA_EBPF_MOUNT_SYSCALL);
+ mount_publish_aggregated, NETDATA_EBPF_MOUNT_SYSCALL,
+ NETDATA_EBPF_MODULE_NAME_MOUNT);
ebpf_create_chart(NETDATA_EBPF_MOUNT_GLOBAL_FAMILY, NETDATA_EBPF_MOUNT_ERRORS,
"Errors to mount and umount syscalls.",
@@ -199,7 +200,8 @@ static void ebpf_create_mount_charts()
NETDATA_EBPF_CHART_TYPE_LINE,
NETDATA_CHART_PRIO_EBPF_MOUNT_CHARTS + 1,
ebpf_create_global_dimension,
- mount_publish_aggregated, NETDATA_EBPF_MOUNT_SYSCALL);
+ mount_publish_aggregated, NETDATA_EBPF_MOUNT_SYSCALL,
+ NETDATA_EBPF_MODULE_NAME_MOUNT);
fflush(stdout);
}
diff --git a/collectors/ebpf.plugin/ebpf_mount.h b/collectors/ebpf.plugin/ebpf_mount.h
index 9bbbbe96b2..a9472e45c2 100644
--- a/collectors/ebpf.plugin/ebpf_mount.h
+++ b/collectors/ebpf.plugin/ebpf_mount.h
@@ -3,6 +3,9 @@
#ifndef NETDATA_EBPF_MOUNT_H
#define NETDATA_EBPF_MOUNT_H 1
+// Module name
+#define NETDATA_EBPF_MODULE_NAME_MOUNT "mount"
+
#define NETDATA_EBPF_MOUNT_SYSCALL 2
#define NETDATA_LATENCY_MOUNT_SLEEP_MS 700000ULL
diff --git a/collectors/ebpf.plugin/ebpf_process.c b/collectors/ebpf.plugin/ebpf_process.c
index 2e01fa5868..e6b0cbc869 100644
--- a/collectors/ebpf.plugin/ebpf_process.c
+++ b/collectors/ebpf.plugin/ebpf_process.c
@@ -373,7 +373,7 @@ static void ebpf_process_update_apps_data()
static void ebpf_process_status_chart(char *family, char *name, char *axis,
char *web, char *algorithm, int order)
{
- printf("CHART %s.%s '' 'Process not closed' '%s' '%s' '' line %d %d ''\n",
+ printf("CHART %s.%s '' 'Process not closed' '%s' '%s' '' line %d %d '' 'ebpf.plugin' 'process'\n",
family,
name,
axis,
@@ -404,7 +404,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21000,
ebpf_create_global_dimension,
process_publish_aggregated,
- 2);
+ 2, NETDATA_EBPF_MODULE_NAME_PROCESS);
if (em->mode < MODE_ENTRY) {
ebpf_create_chart(NETDATA_EBPF_FAMILY,
@@ -417,7 +417,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21001,
ebpf_create_global_dimension,
process_publish_aggregated,
- 2);
+ 2, NETDATA_EBPF_MODULE_NAME_PROCESS);
}
ebpf_create_chart(NETDATA_EBPF_FAMILY,
@@ -430,7 +430,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21002,
ebpf_create_global_dimension,
&process_publish_aggregated[NETDATA_KEY_PUBLISH_PROCESS_FORK],
- 2);
+ 2, NETDATA_EBPF_MODULE_NAME_PROCESS);
ebpf_create_chart(NETDATA_EBPF_FAMILY,
NETDATA_EXIT_SYSCALL,
@@ -442,7 +442,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21003,
ebpf_create_global_dimension,
&process_publish_aggregated[NETDATA_KEY_PUBLISH_PROCESS_EXIT],
- 2);
+ 2, NETDATA_EBPF_MODULE_NAME_PROCESS);
ebpf_process_status_chart(NETDATA_EBPF_FAMILY,
NETDATA_PROCESS_STATUS_NAME,
@@ -462,7 +462,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21005,
ebpf_create_global_dimension,
&process_publish_aggregated[NETDATA_KEY_PUBLISH_PROCESS_FORK],
- 2);
+ 2, NETDATA_EBPF_MODULE_NAME_PROCESS);
}
}
@@ -484,7 +484,7 @@ void ebpf_process_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20061,
ebpf_algorithms[NETDATA_EBPF_INCREMENTAL_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_PROCESS);
if (em->mode < MODE_ENTRY) {
ebpf_create_charts_on_apps(NETDATA_SYSCALL_APPS_FILE_OPEN_ERROR,
@@ -494,7 +494,7 @@ void ebpf_process_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20062,
ebpf_algorithms[NETDATA_EBPF_INCREMENTAL_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_PROCESS);
}
ebpf_create_charts_on_apps(NETDATA_SYSCALL_APPS_FILE_CLOSED,
@@ -504,7 +504,7 @@ void ebpf_process_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20063,
ebpf_algorithms[NETDATA_EBPF_INCREMENTAL_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_PROCESS);
if (em->mode < MODE_ENTRY) {
ebpf_create_charts_on_apps(NETDATA_SYSCALL_APPS_FILE_CLOSE_ERROR,
@@ -514,7 +514,7 @@ void ebpf_process_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20064,
ebpf_algorithms[NETDATA_EBPF_INCREMENTAL_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_PROCESS);
}
ebpf_create_charts_on_apps(NETDATA_SYSCALL_APPS_TASK_PROCESS,
@@ -524,7 +524,7 @@ void ebpf_process_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20065,
ebpf_algorithms[NETDATA_EBPF_ABSOLUTE_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_PROCESS);
ebpf_create_charts_on_apps(NETDATA_SYSCALL_APPS_TASK_THREAD,
"Threads started",
@@ -533,7 +533,7 @@ void ebpf_process_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20066,
ebpf_algorithms[NETDATA_EBPF_ABSOLUTE_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_PROCESS);
ebpf_create_charts_on_apps(NETDATA_SYSCALL_APPS_TASK_CLOSE,
"Tasks closed",
@@ -542,7 +542,7 @@ void ebpf_process_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20067,
ebpf_algorithms[NETDATA_EBPF_ABSOLUTE_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_PROCESS);
}
/**
diff --git a/collectors/ebpf.plugin/ebpf_process.h b/collectors/ebpf.plugin/ebpf_process.h
index 653c0fc00b..fa5869e02f 100644
--- a/collectors/ebpf.plugin/ebpf_process.h
+++ b/collectors/ebpf.plugin/ebpf_process.h
@@ -3,6 +3,9 @@
#ifndef NETDATA_EBPF_PROCESS_H
#define NETDATA_EBPF_PROCESS_H 1
+// Module name
+#define NETDATA_EBPF_MODULE_NAME_PROCESS "process"
+
// Groups used on Dashboard
#define NETDATA_FILE_GROUP "File"
#define NETDATA_PROCESS_GROUP "Process"
diff --git a/collectors/ebpf.plugin/ebpf_socket.c b/collectors/ebpf.plugin/ebpf_socket.c
index eab801ae1a..71524a95e3 100644
--- a/collectors/ebpf.plugin/ebpf_socket.c
+++ b/collectors/ebpf.plugin/ebpf_socket.c
@@ -455,7 +455,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21070,
ebpf_create_global_dimension,
socket_publish_aggregated,
- 3);
+ 3, NETDATA_EBPF_MODULE_NAME_SOCKET);
ebpf_create_chart(NETDATA_EBPF_FAMILY, NETDATA_TCP_FUNCTION_BITS,
"TCP bandwidth", EBPF_COMMON_DIMENSION_BITS,
@@ -465,7 +465,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21071,
ebpf_create_global_dimension,
socket_publish_aggregated,
- 3);
+ 3, NETDATA_EBPF_MODULE_NAME_SOCKET);
if (em->mode < MODE_ENTRY) {
ebpf_create_chart(NETDATA_EBPF_FAMILY,
@@ -478,7 +478,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21072,
ebpf_create_global_dimension,
socket_publish_aggregated,
- 2);
+ 2, NETDATA_EBPF_MODULE_NAME_SOCKET);
}
ebpf_create_chart(NETDATA_EBPF_FAMILY,
@@ -491,7 +491,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21073,
ebpf_create_global_dimension,
&socket_publish_aggregated[NETDATA_IDX_TCP_RETRANSMIT],
- 1);
+ 1, NETDATA_EBPF_MODULE_NAME_SOCKET);
ebpf_create_chart(NETDATA_EBPF_FAMILY,
NETDATA_UDP_FUNCTION_COUNT,
@@ -503,7 +503,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21074,
ebpf_create_global_dimension,
&socket_publish_aggregated[NETDATA_IDX_UDP_RECVBUF],
- 2);
+ 2, NETDATA_EBPF_MODULE_NAME_SOCKET);
ebpf_create_chart(NETDATA_EBPF_FAMILY, NETDATA_UDP_FUNCTION_BITS,
"UDP bandwidth", EBPF_COMMON_DIMENSION_BITS,
@@ -513,7 +513,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21075,
ebpf_create_global_dimension,
&socket_publish_aggregated[NETDATA_IDX_UDP_RECVBUF],
- 2);
+ 2, NETDATA_EBPF_MODULE_NAME_SOCKET);
if (em->mode < MODE_ENTRY) {
ebpf_create_chart(NETDATA_EBPF_FAMILY,
@@ -526,7 +526,7 @@ static void ebpf_create_global_charts(ebpf_module_t *em)
21076,
ebpf_create_global_dimension,
&socket_publish_aggregated[NETDATA_IDX_UDP_RECVBUF],
- 2);
+ 2, NETDATA_EBPF_MODULE_NAME_SOCKET);
}
}
@@ -548,7 +548,7 @@ void ebpf_socket_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20080,
ebpf_algorithms[NETDATA_EBPF_INCREMENTAL_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_SOCKET);
ebpf_create_charts_on_apps(NETDATA_NET_APPS_BANDWIDTH_RECV,
"bytes received", EBPF_COMMON_DIMENSION_BITS,
@@ -556,7 +556,7 @@ void ebpf_socket_create_apps_charts(struct ebpf_module *em, void *ptr)
NETDATA_EBPF_CHART_TYPE_STACKED,
20081,
ebpf_algorithms[NETDATA_EBPF_INCREMENTAL_IDX],
- root);
+ root, NETDATA_EBPF_MODULE_NAME_SOCKET);
ebpf_create_charts_on_apps(NETDATA_NET_APPS_BANDWIDTH_TCP_SEND_CALLS,
"Calls for tcp_sendmsg",