Skip to content

Instantly share code, notes, and snippets.

View dyladan's full-sized avatar

Daniel Dyla dyladan

View GitHub Profile
@dyladan
dyladan / app.js
Last active May 14, 2020 17:29 — forked from luebken/app.js
const { PrometheusExporter } = require('@opentelemetry/exporter-prometheus');
const { MeterProvider } = require('@opentelemetry/metrics');
const { Resource } = require('@opentelemetry/resources');
// Add your port and startServer to the Prometheus options
const options = {port: 9464, startServer: true};
const exporter = new PrometheusExporter(options);