query_loki_stats
Retrieve statistics about log streams matching a LogQL selector from a Loki datasource within specified time ranges to analyze log volume and stream metrics.
Instructions
Retrieves statistics about log streams matching a given LogQL selector within a Loki datasource
Input Schema
Name | Required | Description | Default |
---|---|---|---|
datasourceUid | Yes | The UID of the datasource to query | |
endRfc3339 | No | The end time of the query in RFC3339 format | |
logql | Yes | The LogQL matcher expression to execute | |
startRfc3339 | No | The start time of the query in RFC3339 format |
Input Schema (JSON Schema)
{
"properties": {
"datasourceUid": {
"description": "The UID of the datasource to query",
"type": "string"
},
"endRfc3339": {
"description": "The end time of the query in RFC3339 format",
"type": "string"
},
"logql": {
"description": "The LogQL matcher expression to execute",
"type": "string"
},
"startRfc3339": {
"description": "The start time of the query in RFC3339 format",
"type": "string"
}
},
"required": [
"datasourceUid",
"logql"
],
"type": "object"
}