/
metricset.json
301 lines (301 loc) · 7.98 KB
/
metricset.json
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
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
{
"$id": "docs/spec/v2/metricset",
"type": "object",
"properties": {
"faas": {
"description": "FAAS holds fields related to Function as a Service events.",
"type": [
"null",
"object"
],
"properties": {
"coldstart": {
"description": "Indicates whether a function invocation was a cold start or not.",
"type": [
"null",
"boolean"
]
},
"execution": {
"description": "The request id of the function invocation.",
"type": [
"null",
"string"
]
},
"id": {
"description": "A unique identifier of the invoked serverless function.",
"type": [
"null",
"string"
]
},
"name": {
"description": "The lambda function name.",
"type": [
"null",
"string"
]
},
"trigger": {
"description": "Trigger attributes.",
"type": [
"null",
"object"
],
"properties": {
"request_id": {
"description": "The id of the origin trigger request.",
"type": [
"null",
"string"
]
},
"type": {
"description": "The trigger type.",
"type": [
"null",
"string"
]
}
}
},
"version": {
"description": "The lambda function version.",
"type": [
"null",
"string"
]
}
}
},
"samples": {
"description": "Samples hold application metrics collected from the agent.",
"type": "object",
"additionalProperties": false,
"patternProperties": {
"^[^*\"]*$": {
"type": [
"null",
"object"
],
"properties": {
"counts": {
"description": "Counts holds the bucket counts for histogram metrics. These numbers must be positive or zero. If Counts is specified, then Values is expected to be specified with the same number of elements, and with the same order.",
"type": [
"null",
"array"
],
"items": {
"type": "integer",
"minimum": 0
},
"minItems": 0
},
"type": {
"description": "Type holds an optional metric type: gauge, counter, or histogram. If Type is unknown, it will be ignored.",
"type": [
"null",
"string"
]
},
"unit": {
"description": "Unit holds an optional unit for the metric. - \"percent\" (value is in the range [0,1]) - \"byte\" - a time unit: \"nanos\", \"micros\", \"ms\", \"s\", \"m\", \"h\", \"d\" If Unit is unknown, it will be ignored.",
"type": [
"null",
"string"
]
},
"value": {
"description": "Value holds the value of a single metric sample.",
"type": [
"null",
"number"
]
},
"values": {
"description": "Values holds the bucket values for histogram metrics. Values must be provided in ascending order; failure to do so will result in the metric being discarded.",
"type": [
"null",
"array"
],
"items": {
"type": "number"
},
"minItems": 0
}
},
"allOf": [
{
"if": {
"properties": {
"counts": {
"type": "array"
}
},
"required": [
"counts"
]
},
"then": {
"properties": {
"values": {
"type": "array"
}
},
"required": [
"values"
]
}
},
{
"if": {
"properties": {
"values": {
"type": "array"
}
},
"required": [
"values"
]
},
"then": {
"properties": {
"counts": {
"type": "array"
}
},
"required": [
"counts"
]
}
}
],
"anyOf": [
{
"properties": {
"value": {
"type": "number"
}
},
"required": [
"value"
]
},
{
"properties": {
"values": {
"type": "array"
}
},
"required": [
"values"
]
}
]
}
}
},
"service": {
"description": "Service holds selected information about the correlated service.",
"type": [
"null",
"object"
],
"properties": {
"name": {
"description": "Name of the correlated service.",
"type": [
"null",
"string"
],
"maxLength": 1024
},
"version": {
"description": "Version of the correlated service.",
"type": [
"null",
"string"
],
"maxLength": 1024
}
}
},
"span": {
"description": "Span holds selected information about the correlated transaction.",
"type": [
"null",
"object"
],
"properties": {
"subtype": {
"description": "Subtype is a further sub-division of the type (e.g. postgresql, elasticsearch)",
"type": [
"null",
"string"
],
"maxLength": 1024
},
"type": {
"description": "Type expresses the correlated span's type as keyword that has specific relevance within the service's domain, eg: 'request', 'backgroundjob'.",
"type": [
"null",
"string"
],
"maxLength": 1024
}
}
},
"tags": {
"description": "Tags are a flat mapping of user-defined tags. On the agent side, tags are called labels. Allowed value types are string, boolean and number values. Tags are indexed and searchable.",
"type": [
"null",
"object"
],
"additionalProperties": {
"type": [
"null",
"string",
"boolean",
"number"
],
"maxLength": 1024
}
},
"timestamp": {
"description": "Timestamp holds the recorded time of the event, UTC based and formatted as microseconds since Unix epoch",
"type": [
"null",
"integer"
]
},
"transaction": {
"description": "Transaction holds selected information about the correlated transaction.",
"type": [
"null",
"object"
],
"properties": {
"name": {
"description": "Name of the correlated transaction.",
"type": [
"null",
"string"
],
"maxLength": 1024
},
"type": {
"description": "Type expresses the correlated transaction's type as keyword that has specific relevance within the service's domain, eg: 'request', 'backgroundjob'.",
"type": [
"null",
"string"
],
"maxLength": 1024
}
}
}
},
"required": [
"samples"
]
}