{"id":16531372,"url":"https://github.com/marcbachmann/opentelemetry-node-metrics","last_synced_at":"2025-09-13T23:32:17.878Z","repository":{"id":44523366,"uuid":"324286610","full_name":"marcbachmann/opentelemetry-node-metrics","owner":"marcbachmann","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T08:54:12.000Z","size":68,"stargazers_count":11,"open_issues_count":4,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-28T10:31:02.763Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcbachmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-25T04:23:05.000Z","updated_at":"2024-05-27T06:54:35.000Z","dependencies_parsed_at":"2023-12-15T09:43:55.947Z","dependency_job_id":"a03f11bc-fd14-4e72-9274-171fdf277941","html_url":"https://github.com/marcbachmann/opentelemetry-node-metrics","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.0625,"last_synced_commit":"4d10002362b9cc60516270ac46744d5165bdea1c"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fopentelemetry-node-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fopentelemetry-node-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fopentelemetry-node-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcbachmann%2Fopentelemetry-node-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcbachmann","download_url":"https://codeload.github.com/marcbachmann/opentelemetry-node-metrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232931886,"owners_count":18598664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:08:38.852Z","updated_at":"2025-01-07T20:07:31.141Z","avatar_url":"https://github.com/marcbachmann.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opentelemetry-node-metrics\n\nThis module is an adoption of the metric set of [`prom-client`](https://www.npmjs.com/package/prom-client) for [`@opentelemetry/metrics`](https://www.npmjs.com/package/@opentelemetry/metrics).\n\nThere's no node cluster support as `@opentelemetry/metrics` doesn't support it.\n\n### Usage\n\n```js\nconst {MeterProvider} = require('@opentelemetry/metrics');\nconst {PrometheusExporter} = require('@opentelemetry/exporter-prometheus');\n\nconst exporter = new PrometheusExporter({startServer: true}, () =\u003e {\n  console.log(\n    `prometheus scrape endpoint: http://localhost:${PrometheusExporter.DEFAULT_OPTIONS.port}${PrometheusExporter.DEFAULT_OPTIONS.endpoint}`,\n  )\n})\n\nconst meterProvider = new MeterProvider({\n  exporter,\n  interval: 2000,\n})\n\nrequire('./index')(meterProvider)\n```\n\n\n## License\n\nThis project heavily relies on code from https://github.com/siimon/prom-client\nand therefore I'd like to thank to all the contributors.\n\nThe `prom-client` project is using an APACHE v2.0 LICENSE and threfore it's best to apply the same license to this project.\n\nThis module is only a proof of concept to get opentelemetry to work with the metrics support of `prom-client`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbachmann%2Fopentelemetry-node-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcbachmann%2Fopentelemetry-node-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcbachmann%2Fopentelemetry-node-metrics/lists"}