/
metricstatus.json
129 lines (129 loc) · 4.07 KB
/
metricstatus.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
{
"$schema": "http://json-schema.org/schema#",
"required": [
"type"
],
"type": "object",
"description": "MetricStatus describes the last-read state of a single metric.",
"properties": {
"resource": {
"additionalProperties": false,
"required": [
"name",
"currentAverageValue"
],
"description": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
"properties": {
"currentAverageValue": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
},
"currentAverageUtilization": {
"type": "integer",
"description": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.",
"format": "int32"
},
"name": {
"type": "string",
"description": "name is the name of the resource in question."
}
}
},
"object": {
"additionalProperties": false,
"required": [
"target",
"metricName",
"currentValue"
],
"description": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
"properties": {
"currentValue": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
},
"target": {
"additionalProperties": false,
"required": [
"kind",
"name"
],
"description": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
"properties": {
"kind": {
"type": "string",
"description": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\""
},
"name": {
"type": "string",
"description": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names"
},
"apiVersion": {
"type": [
"string",
"null"
],
"description": "API version of the referent"
}
}
},
"metricName": {
"type": "string",
"description": "metricName is the name of the metric in question."
}
}
},
"pods": {
"additionalProperties": false,
"required": [
"metricName",
"currentAverageValue"
],
"description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).",
"properties": {
"currentAverageValue": {
"oneOf": [
{
"type": [
"string",
"null"
]
},
{
"type": "integer"
}
]
},
"metricName": {
"type": "string",
"description": "metricName is the name of the metric in question"
}
}
},
"type": {
"type": [
"string",
"null"
],
"description": "type is the type of metric source. It will match one of the fields below."
}
}
}