list_prometheus_label_names
Retrieve label names from Prometheus datasources with filtering by series selectors and time range to identify available metrics and dimensions for monitoring queries.
Instructions
List label names in a Prometheus datasource. Allows filtering by series selectors and time range.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
datasourceUid | Yes | The UID of the datasource to query | |
endRfc3339 | No | The end time of the time range | |
limit | No | Maximum number of results | |
matches | No | Label matchers to filter the results | |
startRfc3339 | No | The start time of the time range |
Input Schema (JSON Schema)
{
"properties": {
"datasourceUid": {
"description": "The UID of the datasource to query",
"type": "string"
},
"endRfc3339": {
"description": "The end time of the time range",
"type": "string"
},
"limit": {
"description": "Maximum number of results",
"type": "number"
},
"matches": {
"description": "Label matchers to filter the results",
"items": {
"additionalProperties": false,
"properties": {
"filters": {
"items": {
"additionalProperties": false,
"properties": {
"name": {
"description": "The name of the label to match against",
"type": "string"
},
"type": {
"description": "The match operator",
"enum": [
"=",
"!=",
"=~",
"!~"
],
"type": "string"
},
"value": {
"description": "The value to match against",
"type": "string"
}
},
"required": [
"name",
"value",
"type"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"filters"
],
"type": "object"
},
"type": "array"
},
"startRfc3339": {
"description": "The start time of the time range",
"type": "string"
}
},
"required": [
"datasourceUid"
],
"type": "object"
}