mirror of
https://github.com/netdata/netdata.git
synced 2025-05-22 08:31:15 +00:00

* dummy streaming function
* expose global functions upstream
* separate function for pushing global functions
* add missing conditions
* allow streaming function to run async
* started internal API for functions
* cache host retention and expose it to /api/v2/nodes
* internal API for function table fields; more progress on streaming status
* abstracted and unified rrdhost status
* port old coverity warning fix - although it is not needed
* add ML information to rrdhost status
* add ML capability to streaming to signal the transmission of ML information; added ML information to host status
* protect host->receiver
* count metrics and instances per host
* exposed all inbound and outbound streaming
* fix for ML status and dependency of DATA_WITH_ML to INTERPOLATED, not IEEE754
* update ML dummy
* added all fields
* added streaming group by and cleaned up accepted values by cloud
* removed type
* Revert "removed type"
This reverts commit faae4177e6
.
* added context to db summary
* new /api/v2/nodes schema
* added ML type
* change default function charts
* log to trace new capa
* add more debug
* removed debugging code
* retry on receive interrupted read; respect sender reconnect delay in all cases
* set disconnected host flag and manipulate localhost child count atomically, inside set/clear receiver
* fix infinite loop
* send_to_plugin() now has a spinlock to ensure that only 1 thread is writing to the plugin/child at the same time
* global cloud_status() call
* cloud should be a section, since it will contain error information
* put cloud capabilities into cloud
* aclk status in /api/v2 agents sections
* keep aclk_connection_counter
* updates on /api/v2/nodes
* final /api/v2/nodes and addition of /api/v2/nodes_instances
* parametrize all /api/v2/xxx output to control which info is outputed per endpoint
* always accept nodes selector
* st needs to be per instance, not per node
* fix merging of contexts; fix cups plugin priorities
* add after and before parameters to /api/v2/contexts/nodes/nodes_instances/q
* give each libuv worker a unique id
* aclk http_api_v2 version 4
41 lines
1.9 KiB
C
41 lines
1.9 KiB
C
#ifndef NETDATA_RRDFUNCTIONS_H
|
|
#define NETDATA_RRDFUNCTIONS_H 1
|
|
|
|
#include "rrd.h"
|
|
|
|
void rrdfunctions_init(RRDHOST *host);
|
|
void rrdfunctions_destroy(RRDHOST *host);
|
|
|
|
void rrd_collector_started(void);
|
|
void rrd_collector_finished(void);
|
|
|
|
typedef void (*function_data_ready_callback)(BUFFER *wb, int code, void *callback_data);
|
|
|
|
typedef int (*function_execute_at_collector)(BUFFER *wb, int timeout, const char *function, void *collector_data,
|
|
function_data_ready_callback callback, void *callback_data);
|
|
|
|
void rrd_collector_add_function(RRDHOST *host, RRDSET *st, const char *name, int timeout, const char *help,
|
|
bool sync, function_execute_at_collector function, void *collector_data);
|
|
|
|
int rrd_call_function_and_wait(RRDHOST *host, BUFFER *wb, int timeout, const char *name);
|
|
|
|
typedef void (*rrd_call_function_async_callback)(BUFFER *wb, int code, void *callback_data);
|
|
int rrd_call_function_async(RRDHOST *host, BUFFER *wb, int timeout, const char *name, rrd_call_function_async_callback, void *callback_data);
|
|
|
|
void rrd_functions_expose_rrdpush(RRDSET *st, BUFFER *wb);
|
|
void rrd_functions_expose_global_rrdpush(RRDHOST *host, BUFFER *wb);
|
|
|
|
void chart_functions2json(RRDSET *st, BUFFER *wb, int tabs, const char *kq, const char *sq);
|
|
void chart_functions_to_dict(DICTIONARY *rrdset_functions_view, DICTIONARY *dst);
|
|
void host_functions2json(RRDHOST *host, BUFFER *wb);
|
|
|
|
uint8_t functions_format_to_content_type(const char *format);
|
|
const char *functions_content_type_to_format(HTTP_CONTENT_TYPE content_type);
|
|
int rrd_call_function_error(BUFFER *wb, const char *msg, int code);
|
|
|
|
int rrdhost_function_streaming(BUFFER *wb, int timeout, const char *function, void *collector_data,
|
|
function_data_ready_callback callback, void *callback_data);
|
|
|
|
#define RRDFUNCTIONS_STREAMING_HELP "Streaming status for parents and children."
|
|
|
|
#endif // NETDATA_RRDFUNCTIONS_H
|