fix-bug-for-pod-metrics-on-edge-node
Signed-off-by: zhu733756 <talonzhu@yunify.com>
This commit is contained in:
66
pkg/simple/client/monitoring/metricsserver/testdata/metrics-matrix-7.json
vendored
Normal file
66
pkg/simple/client/monitoring/metricsserver/testdata/metrics-matrix-7.json
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
[
|
||||
{
|
||||
"metric_name": "pod_cpu_usage",
|
||||
"data": {
|
||||
"resultType": "matrix",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"namespace": "ns1",
|
||||
"pod":"pod1"
|
||||
},
|
||||
"values":[
|
||||
[
|
||||
1616675696,
|
||||
"0.001"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"namespace": "ns2",
|
||||
"pod":"pod2"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1616675696,
|
||||
"0.002"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"metric_name": "pod_memory_usage_wo_cache",
|
||||
"data": {
|
||||
"resultType": "matrix",
|
||||
"result": [
|
||||
{
|
||||
"metric": {
|
||||
"namespace": "ns1",
|
||||
"pod":"pod1"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1616675696,
|
||||
"1"
|
||||
]
|
||||
]
|
||||
},
|
||||
{
|
||||
"metric": {
|
||||
"namespace": "ns2",
|
||||
"pod":"pod2"
|
||||
},
|
||||
"values": [
|
||||
[
|
||||
1616675696,
|
||||
"2"
|
||||
]
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user