get_loki_label_values
Retrieve all values for a specific label within a Loki datasource to filter log data by time range, enabling targeted log analysis and exploration.
Instructions
Get all values for a specific label in a Loki datasource
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"datasourceUid": "<datasourceUid>",
"label": "<label>"
},
"name": "get_loki_label_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasourceUid | Yes | The Loki datasource UID | |
| label | Yes | The label name to get values for | |
| start | No | Start time (RFC3339 or Unix timestamp) | |
| end | No | End time (RFC3339 or Unix timestamp) |