Metrics [monitoring.alauda.io/v1beta1]
/platform/monitoring.alauda.io/v1beta1/clusters/{cluster}/metrics
getGet monitoring metrics of a cluster
Retrieves monitoring metrics for a specified cluster.
Parameters
cluster(in path):stringrequiredName of the cluster
start(in query):integerStart time as a 10-digit timestamp
end(in query):integerEnd time as a 10-digit timestamp
step(in query):integerStep interval
time(in query):integerTimestamp, defaults to current time. Mutually exclusive with start/end/step.
timeout(in query):integerTimeout in seconds, default is 10s
indicators(in query):stringMetrics to query, multiple indicators separated by '|'
expr(in query):stringNative query expression, mutually exclusive with indicators
variables(in query):stringVariables for the query, formatted as 'A=v1,B=v2,C=v3'
Response
200MetricList: Successful response with list of monitoring metrics400Status: Monitoring plugin not deployed503Status: Monitoring plugin unavailable
MetricList
indicator:stringThe indicator name
query:stringThe native query expression
result:[]MetricResult
MetricResult
metric:map[string]stringvalues:[]string
Status
kind:stringapiVersion:stringmetadata:objectstatus:stringmessage:stringreason:stringcode:integer
/platform/monitoring.alauda.io/v1beta1/projects/{project}/metrics
getGet monitoring metrics of a project
Retrieves monitoring metrics for a specified cluster.
Parameters
project(in path):stringrequiredName of the project
start(in query):integerStart time as a 10-digit timestamp
end(in query):integerEnd time as a 10-digit timestamp
step(in query):integerStep interval
time(in query):integerTimestamp, defaults to current time. Mutually exclusive with start/end/step.
timeout(in query):integerTimeout in seconds, default is 10s
indicators(in query):stringMetrics to query, multiple indicators separated by '|'
expr(in query):stringNative query expression, mutually exclusive with indicators
variables(in query):stringVariables for the query, formatted as 'A=v1,B=v2,C=v3'
Response
200MetricList: Successful response with list of monitoring metrics400Status: Monitoring plugin not deployed503Status: Monitoring plugin unavailable
MetricList
indicator:stringThe indicator name
query:stringThe native query expression
result:[]MetricResult
MetricResult
metric:map[string]stringvalues:[]string
Status
kind:stringapiVersion:stringmetadata:objectstatus:stringmessage:stringreason:stringcode:integer
/platform/monitoring.alauda.io/v1beta1/projects/{project}/clusters/{cluster}/namespaces/{namespace}/metrics
getGet monitoring metrics of a namespace
Retrieves monitoring metrics for a specified cluster.
Parameters
project(in path):stringrequiredName of the project
cluster(in path):stringrequiredName of the cluster
namespace(in path):stringrequiredName of the namespace
start(in query):integerStart time as a 10-digit timestamp
end(in query):integerEnd time as a 10-digit timestamp
step(in query):integerStep interval
time(in query):integerTimestamp, defaults to current time. Mutually exclusive with start/end/step.
timeout(in query):integerTimeout in seconds, default is 10s
indicators(in query):stringMetrics to query, multiple indicators separated by '|'
expr(in query):stringNative query expression, mutually exclusive with indicators
variables(in query):stringVariables for the query, formatted as 'A=v1,B=v2,C=v3'
Response
200MetricList: Successful response with list of monitoring metrics400Status: Monitoring plugin not deployed503Status: Monitoring plugin unavailable
MetricList
indicator:stringThe indicator name
query:stringThe native query expression
result:[]MetricResult
MetricResult
metric:map[string]stringvalues:[]string
Status
kind:stringapiVersion:stringmetadata:objectstatus:stringmessage:stringreason:stringcode:integer