summaryrefslogtreecommitdiffstats
path: root/collectors/ebpf.plugin/ebpf_mdflush.c
diff options
context:
space:
mode:
Diffstat (limited to 'collectors/ebpf.plugin/ebpf_mdflush.c')
-rw-r--r--collectors/ebpf.plugin/ebpf_mdflush.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/collectors/ebpf.plugin/ebpf_mdflush.c b/collectors/ebpf.plugin/ebpf_mdflush.c
index c0adf2ea4..fe33ff6a4 100644
--- a/collectors/ebpf.plugin/ebpf_mdflush.c
+++ b/collectors/ebpf.plugin/ebpf_mdflush.c
@@ -140,6 +140,7 @@ static void ebpf_obsolete_mdflush_global(ebpf_module_t *em)
{
ebpf_write_chart_obsolete("mdstat",
"mdstat_flush",
+ "",
"MD flushes",
"flushes",
"flush (eBPF)",
@@ -355,9 +356,9 @@ static void mdflush_collector(ebpf_module_t *em)
mdflush_read_count_map(maps_per_core);
pthread_mutex_lock(&lock);
// write dims now for all hitherto discovered devices.
- write_begin_chart("mdstat", "mdstat_flush");
+ ebpf_write_begin_chart("mdstat", "mdstat_flush", "");
avl_traverse_lock(&mdflush_pub, mdflush_write_dims, NULL);
- write_end_chart();
+ ebpf_write_end_chart();
pthread_mutex_unlock(&lock);