Debian Codegraph @

cmd/mdatagen/internal/samplereceiver/documentation.md

raw
1 [comment]: <> (Code generated by mdatagen. DO NOT EDIT.)
2
3 # sample
4
5 ## Default Metrics
6
7 The following metrics are emitted by default. Each of them can be disabled by applying the following configuration:
8
9 ```yaml
10 metrics:
11 <metric_name>:
12 enabled: false
13 ```
14
15 ### default.metric
16
17 Monotonic cumulative sum int metric enabled by default.
18
19 The metric will be become optional soon.
20
21 | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability |
22 | ---- | ----------- | ---------- | ----------------------- | --------- | --------- |
23 | s | Sum | Int | Cumulative | true | Development |
24
25 #### Attributes
26
27 | Name | Description | Values | Requirement Level |
28 | ---- | ----------- | ------ | -------- |
29 | string_attr | Attribute with any string value. | Any Str | Recommended |
30 | state | Integer attribute with overridden name. | Any Int | Recommended |
31 | enum_attr | Attribute with a known set of string values. | Str: ``red``, ``green``, ``blue`` | Recommended |
32 | slice_attr | Attribute with a slice value. | Any Slice | Recommended |
33 | map_attr | Attribute with a map value. | Any Map | Recommended |
34 | conditional_int_attr | A conditional attribute with an integer value | Any Int | Conditionally Required |
35 | conditional_string_attr | A conditional attribute with any string value | Any Str | Conditionally Required |
36 | opt_in_bool_attr | An opt-in attribute with a boolean value | Any Bool | Opt-In |
37
38 ### default.metric.to_be_removed
39
40 [DEPRECATED] Non-monotonic delta sum double metric enabled by default.
41
42 The metric will be removed soon.
43
44 | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability |
45 | ---- | ----------- | ---------- | ----------------------- | --------- | --------- |
46 | s | Sum | Double | Delta | false | Deprecated |
47
48 ### metric.input_type
49
50 Monotonic cumulative sum int metric with string input_type enabled by default.
51
52 | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability |
53 | ---- | ----------- | ---------- | ----------------------- | --------- | --------- |
54 | s | Sum | Int | Cumulative | true | Development |
55
56 #### Attributes
57
58 | Name | Description | Values | Requirement Level |
59 | ---- | ----------- | ------ | -------- |
60 | string_attr | Attribute with any string value. | Any Str | Recommended |
61 | state | Integer attribute with overridden name. | Any Int | Recommended |
62 | enum_attr | Attribute with a known set of string values. | Str: ``red``, ``green``, ``blue`` | Recommended |
63 | slice_attr | Attribute with a slice value. | Any Slice | Recommended |
64 | map_attr | Attribute with a map value. | Any Map | Recommended |
65
66 ### system.cpu.time
67
68 Monotonic cumulative sum int metric enabled by default.
69
70 The metric will be become optional soon.
71
72 | Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic | Stability | Semantic Convention |
73 | ---- | ----------- | ---------- | ----------------------- | --------- | --------- | ------------------- |
74 | s | Sum | Int | Cumulative | true | Beta | [system.cpu.time](https://github.com/open-telemetry/semantic-conventions/blob/v1.37.0/docs/system/system-metrics.md#metric-systemcputime) |
75
76 ## Optional Metrics
77
78 The following metrics are not emitted by default. Each of them can be enabled by applying the following configuration:
79
80 ```yaml
81 metrics:
82 <metric_name>:
83 enabled: true
84 ```
85
86 ### optional.metric
87
88 [DEPRECATED] Gauge double metric disabled by default.
89
90 | Unit | Metric Type | Value Type | Stability |
91 | ---- | ----------- | ---------- | --------- |
92 | 1 | Gauge | Double | Deprecated |
93
94 #### Attributes
95
96 | Name | Description | Values | Requirement Level |
97 | ---- | ----------- | ------ | -------- |
98 | string_attr | Attribute with any string value. | Any Str | Recommended |
99 | boolean_attr | Attribute with a boolean value. | Any Bool | Recommended |
100 | boolean_attr2 | Another attribute with a boolean value. | Any Bool | Recommended |
101 | conditional_string_attr | A conditional attribute with any string value | Any Str | Conditionally Required |
102
103 ### optional.metric.empty_unit
104
105 [DEPRECATED] Gauge double metric disabled by default.
106
107 | Unit | Metric Type | Value Type | Stability |
108 | ---- | ----------- | ---------- | --------- |
109 | | Gauge | Double | Deprecated |
110
111 #### Attributes
112
113 | Name | Description | Values | Requirement Level |
114 | ---- | ----------- | ------ | -------- |
115 | string_attr | Attribute with any string value. | Any Str | Recommended |
116 | boolean_attr | Attribute with a boolean value. | Any Bool | Recommended |
117
118 ## Default Events
119
120 The following events are emitted by default. Each of them can be disabled by applying the following configuration:
121
122 ```yaml
123 events:
124 <event_name>:
125 enabled: false
126 ```
127
128 ### default.event
129
130 Example event enabled by default.
131
132 #### Attributes
133
134 | Name | Description | Values |
135 | ---- | ----------- | ------ |
136 | string_attr | Attribute with any string value. | Any Str |
137 | state | Integer attribute with overridden name. | Any Int |
138 | enum_attr | Attribute with a known set of string values. | Str: ``red``, ``green``, ``blue`` |
139 | slice_attr | Attribute with a slice value. | Any Slice |
140 | map_attr | Attribute with a map value. | Any Map |
141 | conditional_int_attr | A conditional attribute with an integer value | Any Int |
142 | conditional_string_attr | A conditional attribute with any string value | Any Str |
143 | opt_in_bool_attr | An opt-in attribute with a boolean value | Any Bool |
144
145 ### default.event.to_be_removed
146
147 [DEPRECATED] Example to-be-removed event enabled by default.
148
149 The event will be removed soon.
150
151 #### Attributes
152
153 | Name | Description | Values |
154 | ---- | ----------- | ------ |
155 | string_attr | Attribute with any string value. | Any Str |
156 | state | Integer attribute with overridden name. | Any Int |
157 | enum_attr | Attribute with a known set of string values. | Str: ``red``, ``green``, ``blue`` |
158 | slice_attr | Attribute with a slice value. | Any Slice |
159 | map_attr | Attribute with a map value. | Any Map |
160
161 ## Optional Events
162
163 The following events are not emitted by default. Each of them can be enabled by applying the following configuration:
164
165 ```yaml
166 events:
167 <event_name>:
168 enabled: true
169 ```
170
171 ### default.event.to_be_renamed
172
173 [DEPRECATED] Example event disabled by default.
174
175 The event will be renamed soon.
176
177 #### Attributes
178
179 | Name | Description | Values |
180 | ---- | ----------- | ------ |
181 | string_attr | Attribute with any string value. | Any Str |
182 | boolean_attr | Attribute with a boolean value. | Any Bool |
183 | boolean_attr2 | Another attribute with a boolean value. | Any Bool |
184 | conditional_string_attr | A conditional attribute with any string value | Any Str |
185
186 ## Resource Attributes
187
188 | Name | Description | Values | Enabled |
189 | ---- | ----------- | ------ | ------- |
190 | map.resource.attr | Resource attribute with a map value. | Any Map | true |
191 | optional.resource.attr | Explicitly disabled ResourceAttribute. | Any Str | false |
192 | slice.resource.attr | Resource attribute with a slice value. | Any Slice | true |
193 | string.enum.resource.attr | Resource attribute with a known set of string values. | Str: ``one``, ``two`` | true |
194 | string.resource.attr | Resource attribute with any string value. | Any Str | true |
195 | string.resource.attr_disable_warning | Resource attribute with any string value. | Any Str | true |
196 | string.resource.attr_remove_warning | Resource attribute with any string value. | Any Str | false |
197 | string.resource.attr_to_be_removed | Resource attribute with any string value. | Any Str | true |
198
199 ## Internal Telemetry
200
201 The following telemetry is emitted by this component.
202
203 ### otelcol_batch_size_trigger_send
204
205 Number of times the batch was sent due to a size trigger [Deprecated since v0.110.0]
206
207 | Unit | Metric Type | Value Type | Monotonic | Stability |
208 | ---- | ----------- | ---------- | --------- | --------- |
209 | {times} | Sum | Int | true | Deprecated |
210
211 ### otelcol_process_runtime_total_alloc_bytes
212
213 Cumulative bytes allocated for heap objects (see 'go doc runtime.MemStats.TotalAlloc')
214
215 | Unit | Metric Type | Value Type | Monotonic | Stability |
216 | ---- | ----------- | ---------- | --------- | --------- |
217 | By | Sum | Int | true | Stable |
218
219 ### otelcol_queue_capacity
220
221 Queue capacity - sync gauge example. [Development]
222
223 | Unit | Metric Type | Value Type | Stability |
224 | ---- | ----------- | ---------- | --------- |
225 | {items} | Gauge | Int | Development |
226
227 ### otelcol_queue_length
228
229 This metric is optional and therefore not initialized in NewTelemetryBuilder. [Alpha]
230
231 For example this metric only exists if feature A is enabled.
232
233 | Unit | Metric Type | Value Type | Stability |
234 | ---- | ----------- | ---------- | --------- |
235 | {items} | Gauge | Int | Alpha |
236
237 ### otelcol_request_duration
238
239 Duration of request [Alpha]
240
241 | Unit | Metric Type | Value Type | Stability |
242 | ---- | ----------- | ---------- | --------- |
243 | s | Histogram | Double | Alpha |