-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathopentelemetry.cue
208 lines (194 loc) · 5.28 KB
/
opentelemetry.cue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
package metadata
components: sources: opentelemetry: {
_grpc_port: 4317
_http_port: 4318
title: "OpenTelemetry"
classes: {
commonly_used: false
delivery: "at_least_once"
deployment_roles: ["daemon", "aggregator"]
development: "beta"
egress_method: "stream"
stateful: false
}
features: {
auto_generated: true
acknowledgements: true
multiline: enabled: false
receive: {
from: {
service: services.opentelemetry
interface: socket: {
direction: "incoming"
port: _grpc_port
protocols: ["tcp"]
ssl: "optional"
}
}
tls: {
// enabled per listener below
enabled: false
}
}
}
support: {
requirements: []
warnings: [
"""
The `opentelemetry` source only supports log events at this time.
""",
]
notices: []
}
installation: {
platform_name: null
}
configuration: base.components.sources.opentelemetry.configuration
outputs: [
{
name: "logs"
description: """
Received log events will go to this output stream. Use `<component_id>.logs` as an input to downstream transforms and sinks.
"""
},
]
output: {
logs: event: {
description: "An individual log event from a batch of events received through an OTLP request"
fields: {
attributes: {
description: "Attributes that describe the specific event occurrence."
required: false
common: true
type: object: {
examples: [
{
"http.status.code": 500
"http.url": "http://example.com"
"my.custom.application.tag": "hello"
},
{
"http.scheme": "https"
"http.host": "donut.mycie.com"
"http.target": "/order"
"http.method": "post"
"http.status_code": 500
"http.flavor": "1.1"
"http.user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36"
},
]
}
}
resources: {
description: "Set of attributes that describe the resource."
required: false
common: true
type: object: {
examples: [
{
"service.name": "donut_shop"
"service.version": "2.0.0"
"k8s.pod.uid": "1138528c-c36e-11e9-a1a7-42010a800198"
},
{
"container.name": "vector"
},
]
}
}
message: {
description: "Contains the body of the log record."
required: false
common: true
type: string: {
default: null
examples: ["20200415T072306-0700 INFO I like donuts"]
}
}
trace_id: {
description: "Request trace id as defined in W3C Trace Context. Can be set for logs that are part of request processing and have an assigned trace id."
required: false
common: true
type: string: {
default: null
examples: ["66346462623365646437363566363230"]
}
}
span_id: {
description: "Can be set for logs that are part of a particular processing span."
required: false
common: true
type: string: {
default: null
examples: ["43222c2d51a7abe3"]
}
}
severity_number: {
description: """
Numerical value of the severity.
Smaller numerical values correspond to less severe events (such as debug events), larger numerical values correspond to more severe events (such as errors and critical events).
"""
required: false
common: true
type: uint: {
default: null
unit: null
examples: [3, 9, 17, 24]
}
}
severity_text: {
description: "Severity text (also known as log level)."
required: false
common: true
type: string: {
default: null
examples: ["TRACE3", "INFO", "ERROR", "FATAL4"]
}
}
flags: {
description: "Trace flag as defined in W3C Trace Context specification."
required: false
common: true
type: uint: {
default: null
unit: null
}
}
timestamp: {
description: """
The UTC Datetime when the event occurred. If this value is unset, or `0`, it will be set to the `observed_timestamp` field.
This field is converted from the `time_unix_nano` Protobuf field.
"""
required: true
type: timestamp: {}
}
observed_timestamp: {
description: """
The UTC Datetime when the event was observed by the collection system. If this value is unset, or `0`, it will be set to the current time.
This field is converted from the `observed_time_unix_nano` Protobuf field.
"""
required: true
type: timestamp: {}
}
dropped_attributes_count: {
description: "Counts for attributes dropped due to collection limits."
required: true
type: uint: {
unit: null
}
}
}
}
}
how_it_works: {
tls: {
title: "Transport Layer Security (TLS)"
body: """
Vector uses [OpenSSL](\(urls.openssl)) for TLS protocols due to OpenSSL's maturity. You can
enable and adjust TLS behavior via the `grpc.tls.*` and `http.tls.*` options and/or via an
[OpenSSL configuration file](\(urls.openssl_conf)). The file location defaults to
`/usr/local/ssl/openssl.cnf` or can be specified with the `OPENSSL_CONF` environment variable.
"""
}
}
}