createLokiTransport
Function: createLokiTransport()
createLokiTransport(
pushUrl,labels):RemoteTransporter
Defined in: transports/remote.transport.ts:45
Creates a Loki transporter that sends log messages to a specified Loki push URL with given labels.
Parameters
pushUrl
string
The Loki push endpoint URL.
labels
Record<string, string>
A record of labels to attach to the log streams.
Returns
A RemoteTransporter function that sends log messages to the specified Loki push URL.