Skip to main content

lokiTransport

@abimongo/core v1.1.4


@abimongo/core / lokiTransport

Variable: lokiTransport

const lokiTransport: RemoteTransporter

Defined in: core/src/utils/logHelpers.ts:76

Create a resilient transporter for Loki logs. This transporter will retry failed log writes with exponential backoff.

Param

The URL of the Loki instance.

Param

Options for the Loki transport.

Example

const lokiTransport = createLokiTransport('http://localhost:3100/loki/api/v1/push', {
job: 'abimongo',
instance: 'abimongo-instance',
});