{"name":"@opentelemetry/exporter-prometheus","version":"0.3.0","keywords":["opentelemetry","nodejs","tracing","profiling"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/exporter-prometheus@0.3.0","maintainers":[{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"dkhan","email":"daniel@khan.io"},{"name":"bg451","email":"brandon.gonzalez.451@gmail.com"},{"name":"bogdandrutu","email":"bogdandrutu@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":"35d7b9464306c0c57758fa0ac3630c409802816d","tarball":"http://registry-npm.ywwl.com/@opentelemetry/exporter-prometheus/download/@opentelemetry/exporter-prometheus-0.3.0.tgz","fileCount":11,"integrity":"sha512-gt9UkrcF1iFpFmTXrwu2HRlTlZ/4GUizV1wE57reHmFEzf9EYGj5fzoizfSPVRKSV/rIIWJT1nkh9WvFmFtoOg==","signatures":[{"sig":"MEUCIEHLyPlvYwd1Ikl2kfiwIh3+xPi9RU1lYS2cTB99FdSSAiEAq8Kc3WtrHDHaSAwmKVkEjusI6wO0wAwWg2Fms3BmV5c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37504,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8+hnCRA9TVsSAnZWagAArz8P/1TrKMey3E505+BlTl7X\n8W1kFYMxgL4WbFKX5pjKD48sFRae2khTkcBhwMEXSBqOdaRKpBOyuooC7KaK\n76SEOcSsYVvJ/sEzKEvtg5nnOxDBOu07eJ47tsldubrMyAuPcuZ6qpxikiB2\nIurBXGASsXPqphc+aX9YQr1IFRwUUlm0cqWuavjl2CAlOGmYBgP+oYhEXK6K\nsrtXVWLz5cobGjXpSlfrlx6LhKW1FZfYN0+amyMT1LiLed64w2uDvgbmGaZ0\n6FSN9rLeuicFoaxPuh+uCi4gwjdeeGs7lzmz4rJnlqV2DMm5TuLgKpZKQYOD\nUE4ac6MwbGiNmb3wbt1UFEMz99vcRqE/2u9lpGZKF972bZ5kxSHQc2kD+c6D\nsCjen2HDA+b9EXMrRm2qIaBdNh5H2swKDYkSBNzRwO4S2DNQuwznvRaeVvGU\neETWRAkarXZXHIE0PvuwtRY+KCzotSWVJL96acGepBJdt15QOZeo9BS/sfif\nYq9NLPqP76rQGMKp5jDj9i4/pfkiewDG5+FV19fR4aon7ZTjLrpsmeMkd0Db\nD9Rtdq9fvPQD3g3XPB+7zXFF1fGPHWbCB4u3vb6ohPMV/vyS8bdlT568nRLv\nBLpmLVolKYt7hD47+P+3QXtVKxI/i3rx8kY8T6MW4OANuKkqjQcRdv559Tsa\n2fua\r\n=Tjjd\r\n-----END PGP SIGNATURE-----\r\n","size":9789,"noattachment":false,"key":"/@opentelemetry/exporter-prometheus/-/@opentelemetry/exporter-prometheus-0.3.0.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=8.0.0"},"scripts":{"fix":"gts fix","tdd":"yarn test -- --watch-extensions ts --watch","test":"nyc ts-mocha -p tsconfig.json 'test/**/*.ts'","check":"gts check","clean":"rimraf build/*","codecov":"nyc report --reporter=json && codecov -f coverage/*.json -p ../../","compile":"tsc -p .","prepare":"npm run compile","precompile":"tsc --version"},"_npmUser":{"name":"mayurkale22","email":"mayurkale22@gmail.com"},"repository":{"url":"git+https://github.com/open-telemetry/opentelemetry-js.git","type":"git"},"_npmVersion":"6.4.1","description":"OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus","directories":{},"_nodeVersion":"10.15.1","dependencies":{"prom-client":"^11.5.3","@opentelemetry/base":"^0.3.0","@opentelemetry/core":"^0.3.0","@opentelemetry/types":"^0.3.0","@opentelemetry/metrics":"^0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"gts":"^1.1.0","nyc":"^14.1.1","mocha":"^6.2.2","rimraf":"^3.0.0","codecov":"^3.6.1","ts-node":"^8.3.0","ts-mocha":"^6.0.0","typescript":"3.7.2","@types/node":"^12.6.9","@types/mocha":"^5.2.7","tslint-microsoft-contrib":"^6.2.0","tslint-consistent-codestyle":"^1.16.0"},"_npmOperationalInternal":{"tmp":"tmp/exporter-prometheus_0.3.0_1576265831011_0.01077130420437844","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":1576265831182,"_cnpm_publish_time":1576265831182,"dist-tags":{"canary":"0.300.0-rc.0","latest":"0.301.0","next":"0.34.0"}}