Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
Prometheus counter APIs. More...
#include <stdint.h>
#include <zephyr/sys/iterable_sections.h>
#include <zephyr/net/prometheus/metric.h>
Go to the source code of this file.
Data Structures | |
struct | prometheus_counter |
Type used to represent a Prometheus counter metric. More... | |
Macros | |
#define | PROMETHEUS_COUNTER_DEFINE(_name, _desc, _label, _collector, ...) |
Prometheus Counter definition. | |
Functions | |
int | prometheus_counter_add (struct prometheus_counter *counter, uint64_t value) |
Increment the value of a Prometheus counter metric Increments the value of the specified counter metric by arbitrary amount. | |
static int | prometheus_counter_inc (struct prometheus_counter *counter) |
Increment the value of a Prometheus counter metric Increments the value of the specified counter metric by one. | |
int | prometheus_counter_set (struct prometheus_counter *counter, uint64_t value) |
Set the counter value to specific value. | |
Prometheus counter APIs.