1.8.3 • Published 5 days ago

@skhail/monitoring v1.8.3

Weekly downloads
-
License
ISC
Repository
-
Last release
5 days ago

@skhail/monitoring

This library is the core of the skhail library. It provides a logger that will connect to Loki in order to push logs directly into grafana.

It also provides helper config files:

  • docker compose file as an example docker-compose.int.yaml
  • grafana loki datasource provisionning files src/libs/monitoring/config/datasources
  • grafana skhail dashboards provisionning files src/libs/monitoring/config/dashboards

Getting started

(./docker-compose.int.yaml)This file offers an example of docker configuration in order to loki and grafana running.

Add the logger to your Skhail loggers:

const lokiLogger = new LokiLogger({
  app: "skhail-app", // main bucket value, your app name
  batchSize: 100, // how many logs can be sent in one batch
  sendBatchTime: 1000, // interval to wait between each batch sent
  url: "http://loki:3100", // root url of loki api
  env: "test", // environment bucket
  levels: [LogLevel.TRACE, LogLevel.INFO, LogLevel.WARNING, LogLevel.ERROR], // what level to sent to loki
});

Next steps

  • promtail to monitor docker architecture + dashboards
1.8.2

5 days ago

1.8.3

5 days ago

1.8.1

9 days ago

1.8.0

9 days ago

1.7.1

10 days ago

1.7.0

10 days ago

1.6.1

3 months ago

1.6.0

3 months ago

1.5.0

3 months ago

1.4.0

3 months ago

1.3.0

4 months ago

1.2.0

4 months ago

1.0.2

5 months ago

1.0.1

5 months ago

0.1.8

9 months ago

0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

1.1.6

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

2.0.0

10 months ago

1.1.3

11 months ago

1.1.2

11 months ago

1.1.1

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago