Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
label.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_LABEL_H_
8#define ZEPHYR_INCLUDE_PROMETHEUS_LABEL_H_
9
19#if defined(CONFIG_PROMETHEUS)
21#define MAX_PROMETHEUS_LABELS_PER_METRIC CONFIG_PROMETHEUS_LABEL_MAX_COUNT
22#else
23#define MAX_PROMETHEUS_LABELS_PER_METRIC 1
24#endif /* CONFIG_PROMETHEUS */
25
33 const char *key;
35 const char *value;
36};
37
42#endif /* ZEPHYR_INCLUDE_PROMETHEUS_LABEL_H_ */
Prometheus label definition.
Definition label.h:31
const char * value
Prometheus metric label value.
Definition label.h:35
const char * key
Prometheus metric label key.
Definition label.h:33