mirror of
https://github.com/denoland/deno.git
synced 2024-12-20 22:34:46 -05:00
7c036772df
Refs: https://github.com/denoland/deno/issues/26852 Initial support for exporting metrics. Co-authored-by: Luca Casonato <hello@lcas.dev>
124 lines
2.6 KiB
Text
124 lines
2.6 KiB
Text
{
|
|
"spans": [],
|
|
"logs": [],
|
|
"metrics": [
|
|
{
|
|
"name": "counter",
|
|
"description": "Example of a Counter",
|
|
"unit": "",
|
|
"metadata": [],
|
|
"sum": {
|
|
"dataPoints": [
|
|
{
|
|
"attributes": [
|
|
{
|
|
"key": "attribute",
|
|
"value": {
|
|
"doubleValue": 1
|
|
}
|
|
}
|
|
],
|
|
"startTimeUnixNano": "[WILDCARD]",
|
|
"timeUnixNano": "[WILDCARD]",
|
|
"exemplars": [],
|
|
"flags": 0,
|
|
"asDouble": 1
|
|
}
|
|
],
|
|
"aggregationTemporality": 2,
|
|
"isMonotonic": true
|
|
}
|
|
},
|
|
{
|
|
"name": "up_down_counter",
|
|
"description": "Example of a UpDownCounter",
|
|
"unit": "",
|
|
"metadata": [],
|
|
"sum": {
|
|
"dataPoints": [
|
|
{
|
|
"attributes": [
|
|
{
|
|
"key": "attribute",
|
|
"value": {
|
|
"doubleValue": 1
|
|
}
|
|
}
|
|
],
|
|
"startTimeUnixNano": "[WILDCARD]",
|
|
"timeUnixNano": "[WILDCARD]",
|
|
"exemplars": [],
|
|
"flags": 0,
|
|
"asDouble": -1
|
|
}
|
|
],
|
|
"aggregationTemporality": 2,
|
|
"isMonotonic": false
|
|
}
|
|
},
|
|
{
|
|
"name": "histogram",
|
|
"description": "Example of a Histogram",
|
|
"unit": "",
|
|
"metadata": [],
|
|
"histogram": {
|
|
"dataPoints": [
|
|
{
|
|
"attributes": [
|
|
{
|
|
"key": "attribute",
|
|
"value": {
|
|
"doubleValue": 1
|
|
}
|
|
}
|
|
],
|
|
"startTimeUnixNano": "[WILDCARD]",
|
|
"timeUnixNano": "[WILDCARD]",
|
|
"count": 1,
|
|
"sum": 1,
|
|
"bucketCounts": [
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"explicitBounds": [
|
|
0,
|
|
5,
|
|
10,
|
|
25,
|
|
50,
|
|
75,
|
|
100,
|
|
250,
|
|
500,
|
|
750,
|
|
1000,
|
|
2500,
|
|
5000,
|
|
7500,
|
|
10000
|
|
],
|
|
"exemplars": [],
|
|
"flags": 0,
|
|
"min": 1,
|
|
"max": 1
|
|
}
|
|
],
|
|
"aggregationTemporality": 2
|
|
}
|
|
}
|
|
]
|
|
}
|