Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
prometheus_metric Struct Reference

Type used to represent a Prometheus metric base. More...

#include <metric.h>

Data Fields

enum prometheus_metric_type type
 Type of the Prometheus metric.
 
char name [32]
 Name of the Prometheus metric.
 
char description [64]
 Description of the Prometheus metric.
 
struct prometheus_label labels [MAX_PROMETHEUS_LABELS_PER_METRIC]
 Labels associated with the Prometheus metric.
 
int num_labels
 Number of labels associated with the Prometheus metric.
 

Detailed Description

Type used to represent a Prometheus metric base.

Every metric has a prometheus_metric structure associated used to control the metric access and usage.

Field Documentation

◆ description

char prometheus_metric::description[64]

Description of the Prometheus metric.

◆ labels

struct prometheus_label prometheus_metric::labels[MAX_PROMETHEUS_LABELS_PER_METRIC]

Labels associated with the Prometheus metric.

◆ name

char prometheus_metric::name[32]

Name of the Prometheus metric.

◆ num_labels

int prometheus_metric::num_labels

Number of labels associated with the Prometheus metric.

◆ type

enum prometheus_metric_type prometheus_metric::type

Type of the Prometheus metric.


The documentation for this struct was generated from the following file: