Documentation ¶
Overview ¶
Package netflow is a domain for network observability flow events stored in Loki or LokiStack.
Class ¶
There is a single class `netflow:network`
Object ¶
A log object is a JSON `map[string]any` in NetFlow format.
Query ¶
A query is a LogQL query string, prefixed by `netflow:network:`, for example:
netflow:network:{SrcK8S_Type="Pod", SrcK8S_Namespace="myNamespace"}
Store ¶
To connect to a netflow lokiStack store use this configuration:
domain: netflow lokistack: URL_OF_LOKISTACK_PROXY
To connect to plain loki store use:
domain: netflow loki: URL_OF_LOKI
Index ¶
Constants ¶
const ( StoreKeyLoki = "loki" StoreKeyLokiStack = "lokiStack" )
Variables ¶
var Domain = domain{}
Domain for log records produced by openshift-logging.
There are several possible log store configurations: - Default LokiStack store on current Openshift cluster: `{}` - Remote LokiStack: `{ "lokiStack": "https://url-of-lokistack"}` - Plain Loki store: `{ "loki": "https://url-of-loki"}`
Functions ¶
func NewLokiStackStore ¶
NewLokiStackStore returns a store that uses a LokiStack observatorium-style URLs.
func NewPlainLokiStore ¶
NewPlainLokiStore returns a store that uses plain Loki URLs.
Types ¶
type Class ¶
type Class struct{}
There is only a single class, named "netflow ".