* feat: metric observer * chore: update after review * chore: reviews Co-authored-by: Mayur Kale <mayurkale@google.com> |
||
|---|---|---|
| .. | ||
| metrics | ||
| README.md | ||
| package.json | ||
README.md
Overview
OpenTelemetry metrics allow a user to collect data and export it to a metrics backend like Prometheus.
This is a simple example that demonstrates basic metrics collection and exports those metrics to a Prometheus compatible endpoint.
Installation
$ # from this directory
$ npm install
How to setup Prometheus please check Setup Prometheus
Run the Application
- Run the example
Observer
$ npm run start:observer
Prometheus
- In prometheus search for "metric_observer"
Links
- Prometheus Scrape Endpoint http://localhost:9464/metrics
- Prometheus graph http://localhost:9090/graph
Example

Useful links
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more information on OpenTelemetry metrics, visit: https://github.com/open-telemetry/opentelemetry-js/tree/master/packages/opentelemetry-metrics
LICENSE
Apache License 2.0