remote_write.h 1022 B

12345678910111213141516171819202122232425
  1. // SPDX-License-Identifier: GPL-3.0-or-later
  2. #ifndef NETDATA_EXPORTING_PROMETHEUS_REMOTE_WRITE_H
  3. #define NETDATA_EXPORTING_PROMETHEUS_REMOTE_WRITE_H
  4. #include "exporting/exporting_engine.h"
  5. #include "exporting/prometheus/prometheus.h"
  6. #include "remote_write_request.h"
  7. struct prometheus_remote_write_specific_data {
  8. void *write_request;
  9. };
  10. int init_prometheus_remote_write_instance(struct instance *instance);
  11. extern void clean_prometheus_remote_write(struct instance *instance);
  12. int format_host_prometheus_remote_write(struct instance *instance, RRDHOST *host);
  13. int format_chart_prometheus_remote_write(struct instance *instance, RRDSET *st);
  14. int format_dimension_prometheus_remote_write(struct instance *instance, RRDDIM *rd);
  15. int format_batch_prometheus_remote_write(struct instance *instance);
  16. void prometheus_remote_write_prepare_header(struct instance *instance);
  17. int process_prometheus_remote_write_response(BUFFER *buffer, struct instance *instance);
  18. #endif //NETDATA_EXPORTING_PROMETHEUS_REMOTE_WRITE_H