@ahkui/opentelemetry-node-metrics
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

opentelemetry-node-metrics

This module is an adoption of the metric set of prom-client for @opentelemetry/api.

Usage

const { metrics } = require('@opentelemetry/api');
const { setupNodeMetrics } = require('@ahkui/opentelemetry-node-metrics');

setupNodeMetrics(metrics.getMeterProvider());

or

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 and marcbachmann/opentelemetry-node-metrics and therefore I'd like to thank to all the contributors.

The 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.

Package Sidebar

Install

npm i @ahkui/opentelemetry-node-metrics

Weekly Downloads

2

Version

1.0.2

License

Apache-2.0

Unpacked Size

105 kB

Total Files

58

Last publish

Collaborators

  • joonkui95