Page Contents

@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