Debian Codegraph @

cmd/mdatagen/internal/samplereceiver/metadata.yaml

raw
1 # Sample metadata file with all available configurations for a receiver.
2
3 type: sample
4 scope_name: go.opentelemetry.io/collector/internal/receiver/samplereceiver
5 github_project: open-telemetry/opentelemetry-collector
6
7 sem_conv_version: 1.37.0
8
9 status:
10 disable_codecov_badge: true
11 class: receiver
12 stability:
13 development: [logs]
14 beta: [traces]
15 stable: [metrics]
16 deprecated: [profiles]
17 deprecation:
18 profiles:
19 migration: "no migration needed"
20 date: "2025-02-05"
21 distributions: []
22 unsupported_platforms: [freebsd, illumos]
23 codeowners:
24 active: [dmitryax]
25 warnings:
26 - Any additional information that should be brought to the consumer's attention
27
28 resource_attributes:
29 map.resource.attr:
30 description: Resource attribute with a map value.
31 type: map
32 enabled: true
33
34 optional.resource.attr:
35 description: Explicitly disabled ResourceAttribute.
36 type: string
37 enabled: false
38
39 slice.resource.attr:
40 description: Resource attribute with a slice value.
41 type: slice
42 enabled: true
43
44 string.enum.resource.attr:
45 description: Resource attribute with a known set of string values.
46 type: string
47 enum: [one, two]
48 enabled: true
49
50 string.resource.attr:
51 description: Resource attribute with any string value.
52 type: string
53 enabled: true
54
55 string.resource.attr_disable_warning:
56 description: Resource attribute with any string value.
57 type: string
58 enabled: true
59 warnings:
60 if_enabled_not_set: This resource_attribute will be disabled by default soon.
61
62 string.resource.attr_remove_warning:
63 description: Resource attribute with any string value.
64 type: string
65 enabled: false
66 warnings:
67 if_configured: This resource_attribute is deprecated and will be removed soon.
68
69 string.resource.attr_to_be_removed:
70 description: Resource attribute with any string value.
71 type: string
72 enabled: true
73 warnings:
74 if_enabled: This resource_attribute is deprecated and will be removed soon.
75
76 attributes:
77 boolean_attr:
78 description: Attribute with a boolean value.
79 type: bool
80
81 # This 2nd boolean attribute allows us to test both values for boolean attributes,
82 # as test values are based on the parity of the attribute name length.
83 boolean_attr2:
84 description: Another attribute with a boolean value.
85 type: bool
86
87 conditional_int_attr:
88 description: A conditional attribute with an integer value
89 type: int
90 requirement_level: conditionally_required
91
92 conditional_string_attr:
93 description: A conditional attribute with any string value
94 type: string
95 requirement_level: conditionally_required
96
97 enum_attr:
98 description: Attribute with a known set of string values.
99 type: string
100 enum: [red, green, blue]
101
102 map_attr:
103 description: Attribute with a map value.
104 type: map
105
106 opt_in_bool_attr:
107 description: An opt-in attribute with a boolean value
108 type: bool
109 requirement_level: opt_in
110
111 overridden_int_attr:
112 name_override: state
113 description: Integer attribute with overridden name.
114 type: int
115
116 slice_attr:
117 description: Attribute with a slice value.
118 type: slice
119
120 string_attr:
121 description: Attribute with any string value.
122 type: string
123
124 events:
125 default.event:
126 enabled: true
127 description: Example event enabled by default.
128 attributes:
129 [
130 string_attr,
131 overridden_int_attr,
132 enum_attr,
133 slice_attr,
134 map_attr,
135 conditional_int_attr,
136 conditional_string_attr,
137 opt_in_bool_attr,
138 ]
139 warnings:
140 if_enabled_not_set: This event will be disabled by default soon.
141
142 default.event.to_be_removed:
143 enabled: true
144 description: "[DEPRECATED] Example to-be-removed event enabled by default."
145 extended_documentation: The event will be removed soon.
146 warnings:
147 if_enabled: This event is deprecated and will be removed soon.
148 attributes:
149 [string_attr, overridden_int_attr, enum_attr, slice_attr, map_attr]
150
151 default.event.to_be_renamed:
152 enabled: false
153 description: "[DEPRECATED] Example event disabled by default."
154 extended_documentation: The event will be renamed soon.
155 attributes: [string_attr, boolean_attr, boolean_attr2, conditional_string_attr]
156 warnings:
157 if_configured: This event is deprecated and will be renamed soon.
158
159 metrics:
160 default.metric:
161 enabled: true
162 description: Monotonic cumulative sum int metric enabled by default.
163 extended_documentation: The metric will be become optional soon.
164 stability:
165 level: development
166 unit: s
167 sum:
168 value_type: int
169 monotonic: true
170 aggregation_temporality: cumulative
171 attributes:
172 [
173 string_attr,
174 overridden_int_attr,
175 enum_attr,
176 slice_attr,
177 map_attr,
178 conditional_int_attr,
179 conditional_string_attr,
180 opt_in_bool_attr,
181 ]
182 warnings:
183 if_enabled_not_set: This metric will be disabled by default soon.
184
185 default.metric.to_be_removed:
186 enabled: true
187 description: "[DEPRECATED] Non-monotonic delta sum double metric enabled by default."
188 extended_documentation: The metric will be removed soon.
189 stability:
190 level: deprecated
191 unit: s
192 sum:
193 value_type: double
194 monotonic: false
195 aggregation_temporality: delta
196 warnings:
197 if_enabled: This metric is deprecated and will be removed soon.
198
199 metric.input_type:
200 enabled: true
201 description: Monotonic cumulative sum int metric with string input_type enabled by default.
202 stability:
203 level: development
204 unit: s
205 sum:
206 value_type: int
207 input_type: string
208 monotonic: true
209 aggregation_temporality: cumulative
210 attributes:
211 [string_attr, overridden_int_attr, enum_attr, slice_attr, map_attr]
212
213 optional.metric:
214 enabled: false
215 description: "[DEPRECATED] Gauge double metric disabled by default."
216 stability:
217 level: deprecated
218 unit: "1"
219 gauge:
220 value_type: double
221 attributes: [string_attr, boolean_attr, boolean_attr2, conditional_string_attr]
222 warnings:
223 if_configured: This metric is deprecated and will be removed soon.
224
225 optional.metric.empty_unit:
226 enabled: false
227 description: "[DEPRECATED] Gauge double metric disabled by default."
228 stability:
229 level: deprecated
230 unit: ""
231 gauge:
232 value_type: double
233 attributes: [string_attr, boolean_attr]
234 warnings:
235 if_configured: This metric is deprecated and will be removed soon.
236
237 system.cpu.time:
238 enabled: true
239 stability:
240 level: beta
241 description: Monotonic cumulative sum int metric enabled by default.
242 extended_documentation: The metric will be become optional soon.
243 unit: s
244 sum:
245 value_type: int
246 monotonic: true
247 aggregation_temporality: cumulative
248 semantic_convention:
249 ref: https://github.com/open-telemetry/semantic-conventions/blob/v1.37.0/docs/system/system-metrics.md#metric-systemcputime
250
251 telemetry:
252 metrics:
253 batch_size_trigger_send:
254 enabled: true
255 stability:
256 level: deprecated
257 from: v0.110.0
258 description: Number of times the batch was sent due to a size trigger
259 unit: "{times}"
260 sum:
261 value_type: int
262 monotonic: true
263 process_runtime_total_alloc_bytes:
264 enabled: true
265 stability:
266 level: stable
267 description: Cumulative bytes allocated for heap objects (see 'go doc runtime.MemStats.TotalAlloc')
268 unit: By
269 sum:
270 async: true
271 value_type: int
272 monotonic: true
273 queue_capacity:
274 enabled: true
275 description: Queue capacity - sync gauge example.
276 stability:
277 level: development
278 unit: "{items}"
279 gauge:
280 value_type: int
281 queue_length:
282 enabled: true
283 stability:
284 level: alpha
285 description: This metric is optional and therefore not initialized in NewTelemetryBuilder.
286 extended_documentation: For example this metric only exists if feature A is enabled.
287 unit: "{items}"
288 optional: true
289 gauge:
290 async: true
291 value_type: int
292 request_duration:
293 enabled: true
294 stability:
295 level: alpha
296 description: Duration of request
297 unit: s
298 histogram:
299 value_type: double
300 bucket_boundaries: [1, 10, 100]