logql

package
v0.194.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 0 Imported by: 0

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(),
)

Contact

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL