Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
formatter.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Mustafa Abdullah Kus, Sparse Technology
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_PROMETHEUS_FORMATTER_H_
8#define ZEPHYR_INCLUDE_PROMETHEUS_FORMATTER_H_
9
20
33int prometheus_format_exposition(struct prometheus_collector *collector, char *buffer,
34 size_t buffer_size);
35
49int prometheus_format_one_metric(struct prometheus_metric *metric, char *buffer,
50 size_t buffer_size, int *written);
51
56#endif /* ZEPHYR_INCLUDE_PROMETHEUS_FORMATTER_H_ */
Prometheus collector APIs.
int prometheus_format_one_metric(struct prometheus_metric *metric, char *buffer, size_t buffer_size, int *written)
Format exposition data for one metric for Prometheus.
int prometheus_format_exposition(struct prometheus_collector *collector, char *buffer, size_t buffer_size)
Format exposition data for Prometheus.
Prometheus collector definition.
Definition collector.h:50
Type used to represent a Prometheus metric base.
Definition metric.h:47