Logging implementation that sends to Loki. This is useful for the container implementation, where promtail is problematic because it never shuts down.
Logging implementation that sends to Loki. This is useful for the container implementation, where promtail is problematic because it never shuts down.
(post-lines lines {:keys [labels] :as conf})
Converts lines to a usable stream config for Loki and sends them out
Converts lines to a usable stream config for Loki and sends them out
(post-or-acc l acc {:keys [threshold now] :as conf})
Either posts all accumulated lines, or adds it to the list, depending on configuration.
Either posts all accumulated lines, or adds it to the list, depending on configuration.
(post-to-loki {:keys [url tenant-id token]} streams)
Posts the given log streams to the configured endpoint
Posts the given log streams to the configured endpoint
(stream-to-loki reader conf)
Pipes the given reader to Loki asynchronously. Stops when the reader is closed. Returns a deferred that resolves when the streaming stops.
Pipes the given reader to Loki asynchronously. Stops when the reader is closed. Returns a deferred that resolves when the streaming stops.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close