Zephyr API Documentation 4.2.0-rc2
A Scalable Open Source RTOS
 4.2.0-rc2
counter.h File Reference

Prometheus counter APIs. More...

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.

Detailed Description

Prometheus counter APIs.