Retrieves the list of metrics for a specified resource kind
GET/v1/metrics/:resourceKind/values
Returns all the metrics for a given resource kind
Request
Path Parameters
Possible values: [pod
, namespace
, spectrocluster
, machine
, project
]
Query Parameters
Default value: all
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.
Default value: 1
Deprecated. includeMasterMachines in boolean, group the data point by including control plane nodes if set to true
includeControlPlaneMachines in boolean, group the data point by including control plane nodes if set to true
if true then api returns only aggregation values, else api returns all data points by default
Header Parameters
Scope the request to the specified project uid
Responses
- 200
An array of metric items
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
Array [
]
]
]
items
object[]
required
metadata
object
metrics
object[]
aggregation
object
Aggregation values
points
object[]
{
"items": [
{
"metadata": {
"name": "string",
"uid": "string"
},
"metrics": [
{
"aggregation": {
"avg": 0,
"count": 0,
"max": 0,
"min": 0,
"sum": 0
},
"kind": "string",
"points": [
{
"avg": 0,
"count": 0,
"max": 0,
"min": 0,
"sum": 0,
"timestamp": 0,
"value": 0
}
],
"unit": "string"
}
]
}
]
}