@loopback/example-metrics-prometheus

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

Usage no npm install needed!

<script type="module">
  import loopbackExampleMetricsPrometheus from 'https://cdn.skypack.dev/@loopback/example-metrics-prometheus';
</script>

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