diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-08-08 21:43:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 21:43:10 +0300 |
commit | cfe9dc42862f08670657688d2b6cddd6e2492c68 (patch) | |
tree | cb7cecf13534e0ed64758fdacf27814b4a419c54 /collectors/ebpf.plugin | |
parent | 56289bdc901c84f62139ec012309cf0ce9a3f9ca (diff) |
extend the trimming window to avoid empty points at the end of queries (#15773)
Diffstat (limited to 'collectors/ebpf.plugin')
-rw-r--r-- | collectors/ebpf.plugin/ebpf_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/ebpf.plugin/ebpf_functions.c b/collectors/ebpf.plugin/ebpf_functions.c index 8f0244cde4..7a43692bc0 100644 --- a/collectors/ebpf.plugin/ebpf_functions.c +++ b/collectors/ebpf.plugin/ebpf_functions.c @@ -206,7 +206,7 @@ static void ebpf_function_thread_manipulation(const char *transaction, time_t expires = now_realtime_sec() + em->update_every; BUFFER *wb = buffer_create(PLUGINSD_LINE_MAX, NULL); - buffer_json_initialize(wb, "\"", "\"", 0, true, BUFFER_JSON_OPTIONS_NEWLINE_ON_ARRAYS); + buffer_json_initialize(wb, "\"", "\"", 0, true, BUFFER_JSON_OPTIONS_NEWLINE_ON_ARRAY_ITEMS); buffer_json_member_add_uint64(wb, "status", HTTP_RESP_OK); buffer_json_member_add_string(wb, "type", "table"); buffer_json_member_add_time_t(wb, "update_every", em->update_every); |