metrics/labels/{label_name}
Get the list of metric names for a given label name.
Get the list of metric names for a 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
- 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
- tenantId
Describes clientId of the tenant
- label_name
Label name for which the list of metric names are queried
Query Parameters
- start
search start time in seconds as epoch timestamp format; default value is 0; for example 1684738971
- end
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
- query
encoded query string; If query string is empty , label values 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
- status
- Enum:
- failedsuccess
- data