loki-grpc-client
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Loki GRPC Client

See tests/ for examples how to use the Pusher and Querier clients.

Test

Docker compose for ci

docker-compose -f docker-compose.test.yml up

Locally for debugging

docker run --network host 'grafana/loki:1.5.0' '-auth.enabled=true' '-config.file=/etc/loki/local-config.yaml'
export LOKI_HOST=127.0.0.1  
npm test

Upgrading

Copy logproto.proto from the Loki repo and any dependencies to the ./proto directly.

Then run npm run protoc:compile and npm run protoc:types to generate updated clients.

Update LOKI_IMAGE in tests/00_setup.spec.ts to test against new version.

/loki-grpc-client/

    Package Sidebar

    Install

    npm i loki-grpc-client

    Weekly Downloads

    472

    Version

    2.0.0

    License

    Apache-2.0

    Unpacked Size

    267 kB

    Total Files

    15

    Last publish

    Collaborators

    • balena.io