Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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.