0.0.2 • Published 11 months ago

pip-services4-prometheus-node v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Prometheus components for Pip.Services in Node.js / ES2017

This module is a part of the Pip.Services polyglot microservices toolkit.

The module contains components for working with meters in the Prometheus controller. The PrometheusCounters and PrometheusMetricsController components allow you to work both in client mode through PushGateway, and as a controller.

The module contains the following packages:

  • Build - the default factories for constructing components.
  • Count - components of counters (metrics) with sending data to Prometheus via PushGateway
  • Controllers - components of the controller for reading counters (metrics) by the Prometheus controller

Quick links:

Use

Install the NPM package as

npm install pip-services4-prometheus-node --save

Develop

For development you shall install the following prerequisites:

  • Node.js 8+
  • Visual Studio Code or another IDE of your choice
  • Docker
  • Typescript

Install dependencies:

npm install

Compile the code:

tsc

Run automated tests:

npm test

Generate API documentation:

./docgen.ps1

Before committing changes run dockerized build and test as:

./build.ps1
./test.ps1
./clear.ps1

Contacts

The library is created and maintained by Sergey Seroukhov and Danil Prisyazhniy.

The documentation is written by:

  • Mark Makarychev