| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_EXPORTING_OPENTSDB_H |
| 4 | #define NETDATA_EXPORTING_OPENTSDB_H |
| 5 | |
| 6 | #include "exporting/exporting_engine.h" |
| 7 | |
| 8 | int init_opentsdb_telnet_instance(struct instance *instance); |
| 9 | int init_opentsdb_http_instance(struct instance *instance); |
| 10 | |
| 11 | void sanitize_opentsdb_label_value(char *dst, const char *src, size_t len); |
| 12 | int format_host_labels_opentsdb_telnet(struct instance *instance, RRDHOST *host); |
| 13 | int format_host_labels_opentsdb_http(struct instance *instance, RRDHOST *host); |
| 14 | |
| 15 | int format_dimension_collected_opentsdb_telnet(struct instance *instance, RRDDIM *rd); |
| 16 | int format_dimension_stored_opentsdb_telnet(struct instance *instance, RRDDIM *rd); |
| 17 | |
| 18 | int format_dimension_collected_opentsdb_http(struct instance *instance, RRDDIM *rd); |
| 19 | int format_dimension_stored_opentsdb_http(struct instance *instance, RRDDIM *rd); |
| 20 | |
| 21 | int open_batch_opentsdb_http(struct instance *instance); |
| 22 | int close_batch_opentsdb_http(struct instance *instance); |
| 23 | |
| 24 | void opentsdb_http_prepare_header(struct instance *instance); |
| 25 | |
| 26 | #endif //NETDATA_EXPORTING_OPENTSDB_H |