loki_labels
Lists distinct Loki label names for a selected target over a given lookback window, so you can find labels for log queries and filters.
Instructions
[READ] Distinct Loki label names present in the lookback window.
Args: hours: Lookback window in hours (capped at the tool's max lookback). target: Loki target name from config; omit for the default.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "loki_labels"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| target | No |