Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
metric.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Mustafa Abdullah Kus, Sparse Technology
3 * Copyright (c) 2024 Nordic Semiconductor
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8#ifndef ZEPHYR_INCLUDE_PROMETHEUS_METRIC_H_
9#define ZEPHYR_INCLUDE_PROMETHEUS_METRIC_H_
10
21#include <zephyr/sys/slist.h>
23
40
71
76#endif /* ZEPHYR_INCLUDE_PROMETHEUS_METRIC_H_ */
prometheus_metric_type
Prometheus metric types.
Definition metric.h:30
#define MAX_PROMETHEUS_LABELS_PER_METRIC
Definition label.h:23
@ PROMETHEUS_HISTOGRAM
Prometheus Histogram.
Definition metric.h:38
@ PROMETHEUS_GAUGE
Prometheus Gauge.
Definition metric.h:34
@ PROMETHEUS_SUMMARY
Prometheus Summary.
Definition metric.h:36
@ PROMETHEUS_COUNTER
Prometheus Counter.
Definition metric.h:32
struct _snode sys_snode_t
Single-linked list node structure.
Definition slist.h:39
Prometheus label interface.
Prometheus collector definition.
Definition collector.h:50
Prometheus label definition.
Definition label.h:31
Type used to represent a Prometheus metric base.
Definition metric.h:47
enum prometheus_metric_type type
Type of the Prometheus metric.
Definition metric.h:58
struct prometheus_collector * collector
Back pointer to the collector that this metric belongs to.
Definition metric.h:51
int num_labels
Number of labels associated with the Prometheus metric.
Definition metric.h:66
const char * name
Name of the Prometheus metric.
Definition metric.h:60
void * metric
Back pointer to the actual metric (counter, gauge, etc.).
Definition metric.h:56
sys_snode_t node
Slist metric list node.
Definition metric.h:49
const char * description
Description of the Prometheus metric.
Definition metric.h:62
void * user_data
User defined data.
Definition metric.h:68
struct prometheus_label labels[MAX_PROMETHEUS_LABELS_PER_METRIC]
Labels associated with the Prometheus metric.
Definition metric.h:64