Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
counter.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_COUNTER_H_
8#define ZEPHYR_INCLUDE_PROMETHEUS_COUNTER_H_
9
19#include <stdint.h>
20
23
36
61#define PROMETHEUS_COUNTER_DEFINE(_name, _detail) \
62 static STRUCT_SECTION_ITERABLE(prometheus_counter, _name) = {.base = (void *)(_detail), \
63 .value = 0}
64
72
77#endif /* ZEPHYR_INCLUDE_PROMETHEUS_COUNTER_H_ */
int prometheus_counter_inc(struct prometheus_counter *counter)
Increment the value of a Prometheus counter metric Increments the value of the specified counter metr...
Prometheus metric interface.
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
Type used to represent a Prometheus counter metric.
Definition counter.h:30
uint64_t value
Value of the Prometheus counter metric.
Definition counter.h:34
struct prometheus_metric * base
Base of the Prometheus counter metric.
Definition counter.h:32
Type used to represent a Prometheus metric base.
Definition metric.h:48