Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com> Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr> |
||
|---|---|---|
| .. | ||
| 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 "cpu_core_usage", "cpu_temp_per_app", "cpu_usage_per_app"
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/main/experimental/packages/opentelemetry-sdk-metrics-base
LICENSE
Apache License 2.0


