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 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_PROMETHEUS_METRIC_H_
8#define ZEPHYR_INCLUDE_PROMETHEUS_METRIC_H_
9
21
38
39#define MAX_METRIC_NAME_LENGTH 32
40#define MAX_METRIC_DESCRIPTION_LENGTH 64
41
61
66#endif /* ZEPHYR_INCLUDE_PROMETHEUS_METRIC_H_ */
#define MAX_METRIC_NAME_LENGTH
Definition metric.h:39
prometheus_metric_type
Prometheus metric types.
Definition metric.h:28
#define MAX_PROMETHEUS_LABELS_PER_METRIC
Definition label.h:24
#define MAX_METRIC_DESCRIPTION_LENGTH
Definition metric.h:40
@ PROMETHEUS_HISTOGRAM
Prometheus Histogram.
Definition metric.h:36
@ PROMETHEUS_GAUGE
Prometheus Gauge.
Definition metric.h:32
@ PROMETHEUS_SUMMARY
Prometheus Summary.
Definition metric.h:34
@ PROMETHEUS_COUNTER
Prometheus Counter.
Definition metric.h:30
Prometheus label interface.
Prometheus label definition.
Definition label.h:31
Type used to represent a Prometheus metric base.
Definition metric.h:48
enum prometheus_metric_type type
Type of the Prometheus metric.
Definition metric.h:50
int num_labels
Number of labels associated with the Prometheus metric.
Definition metric.h:58
char name[32]
Name of the Prometheus metric.
Definition metric.h:52
struct prometheus_label labels[MAX_PROMETHEUS_LABELS_PER_METRIC]
Labels associated with the Prometheus metric.
Definition metric.h:56
char description[64]
Description of the Prometheus metric.
Definition metric.h:54