view src/stats/stats-carbon.h @ 21098:968da3b58769

stats: Add support for carbon-server Allows admin to specify stats_carbon_server=ip:port. Stats are delivered in "key value" format to specified port. Can be received with e.g. metronome.
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Sun, 06 Nov 2016 02:50:52 +0200
parents
children
line wrap: on
line source

#ifndef STATS_CARBON
#define STATS_CARBON 1

struct stats_send_ctx;

int
stats_carbon_send(const char *endpoint, const char *data,
		  void (*callback)(void *), void *cb_ctx,
		  struct stats_send_ctx **ctx_r);
void
stats_carbon_destroy(struct stats_send_ctx **ctx);

#endif