package
Version:
v0.193.0
Opens a new window with list of versions in this module.
Published: Feb 23, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
LogQL Flux Package
Use this package to interact with LogQL APIs.
logql.query_range
logql.query_range
executes a range query against a LogQL API (such as Loki or qryn).
Parameters:
Name |
Type |
Description |
url |
string |
LogQL API URL. |
query |
string |
LogQL query to execute. |
start |
string |
Earliest time to include in results. Default is -1h . |
end |
string |
Latest time to include in results. Default is -1h . |
limit |
string |
Query limit. Default is 100. |
step |
string |
Query stepping. Default is 10. |
orgid |
string |
Optional Organization Id for partitioning. |
Example:
import "contrib/qxip/logql"
option logql.defaultURL = "http://qryn.dev:3100"
logql.query_range(
query: "rate({job=\"dummy-server\", method=\"DELETE\"}[5m])",
start: -1h,
end: now(),
)
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.