Socket
Socket
Sign inDemoInstall

loki-grpc-client

Package Overview
Dependencies
36
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    loki-grpc-client

Loki GRPC client for Node.js


Version published
Weekly downloads
1.3K
decreased by-5.02%
Maintainers
1
Install size
9.94 MB
Created
Weekly downloads
 

Changelog

Source

v2.0.0

(2022-11-21)

  • Change grpc to grpc-js [Thomas Manning]

Readme

Source

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.

Keywords

FAQs

Last updated on 21 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc