get_loki_series
Retrieve log series label combinations from Loki using selectors and time ranges to filter and analyze log data.
Instructions
Get series (label combinations) matching label selectors from 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>",
"match": "<match>"
},
"name": "get_loki_series"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datasourceUid | Yes | The Loki datasource UID | |
| match | Yes | Series selectors as label matchers (e.g., ["{job=\"varlogs\"}"]) | |
| start | No | Start time (RFC3339 or Unix timestamp) | |
| end | No | End time (RFC3339 or Unix timestamp) |