Debian Codegraph @

cmd/mdatagen/internal/samplescraper/metadata.yaml

raw
1 # Sample metadata file with all available configurations for a scraper.
2
3 type: sample
4 github_project: open-telemetry/opentelemetry-collector
5
6 sem_conv_version: 1.37.0
7
8 status:
9 disable_codecov_badge: true
10 class: scraper
11 stability:
12 stable: [metrics]
13 development: [logs]
14 distributions: []
15 unsupported_platforms: [freebsd, illumos]
16 codeowners:
17 active: [dmitryax]
18 warnings:
19 - Any additional information that should be brought to the consumer's attention
20
21 resource_attributes:
22 map.resource.attr:
23 description: Resource attribute with a map value.
24 type: map
25 enabled: true
26
27 optional.resource.attr:
28 description: Explicitly disabled ResourceAttribute.
29 type: string
30 enabled: false
31
32 slice.resource.attr:
33 description: Resource attribute with a slice value.
34 type: slice
35 enabled: true
36
37 string.enum.resource.attr:
38 description: Resource attribute with a known set of string values.
39 type: string
40 enum: [one, two]
41 enabled: true
42
43 string.resource.attr:
44 description: Resource attribute with any string value.
45 type: string
46 enabled: true
47
48 string.resource.attr_disable_warning:
49 description: Resource attribute with any string value.
50 type: string
51 enabled: true
52 warnings:
53 if_enabled_not_set: This resource_attribute will be disabled by default soon.
54
55 string.resource.attr_remove_warning:
56 description: Resource attribute with any string value.
57 type: string
58 enabled: false
59 warnings:
60 if_configured: This resource_attribute is deprecated and will be removed soon.
61
62 string.resource.attr_to_be_removed:
63 description: Resource attribute with any string value.
64 type: string
65 enabled: true
66 warnings:
67 if_enabled: This resource_attribute is deprecated and will be removed soon.
68
69 attributes:
70 boolean_attr:
71 description: Attribute with a boolean value.
72 type: bool
73
74 # This 2nd boolean attribute allows us to test both values for boolean attributes,
75 # as test values are based on the parity of the attribute name length.
76 boolean_attr2:
77 description: Another attribute with a boolean value.
78 type: bool
79
80 enum_attr:
81 description: Attribute with a known set of string values.
82 type: string
83 enum: [red, green, blue]
84
85 map_attr:
86 description: Attribute with a map value.
87 type: map
88
89 overridden_int_attr:
90 name_override: state
91 description: Integer attribute with overridden name.
92 type: int
93
94 slice_attr:
95 description: Attribute with a slice value.
96 type: slice
97
98 string_attr:
99 description: Attribute with any string value.
100 type: string
101
102 metrics:
103 default.metric:
104 enabled: true
105 description: Monotonic cumulative sum int metric enabled by default.
106 extended_documentation: The metric will be become optional soon.
107 stability:
108 level: development
109 unit: s
110 sum:
111 value_type: int
112 monotonic: true
113 aggregation_temporality: cumulative
114 attributes:
115 [string_attr, overridden_int_attr, enum_attr, slice_attr, map_attr]
116 warnings:
117 if_enabled_not_set: This metric will be disabled by default soon.
118
119 default.metric.to_be_removed:
120 enabled: true
121 description: "[DEPRECATED] Non-monotonic delta sum double metric enabled by default."
122 extended_documentation: The metric will be removed soon.
123 stability:
124 level: deprecated
125 unit: s
126 sum:
127 value_type: double
128 monotonic: false
129 aggregation_temporality: delta
130 warnings:
131 if_enabled: This metric is deprecated and will be removed soon.
132
133 metric.input_type:
134 enabled: true
135 stability:
136 level: development
137 description: Monotonic cumulative sum int metric with string input_type enabled by default.
138 unit: s
139 sum:
140 value_type: int
141 input_type: string
142 monotonic: true
143 aggregation_temporality: cumulative
144 attributes:
145 [string_attr, overridden_int_attr, enum_attr, slice_attr, map_attr]
146
147 optional.metric:
148 enabled: false
149 description: "[DEPRECATED] Gauge double metric disabled by default."
150 stability:
151 level: deprecated
152 unit: "1"
153 gauge:
154 value_type: double
155 attributes: [string_attr, boolean_attr, boolean_attr2]
156 warnings:
157 if_configured: This metric is deprecated and will be removed soon.
158
159 optional.metric.empty_unit:
160 enabled: false
161 description: "[DEPRECATED] Gauge double metric disabled by default."
162 stability:
163 level: deprecated
164 unit: ""
165 gauge:
166 value_type: double
167 attributes: [string_attr, boolean_attr]
168 warnings:
169 if_configured: This metric is deprecated and will be removed soon.
170
171 system.cpu.time:
172 enabled: true
173 stability:
174 level: beta
175 description: Monotonic cumulative sum int metric enabled by default.
176 extended_documentation: The metric will be become optional soon.
177 unit: s
178 sum:
179 value_type: int
180 monotonic: true
181 aggregation_temporality: cumulative
182 semantic_convention:
183 ref: https://github.com/open-telemetry/semantic-conventions/blob/v1.37.0/docs/system/system-metrics.md#metric-systemcputime