NVIDIA DeepStream SDK API Reference

9.2 Release
includes/opentelemetry/semconv/cpu_metrics.h
Go to the documentation of this file.
1 /*
2  * Copyright The OpenTelemetry Authors
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 /*
7  * DO NOT EDIT, this is an Auto-generated file from:
8  * buildscripts/semantic-convention/templates/registry/semantic_metrics-h.j2
9  */
10 
11 #pragma once
12 
13 #include "opentelemetry/common/macros.h"
14 #include "opentelemetry/metrics/meter.h"
15 #include "opentelemetry/version.h"
16 
18 namespace semconv
19 {
20 namespace cpu
21 {
22 
28 static constexpr const char *kMetricCpuFrequency = "cpu.frequency";
29 static constexpr const char *descrMetricCpuFrequency =
30  "Operating frequency of the logical CPU in Hertz.";
31 static constexpr const char *unitMetricCpuFrequency = "Hz";
32 
33 #if OPENTELEMETRY_ABI_VERSION_NO >= 2
34 
35 static inline nostd::unique_ptr<metrics::Gauge<int64_t>> CreateSyncInt64MetricCpuFrequency(
36  metrics::Meter *meter)
37 {
38  return meter->CreateInt64Gauge(kMetricCpuFrequency, descrMetricCpuFrequency,
40 }
41 
42 static inline nostd::unique_ptr<metrics::Gauge<double>> CreateSyncDoubleMetricCpuFrequency(
43  metrics::Meter *meter)
44 {
45  return meter->CreateDoubleGauge(kMetricCpuFrequency, descrMetricCpuFrequency,
47 }
48 #endif /* OPENTELEMETRY_ABI_VERSION_NO */
49 
51  metrics::Meter *meter)
52 {
55 }
56 
58  metrics::Meter *meter)
59 {
62 }
63 
69 static constexpr const char *kMetricCpuTime = "cpu.time";
70 static constexpr const char *descrMetricCpuTime = "Seconds each logical CPU spent on each mode";
71 static constexpr const char *unitMetricCpuTime = "s";
72 
74  metrics::Meter *meter)
75 {
77 }
78 
80  metrics::Meter *meter)
81 {
83 }
84 
86  metrics::Meter *meter)
87 {
89 }
90 
92  metrics::Meter *meter)
93 {
96 }
97 
102 static constexpr const char *kMetricCpuUtilization = "cpu.utilization";
103 static constexpr const char *descrMetricCpuUtilization =
104  "For each logical CPU, the utilization is calculated as the change in cumulative CPU time "
105  "(cpu.time) over a measurement interval, divided by the elapsed time.";
106 static constexpr const char *unitMetricCpuUtilization = "1";
107 
108 #if OPENTELEMETRY_ABI_VERSION_NO >= 2
109 
110 static inline nostd::unique_ptr<metrics::Gauge<int64_t>> CreateSyncInt64MetricCpuUtilization(
111  metrics::Meter *meter)
112 {
113  return meter->CreateInt64Gauge(kMetricCpuUtilization, descrMetricCpuUtilization,
115 }
116 
117 static inline nostd::unique_ptr<metrics::Gauge<double>> CreateSyncDoubleMetricCpuUtilization(
118  metrics::Meter *meter)
119 {
120  return meter->CreateDoubleGauge(kMetricCpuUtilization, descrMetricCpuUtilization,
122 }
123 #endif /* OPENTELEMETRY_ABI_VERSION_NO */
124 
126  metrics::Meter *meter)
127 {
130 }
131 
134 {
137 }
138 
139 } // namespace cpu
140 } // namespace semconv
metrics::Meter::CreateInt64ObservableGauge
virtual nostd::shared_ptr< ObservableInstrument > CreateInt64ObservableGauge(nostd::string_view name, nostd::string_view description="", nostd::string_view unit="") noexcept=0
Creates a Asynchronous (Observable) Gauge with the passed characteristics and returns a shared_ptr to...
semconv::cpu::CreateAsyncDoubleMetricCpuUtilization
static nostd::shared_ptr< metrics::ObservableInstrument > CreateAsyncDoubleMetricCpuUtilization(metrics::Meter *meter)
Definition: includes/opentelemetry/semconv/cpu_metrics.h:133
semconv::cpu::CreateSyncInt64MetricCpuTime
static nostd::unique_ptr< metrics::Counter< uint64_t > > CreateSyncInt64MetricCpuTime(metrics::Meter *meter)
Definition: includes/opentelemetry/semconv/cpu_metrics.h:73
semconv::cpu::CreateSyncDoubleMetricCpuTime
static nostd::unique_ptr< metrics::Counter< double > > CreateSyncDoubleMetricCpuTime(metrics::Meter *meter)
Definition: includes/opentelemetry/semconv/cpu_metrics.h:79
semconv::cpu::descrMetricCpuUtilization
static constexpr const char * descrMetricCpuUtilization
Definition: includes/opentelemetry/semconv/cpu_metrics.h:103
nostd::unique_ptr
Provide a simplified port of std::unique_ptr that has ABI stability.
Definition: includes/opentelemetry/nostd/unique_ptr.h:45
nostd::shared_ptr
Provide a type-erased version of std::shared_ptr that has ABI stability.
Definition: includes/opentelemetry/nostd/shared_ptr.h:28
semconv
Definition: includes/opentelemetry/semconv/azure_metrics.h:18
semconv::cpu::descrMetricCpuFrequency
static constexpr const char * descrMetricCpuFrequency
Definition: includes/opentelemetry/semconv/cpu_metrics.h:29
semconv::cpu::kMetricCpuTime
static constexpr const char * kMetricCpuTime
Seconds each logical CPU spent on each mode.
Definition: includes/opentelemetry/semconv/cpu_metrics.h:69
semconv::cpu::CreateAsyncInt64MetricCpuFrequency
static nostd::shared_ptr< metrics::ObservableInstrument > CreateAsyncInt64MetricCpuFrequency(metrics::Meter *meter)
Definition: includes/opentelemetry/semconv/cpu_metrics.h:50
semconv::cpu::unitMetricCpuFrequency
static constexpr const char * unitMetricCpuFrequency
Definition: includes/opentelemetry/semconv/cpu_metrics.h:31
OPENTELEMETRY_BEGIN_NAMESPACE
#define OPENTELEMETRY_BEGIN_NAMESPACE
Definition: includes/opentelemetry/version.h:21
semconv::cpu::CreateAsyncDoubleMetricCpuTime
static nostd::shared_ptr< metrics::ObservableInstrument > CreateAsyncDoubleMetricCpuTime(metrics::Meter *meter)
Definition: includes/opentelemetry/semconv/cpu_metrics.h:91
semconv::cpu::CreateAsyncInt64MetricCpuTime
static nostd::shared_ptr< metrics::ObservableInstrument > CreateAsyncInt64MetricCpuTime(metrics::Meter *meter)
Definition: includes/opentelemetry/semconv/cpu_metrics.h:85
metrics::Meter::CreateDoubleCounter
virtual nostd::unique_ptr< Counter< double > > CreateDoubleCounter(nostd::string_view name, nostd::string_view description="", nostd::string_view unit="") noexcept=0
semconv::cpu::descrMetricCpuTime
static constexpr const char * descrMetricCpuTime
Definition: includes/opentelemetry/semconv/cpu_metrics.h:70
metrics::Meter::CreateDoubleObservableCounter
virtual nostd::shared_ptr< ObservableInstrument > CreateDoubleObservableCounter(nostd::string_view name, nostd::string_view description="", nostd::string_view unit="") noexcept=0
OPENTELEMETRY_END_NAMESPACE
#define OPENTELEMETRY_END_NAMESPACE
Definition: includes/opentelemetry/version.h:24
semconv::cpu::kMetricCpuUtilization
static constexpr const char * kMetricCpuUtilization
For each logical CPU, the utilization is calculated as the change in cumulative CPU time (cpu....
Definition: includes/opentelemetry/semconv/cpu_metrics.h:102
metrics::Meter::CreateUInt64Counter
virtual nostd::unique_ptr< Counter< uint64_t > > CreateUInt64Counter(nostd::string_view name, nostd::string_view description="", nostd::string_view unit="") noexcept=0
Creates a Counter with the passed characteristics and returns a unique_ptr to that Counter.
metrics::Meter::CreateInt64ObservableCounter
virtual nostd::shared_ptr< ObservableInstrument > CreateInt64ObservableCounter(nostd::string_view name, nostd::string_view description="", nostd::string_view unit="") noexcept=0
Creates a Asynchronous (Observable) counter with the passed characteristics and returns a shared_ptr ...
metrics::Meter::CreateDoubleObservableGauge
virtual nostd::shared_ptr< ObservableInstrument > CreateDoubleObservableGauge(nostd::string_view name, nostd::string_view description="", nostd::string_view unit="") noexcept=0
metrics::Meter
Handles instrument creation and provides a facility for batch recording.
Definition: includes/opentelemetry/metrics/meter.h:37
semconv::cpu::unitMetricCpuTime
static constexpr const char * unitMetricCpuTime
Definition: includes/opentelemetry/semconv/cpu_metrics.h:71
semconv::cpu::unitMetricCpuUtilization
static constexpr const char * unitMetricCpuUtilization
Definition: includes/opentelemetry/semconv/cpu_metrics.h:106
semconv::cpu::CreateAsyncInt64MetricCpuUtilization
static nostd::shared_ptr< metrics::ObservableInstrument > CreateAsyncInt64MetricCpuUtilization(metrics::Meter *meter)
Definition: includes/opentelemetry/semconv/cpu_metrics.h:125
semconv::cpu::CreateAsyncDoubleMetricCpuFrequency
static nostd::shared_ptr< metrics::ObservableInstrument > CreateAsyncDoubleMetricCpuFrequency(metrics::Meter *meter)
Definition: includes/opentelemetry/semconv/cpu_metrics.h:57
semconv::cpu::kMetricCpuFrequency
static constexpr const char * kMetricCpuFrequency
Operating frequency of the logical CPU in Hertz.
Definition: includes/opentelemetry/semconv/cpu_metrics.h:28