{"name":"@opentelemetry/exporter-prometheus","version":"0.8.1","keywords":["opentelemetry","nodejs","tracing","profiling"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/exporter-prometheus@0.8.1","maintainers":[{"name":"bg451","email":"brandon.gonzalez.451@gmail.com"},{"name":"bogdandrutu","email":"bogdandrutu@gmail.com"},{"name":"dkhan","email":"daniel@khan.io"},{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"mayurkale22","email":"mayurkale22@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"dist":{"shasum":"db11a58a9676041e145174d71411f5389f3fbfcc","tarball":"http://registry-npm.ywwl.com/@opentelemetry/exporter-prometheus/download/@opentelemetry/exporter-prometheus-0.8.1.tgz","fileCount":11,"integrity":"sha512-wbhWn7YB7UhTT6II0ScNvh8FYLduYCIiTKs+vShY8jrNkyY51S9YR2kLTv7cusO3WlDnfE6prmaf0XKUVC+tIQ==","signatures":[{"sig":"MEUCIA5/dvqIjZ0zcghTe+P5K68OYiyuxMKsIeO4Y6EO5zbVAiEA+oe1NFYTFNr1WMS8K0JQqXKrpLSsbXYkDwx/bBBmC04=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":36958,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJewuQVCRA9TVsSAnZWagAAXecP/3HELYeO3Fo6ekRidAuK\nx5uGyNYsjS/HcTV4+Eoq/A6hdSRU++P9qrkpLYQpOKjbjnPVvdamdJHaitGa\nLApNEm+zS5Jzzt/EfXFG9ian25MCAiIxBeNCsvaqt0G1v9Ljw7LJ01MmgvWA\nOQ0AZ46H2JeIHb2IrFI2dABDl6xphIrJ94Q8e301Navf6C6SZULTWRHTRcVn\n38ur4peBYHiFTHUHhkW8ytW8K+GJgXnCQldcHUoSGihWnMIq719YEJDf29ZX\n4beqHtrFcUZTFhk0yohxdPgc/3ooAbTuZlWeI4vPJWHd+1wVA9WQagGVHWGM\n2L/M5x7b7CJ/xzVbFSgL1Nvo12MtIspG6RGOiL9RBNgI69shpr2cxhO6rqkP\nWwjr4r4iLS5240zYs1ZyKuEp3Dmx1PchcydVNakoqf1eOOjLouKBIb9m7N8y\njzW02nPgWOiOHGWeUT9WOt8YJFVkSga2TmBl93XLUkhxv6ByxRNhotljGFLQ\n2NQUxqOSV9Z7LCUE9kY1hU2EkHIqNY2uBf2YoKVpLfTtK2GlL5wf0Jwt9Dxe\niHRWbJ5O/qIHniLjxLW/M5ijVAUnZP1xUPykcMEi9/OnIYuZkWhJv/yHmg8O\nndAL+aXZxHVHsC0rDneRfPvXbWp7Yniq4ASJ7bYiQBh1LQVs7t5MG2Yu9Ahu\nHT1j\r\n=VXba\r\n-----END PGP SIGNATURE-----\r\n","size":9990,"noattachment":false,"key":"/@opentelemetry/exporter-prometheus/-/@opentelemetry/exporter-prometheus-0.8.1.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"tdd":"npm run test -- --watch-extensions ts --watch","lint":"gts check","test":"nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'","clean":"rimraf build/*","watch":"tsc -w","codecov":"nyc report --reporter=json && codecov -f coverage/*.json -p ../../","compile":"npm run version:update && tsc -p .","prepare":"npm run compile","lint:fix":"gts fix","precompile":"tsc --version","version:update":"node ../../scripts/version-update.js"},"_npmUser":{"name":"dyladan","email":"dyladan@gmail.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js.git","type":"git"},"_npmVersion":"6.14.4","description":"OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus","directories":{},"_nodeVersion":"12.14.1","dependencies":{"prom-client":"^11.5.3","@opentelemetry/api":"^0.8.1","@opentelemetry/core":"^0.8.1","@opentelemetry/metrics":"^0.8.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"gts":"^1.1.0","nyc":"^15.0.0","mocha":"^7.1.2","rimraf":"^3.0.0","codecov":"^3.6.1","ts-node":"^8.6.2","ts-mocha":"^7.0.0","typescript":"3.7.2","@types/node":"^12.6.9","@types/mocha":"^7.0.0","tslint-microsoft-contrib":"^6.2.0","tslint-consistent-codestyle":"^1.16.0"},"_npmOperationalInternal":{"tmp":"tmp/exporter-prometheus_0.8.1_1589830676666_0.16079348960087714","host":"s3://npm-registry-packages"},"readme":"# OpenTelemetry Prometheus Metric Exporter\n\n[![NPM Published Version][npm-img]][npm-url]\n[![Apache License][license-image]][license-image]\n\n**Note: This is an experimental package under active development. New releases may include breaking changes.**\n\nThe OpenTelemetry Prometheus Metrics Exporter allows the user to send collected [OpenTelemetry Metrics](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/sdk-metrics) to Prometheus.\n\n[Prometheus](https://prometheus.io/) is a monitoring system that collects metrics, by scraping exposed endpoints at regular intervals, evaluating rule expressions. It can also trigger alerts if certain conditions are met. For assistance setting up Prometheus, [click here for a guided codelab](https://opencensus.io/codelabs/prometheus/#0).\n\n## Installation\n\n```bash\nnpm install --save @opentelemetry/sdk-metrics\nnpm install --save @opentelemetry/exporter-prometheus\n```\n\n## Usage\n\nCreate & register the exporter on your application.\n\n```js\nconst { PrometheusExporter } = require('@opentelemetry/exporter-prometheus');\nconst { MeterProvider }  = require('@opentelemetry/sdk-metrics');\n\n// Add your port and startServer to the Prometheus options\nconst options = {port: 9464};\nconst exporter = new PrometheusExporter(options);\n\n// Creates MeterProvider and installs the exporter as a MetricReader\nconst meterProvider = new MeterProvider({\n  readers: [exporter],\n});\nconst meter = meterProvider.getMeter('example-prometheus');\n\n// Now, start recording data\nconst counter = meter.createCounter('metric_name', {\n  description: 'Example of a counter'\n});\ncounter.add(10, { pid: process.pid });\n\n// .. some other work\n```\n\n## Viewing your metrics\n\nWith the above you should now be able to navigate to the Prometheus UI at: <http://localhost:9464/metrics>\n\n## Useful links\n\n- For more information on OpenTelemetry, visit: <https://opentelemetry.io/>\n- To learn more about Prometheus, visit: <https://prometheus.io/>\n- For more about OpenTelemetry JavaScript: <https://github.com/open-telemetry/opentelemetry-js>\n- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]\n\n## License\n\nApache 2.0 - See [LICENSE][license-url] for more information.\n\n[discussions-url]: https://github.com/open-telemetry/opentelemetry-js/discussions\n[license-url]: https://github.com/open-telemetry/opentelemetry-js/blob/main/LICENSE\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[npm-url]: https://www.npmjs.com/package/@opentelemetry/exporter-prometheus\n[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Fexporter-prometheus.svg\n","publish_time":1589830676818,"_cnpm_publish_time":1589830676818,"dist-tags":{"canary":"0.300.0-rc.0","latest":"0.301.0","next":"0.34.0"}}