diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 11:49:00 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 12:42:05 +0000 |
commit | 2e85f9325a797977eea9dfea0a925775ddd211d9 (patch) | |
tree | 452c7f30d62fca5755f659b99e4e53c7b03afc21 /backends/backends.h | |
parent | Releasing debian version 1.19.0-4. (diff) | |
download | netdata-2e85f9325a797977eea9dfea0a925775ddd211d9.tar.xz netdata-2e85f9325a797977eea9dfea0a925775ddd211d9.zip |
Merging upstream version 1.29.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'backends/backends.h')
-rw-r--r-- | backends/backends.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/backends.h b/backends/backends.h index 9da04ccee..2f4efd90d 100644 --- a/backends/backends.h +++ b/backends/backends.h @@ -21,12 +21,12 @@ typedef enum backend_types { BACKEND_TYPE_OPENTSDB_USING_TELNET, // Send data to OpenTSDB using telnet API BACKEND_TYPE_OPENTSDB_USING_HTTP, // Send data to OpenTSDB using HTTP API BACKEND_TYPE_JSON, // Stores the data using JSON. - BACKEND_TYPE_PROMETEUS, // The user selected to use Prometheus backend + BACKEND_TYPE_PROMETHEUS_REMOTE_WRITE, // The user selected to use Prometheus backend BACKEND_TYPE_KINESIS, // Send message to AWS Kinesis - BACKEND_TYPE_MONGODB // Send data to MongoDB collection + BACKEND_TYPE_MONGODB, // Send data to MongoDB collection + BACKEND_TYPE_NUM // Number of backend types } BACKEND_TYPE; - typedef int (**backend_response_checker_t)(BUFFER *); typedef int (**backend_request_formatter_t)(BUFFER *, const char *, RRDHOST *, const char *, RRDSET *, RRDDIM *, time_t, time_t, BACKEND_OPTIONS); @@ -35,9 +35,11 @@ typedef int (**backend_request_formatter_t)(BUFFER *, const char *, RRDHOST *, c extern int global_backend_update_every; extern BACKEND_OPTIONS global_backend_options; +extern const char *global_backend_source; extern const char *global_backend_prefix; extern void *backends_main(void *ptr); +BACKEND_TYPE backend_select_type(const char *type); extern BACKEND_OPTIONS backend_parse_data_source(const char *source, BACKEND_OPTIONS backend_options); |