metrics/labels

Get the metric label names for tenant resources.

Gets the list of metric label name

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

  • startstring

    search start time in seconds as epoch timestamp format; default value is 0; for example 1684738971

  • endstring

    search end time in seconds as epoch timestamp format; default value is 0; for example 1684739193If start and time are 0, last 8 hours data is returned

  • querystring

    encoded query string; If query string is empty , labels across the client is returned ; Example: query=system_cpu_utilization: The Promql query "system_cpu_utilization{hostname=host1,ipaddress=172.26.0.1}" should be encoded as system_cpu_utilization%7Bhostname%3D%22host1%22%2Cipaddress%3D%22172.26.0.1%22%7D

Responses

  • statusstring

    Enum:
    failedsuccess
  • dataarray of strings

Loading Examples...