JSPM

  • Created
  • Published
  • Downloads 179
  • Score
    100M100P100Q52577F
  • License MIT

An example to illustrate metrics provided by @loopback/metrics and Prometheus

Package Exports

  • @loopback/example-metrics-prometheus
  • @loopback/example-metrics-prometheus/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@loopback/example-metrics-prometheus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@loopback/example-metrics-prometheus

This project contains an example to illustrate metrics provided by @loopback/metrics and Prometheus.

Use

npm start

To run full demo:

npm run demo

Now let's generate some traffic:

http://127.0.0.1:3000/greet/world?count=50

The metrics is reported at http://127.0.0.1:3000/metrics.

Open http://localhost:9090 for the Prometheus Web UI.

Prometheus Demo

Contributions

Tests

Run npm test from the root folder.

Contributors

See all contributors.

License

MIT