mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Prometheus: Run Explore both queries trough backend * Refactor, simplify * Set default values for query type selector * Run multiple queries as one query trough backend * Remove trailing newlines * Pass utcOffset * Remove trailing comma * WIP: Implementatioon of exemplars * add sampling for exemplars * Refactor to use response as custom metadata * Simplify processing of exemplars * Update, clean up * Refactor the way how we get available exemplars * Simplify exemplars disabling and running on frontend * Add tests * Update toggle * Remove console log * Fix go linting * Fix e2e test * Trigger Build * Compare lengts, small fix * Remove duplicated time check * Address feedback * Remove redundant ! as not needed * Update
397 lines
12 KiB
JSON
397 lines
12 KiB
JSON
{
|
|
"results": {
|
|
"A": {
|
|
"frames": [
|
|
{
|
|
"schema": {
|
|
"name": "histogram_quantile(0.95, sum(rate(tns_request_duration_seconds_bucket[5m])) by (le))",
|
|
"refId": "A",
|
|
"meta": { "custom": { "resultType": "matrix" } },
|
|
"fields": [
|
|
{ "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" } },
|
|
{
|
|
"name": "Value",
|
|
"type": "number",
|
|
"typeInfo": { "frame": "float64" },
|
|
"labels": {},
|
|
"config": {
|
|
"displayNameFromDS": "histogram_quantile(0.95, sum(rate(tns_request_duration_seconds_bucket[5m])) by (le))"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"data": {
|
|
"values": [
|
|
[
|
|
1633619595000,
|
|
1633619610000,
|
|
1633619625000,
|
|
1633619640000,
|
|
1633619655000,
|
|
1633619670000,
|
|
1633619685000,
|
|
1633619700000,
|
|
1633619715000,
|
|
1633619730000,
|
|
1633619745000,
|
|
1633619760000,
|
|
1633619775000,
|
|
1633619790000,
|
|
1633619805000,
|
|
1633619820000,
|
|
1633619835000,
|
|
1633619850000,
|
|
1633619865000,
|
|
1633619880000,
|
|
1633619895000
|
|
],
|
|
[
|
|
0.07245212135073513,
|
|
0.07253198890830721,
|
|
0.07247862573797707,
|
|
0.07238248338231042,
|
|
0.07221687487740913,
|
|
0.07223291298743946,
|
|
0.07225427016727755,
|
|
0.024531677091864545,
|
|
0.02317081920915543,
|
|
0.07548902139580993,
|
|
0.0777721702857508,
|
|
0.07768649905047344,
|
|
0.07782257603228229,
|
|
0.07788810213200052,
|
|
0.07791835055437593,
|
|
0.07798387201529966,
|
|
0.07790826751849372,
|
|
0.07794858648610933,
|
|
0.07778729925797964,
|
|
0.07769657495236215,
|
|
0.077550401329267
|
|
]
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"schema": {
|
|
"name": "histogram_quantile(0.95, sum(rate(tns_request_duration_seconds_bucket[5m])) by (le))",
|
|
"refId": "A",
|
|
"meta": { "custom": { "resultType": "vector" } },
|
|
"fields": [
|
|
{ "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" } },
|
|
{
|
|
"name": "Value",
|
|
"type": "number",
|
|
"typeInfo": { "frame": "float64" },
|
|
"labels": {},
|
|
"config": {
|
|
"displayNameFromDS": "histogram_quantile(0.95, sum(rate(tns_request_duration_seconds_bucket[5m])) by (le))"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"data": { "values": [[1633619900000], [0.0775504013292671]] }
|
|
},
|
|
{
|
|
"schema": {
|
|
"name": "exemplar",
|
|
"refId": "A",
|
|
"meta": { "custom": { "resultType": "exemplar" } },
|
|
"fields": [
|
|
{ "name": "Time", "type": "time", "typeInfo": { "frame": "time.Time" } },
|
|
{ "name": "Value", "type": "number", "typeInfo": { "frame": "float64" } },
|
|
{ "name": "instance", "type": "string", "typeInfo": { "frame": "string" } },
|
|
{ "name": "__name__", "type": "string", "typeInfo": { "frame": "string" } },
|
|
{ "name": "job", "type": "string", "typeInfo": { "frame": "string" } },
|
|
{ "name": "status_code", "type": "string", "typeInfo": { "frame": "string" } },
|
|
{ "name": "method", "type": "string", "typeInfo": { "frame": "string" } },
|
|
{ "name": "traceID", "type": "string", "typeInfo": { "frame": "string" } },
|
|
{ "name": "route", "type": "string", "typeInfo": { "frame": "string" } },
|
|
{ "name": "ws", "type": "string", "typeInfo": { "frame": "string" } },
|
|
{ "name": "le", "type": "string", "typeInfo": { "frame": "string" } }
|
|
]
|
|
},
|
|
"data": {
|
|
"values": [
|
|
[
|
|
1633619598000,
|
|
1633619622000,
|
|
1633619625000,
|
|
1633619646000,
|
|
1633619658000,
|
|
1633619682000,
|
|
1633619695000,
|
|
1633619712000,
|
|
1633619712000,
|
|
1633619724000,
|
|
1633619717000,
|
|
1633619742000,
|
|
1633619757000,
|
|
1633619771000,
|
|
1633619784000,
|
|
1633619801000,
|
|
1633619806000,
|
|
1633619833000,
|
|
1633619833000,
|
|
1633619845000,
|
|
1633619862000,
|
|
1633619877000,
|
|
1633619889000
|
|
],
|
|
[
|
|
0.0146153,
|
|
0.0118506,
|
|
0.0473847,
|
|
0.026997,
|
|
0.0164318,
|
|
0.0113532,
|
|
0.0105197,
|
|
0.162789,
|
|
0.0556026,
|
|
0.148856,
|
|
0.0433809,
|
|
0.0117758,
|
|
0.0114496,
|
|
0.0114099,
|
|
0.0421927,
|
|
0.0134148,
|
|
0.0152827,
|
|
0.6975967,
|
|
0.0394788,
|
|
0.0137441,
|
|
0.0110939,
|
|
0.0104496,
|
|
0.0101284
|
|
],
|
|
[
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"db:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80",
|
|
"app:80"
|
|
],
|
|
[
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket",
|
|
"tns_request_duration_seconds_bucket"
|
|
],
|
|
[
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/db",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app",
|
|
"tns/app"
|
|
],
|
|
[
|
|
"302",
|
|
"200",
|
|
"200",
|
|
"200",
|
|
"200",
|
|
"200",
|
|
"200",
|
|
"500",
|
|
"200",
|
|
"302",
|
|
"208",
|
|
"200",
|
|
"200",
|
|
"200",
|
|
"200",
|
|
"200",
|
|
"302",
|
|
"200",
|
|
"200",
|
|
"200",
|
|
"200",
|
|
"200",
|
|
"200"
|
|
],
|
|
[
|
|
"POST",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"POST",
|
|
"POST",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"POST",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"GET",
|
|
"GET"
|
|
],
|
|
[
|
|
"6a3cf561ef6c32a0",
|
|
"396bcdf29601a149",
|
|
"57c04ef608f11158",
|
|
"77c757dab83c665f",
|
|
"3d1069567e873f5e",
|
|
"b337949f6213efd",
|
|
"21b20cbe533cf099",
|
|
"2c10b3aa30fabd66",
|
|
"42ac6088a757636b",
|
|
"2f81158008cd4dcc",
|
|
"320b803ad7323b37",
|
|
"7f15fd82aeb8b361",
|
|
"11c79266da8a74cd",
|
|
"5a8571bdcc04c990",
|
|
"3de3f4f42ccb93ae",
|
|
"23343ac91cc0638",
|
|
"5cea3aad17ab11c8",
|
|
"5d334e2843d3405a",
|
|
"3cf6834596d4b6b6",
|
|
"1ab6cff012959723",
|
|
"2f78bc2c398b8b20",
|
|
"6d5862a70c3abd42",
|
|
"f5421be4054f501"
|
|
],
|
|
[
|
|
"post",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"post",
|
|
"post",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"post",
|
|
"metrics",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"root",
|
|
"root"
|
|
],
|
|
[
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false",
|
|
"false"
|
|
],
|
|
[
|
|
"0.025",
|
|
"0.025",
|
|
"0.05",
|
|
"0.05",
|
|
"0.025",
|
|
"0.025",
|
|
"0.025",
|
|
"0.25",
|
|
"0.1",
|
|
"0.25",
|
|
"0.05",
|
|
"0.025",
|
|
"0.025",
|
|
"0.025",
|
|
"0.05",
|
|
"0.025",
|
|
"0.025",
|
|
"1.0",
|
|
"0.05",
|
|
"0.025",
|
|
"0.025",
|
|
"0.025",
|
|
"0.025"
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|