summaryrefslogtreecommitdiffstats
path: root/backends/prometheus/remote_write/remote_write.h
blob: 1307d728102cd9bc6791e37b489f5d1a33410d1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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 backends_init_write_request();

void backends_clear_write_request();

void backends_add_host_info(const char *name, const char *instance, const char *application, const char *version, const int64_t timestamp);

void backends_add_tag(char *tag, char *value);

void backends_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 backends_get_write_request_size();

int backends_pack_write_request(char *buffer, size_t *size);

void backends_protocol_buffers_shutdown();

#ifdef __cplusplus
}
#endif

#endif //NETDATA_BACKEND_PROMETHEUS_REMOTE_WRITE_H