https://github.com/ahkui/opentelemetry-node-metrics
An adoption of the node process metrics of prom-client
https://github.com/ahkui/opentelemetry-node-metrics
jaeger metric metrics monitoring observability opentelemetry otel prometheus prometheus-metrics tracing typescript zipkin
Last synced: 8 months ago
JSON representation
An adoption of the node process metrics of prom-client
- Host: GitHub
- URL: https://github.com/ahkui/opentelemetry-node-metrics
- Owner: ahkui
- License: apache-2.0
- Created: 2022-12-21T14:58:07.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T02:24:39.000Z (over 2 years ago)
- Last Synced: 2025-01-06T08:18:32.660Z (9 months ago)
- Topics: jaeger, metric, metrics, monitoring, observability, opentelemetry, otel, prometheus, prometheus-metrics, tracing, typescript, zipkin
- Language: TypeScript
- Homepage:
- Size: 152 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# opentelemetry-node-metrics
This module is an adoption of the metric set of [`prom-client`](https://www.npmjs.com/package/prom-client) for [`@opentelemetry/api`](https://www.npmjs.com/package/@opentelemetry/api).
### Usage
```js
const { metrics } = require('@opentelemetry/api');
const { setupNodeMetrics } = require('@ahkui/opentelemetry-node-metrics');setupNodeMetrics(metrics.getMeterProvider());
```or
```typescript
import { metrics } from '@opentelemetry/api';
import { setupNodeMetrics } from '@ahkui/opentelemetry-node-metrics';setupNodeMetrics(metrics.getMeterProvider());
```## License
This project heavily relies on code from [`siimon/prom-client`](https://github.com/siimon/prom-client) and [`marcbachmann/opentelemetry-node-metrics`](https://github.com/marcbachmann/opentelemetry-node-metrics)
and therefore I'd like to thank to all the contributors.The [`prom-client`](https://www.npmjs.com/package/prom-client) project is using an APACHE v2.0 LICENSE and threfore it's best to apply the same license to this project.
This module is only a proof of concept to get opentelemetry to work with the metrics support of [`prom-client`](https://www.npmjs.com/package/prom-client).