diff options
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); |