metrics

Get metrics data points with timestamps

The query parameter supports PromQL-based queries. Metrics names should accept only underscore notation (system_memory_utilization); not dotted notation(system.memory.utilization). Please note the PromQL queries should be encoded. Refer MetricsQL guide for more details

Here are some PromQL query examples

  1. Metric name

system_cpu_utilization

2: Metric name with host and instance name

system_cpu_utilization{host="host1",instance="cpu"}

3: Host with multiple metric names(with regular expressions)

{host="host1",name=~"system_cpu_utilization|system_memory_utilization"}

4: Ip address with multiple instances

system_cpu_utilization{ip="172.26.0.1", instance=~"instance1|instance2|instance3"}

Path Parameters

  • tenantIdstringrequired

    Describes clientId of the tenant

Query Parameters

  • querystringrequired

    Describes the string defining all the patterns supported by OpsQL. The filter criteria of the query is create by the supported operators and attribute values See "metricsQL-overview" guide

  • startstring

    startTime - Timestamp in seconds

  • endstring

    EndTime

  • stepnumber

    time step in seconds; step value represents the frequency on which the series data going to be fetched. For example, if the user wants time series data with a frequency of 5 minutes, then the step value should be 300 (5 * 60 = 300 seconds).

    Default: 60

Responses

  • statusstring

  • dataobject

Loading Examples...