Lines Matching refs:buffer
27 static int write_metric_to_buffer(char *buffer, size_t buffer_size, const char *format, ...) in write_metric_to_buffer() argument
31 size_t len = strlen(buffer); in write_metric_to_buffer()
36 buffer += len; in write_metric_to_buffer()
40 len = vsnprintf(buffer, buffer_size, format, args); in write_metric_to_buffer()
49 int prometheus_format_one_metric(struct prometheus_metric *metric, char *buffer, in prometheus_format_one_metric() argument
56 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
68 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
78 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
88 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
98 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
108 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
128 buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
148 buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
168 buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
178 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
185 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
204 buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
214 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
221 ret = write_metric_to_buffer(buffer + *written, buffer_size - *written, in prometheus_format_one_metric()
243 int prometheus_format_exposition(struct prometheus_collector *collector, char *buffer, in prometheus_format_exposition() argument
251 if (collector == NULL || buffer == NULL || buffer_size == 0) { in prometheus_format_exposition()
274 ret = prometheus_format_one_metric(metric, buffer, buffer_size, &written); in prometheus_format_exposition()