0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-20 12:00:08 +00:00
netdata_netdata/backends/prometheus/remote_write/remote_write.h
Vladimir Kobal 77781d033d Prometheus remote write backend ()
* Add Prometheus remote write backend prototype

* Fix autotools issues

* Send HTTP POST request

* Add parameters to HTTP header

* Discard HTTP responce 200

* Update CMake build configuration

* Fix Codacy issue

* Check for C++ binary

* Fix compilation without remote write backend

* Add options to the installer script

* Fix configure script warning

* Fix make dist

* Downgrade to ByteSize for better compatibility

* Integrate remote write more tightly into the existing backends code

* Cleanup

* Fix build error

* Parse host tags

* Fix Codacy issue

* Fix counters for buffered data

* Rename preprocessor symbol

* Better error handling

* Cleanup

* Update the documentation
2019-06-07 10:48:32 +02:00

30 lines
782 B
C

// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef NETDATA_BACKEND_PROMETHEUS_REMOTE_WRITE_H
#define NETDATA_BACKEND_PROMETHEUS_REMOTE_WRITE_H
#ifdef __cplusplus
extern "C" {
#endif
void init_write_request();
void clear_write_request();
void add_host_info(const char *name, const char *instance, const char *application, const char *version, const int64_t timestamp);
void add_tag(char *tag, char *value);
void add_metric(const char *name, const char *chart, const char *family, const char *dimension, const char *instance, const double value, const int64_t timestamp);
size_t get_write_request_size();
int pack_write_request(char *buffer, size_t *size);
void protocol_buffers_shutdown();
#ifdef __cplusplus
}
#endif
#endif //NETDATA_BACKEND_PROMETHEUS_REMOTE_WRITE_H