{"name":"@opentelemetry/exporter-prometheus","version":"0.10.3-alpha.35","keywords":["opentelemetry","nodejs","tracing","profiling"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/exporter-prometheus@0.10.3-alpha.35","maintainers":[{"name":"bogdandrutu","email":"bogdandrutu@gmail.com"},{"name":"dyladan","email":"dyladan@gmail.com"},{"name":"mayurkale22","email":"mayurkale22@gmail.com"},{"name":"obecny","email":"bobecny@gmail.com"}],"homepage":"https://github.com/open-telemetry/opentelemetry-js#readme","bugs":{"url":"https://github.com/open-telemetry/opentelemetry-js/issues"},"dist":{"shasum":"fdf5e2ff94f444590e91a59ef85d04282b2f7575","tarball":"http://registry-npm.ywwl.com/@opentelemetry/exporter-prometheus/download/@opentelemetry/exporter-prometheus-0.10.3-alpha.35.tgz","fileCount":15,"integrity":"sha512-hpyLbATBqb1tpE0MjzI1ScT/AqA/xIBNOH/zQ/U/aT2+5xCvtcTHFmTUktq8KSFbFOguX31cArJTuXkJx4Tr6w==","signatures":[{"sig":"MEYCIQDrH0+wJnlo4DEE9D19xdAbOCDP2tDcbiHSLcYhXU9rqQIhALfvNaJG9IkCas8Syli3oxcCcI9h0hwxnSa4dZ4l+Vmr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":41338,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfREMQCRA9TVsSAnZWagAANKwQAIrZ27t3nlfoA5FYa0oB\nCSIvosUZqFxIEBBUE9CpIEQ8q+VL0Q7hYSfPRgkaaW8TCoqNiYn1ZqKGKIPb\n6efkq2aSgltlr2nOIg6EQb3o54f6PSDobTuvUTLjtaHgyKKGf/t5fpGkYmGY\nT3RRokgVBBEBWmrTyqEhW4DTrVi6zx45xM7OX5voIVnSDapctHeZFkQhWcFG\ni4CKzZNb1+anNG49e4dYFAAPGIyCdQrFr+7UcXrEOM8Y00aA6OjSgaA6vEMT\noB9L/YLYAbRCoe1sLOekazIc1iCnkjSAJ0+euSFH4pB83yMnWPQNAUeSYAXu\nwiSf11xEFqinheGVwJc/Yvs6qlfaZiDG/I//Al8XczQMnGb11GCxzZBA57VQ\nfsaOzUU0ojYnB1xEU4gtvrXNCulxzgUCC4NQrBos0HsNuHQft3t46l+rlyi9\nj8oPUAHKz2EWpF0q2fdnoQnzERrxsaZu0pnf3QkEdzkxRKcAJzblrwwbcly3\nYE6ybyAUwQsw41MJFQAMIsL9D5TWLNGG+nu0kbJ4MvFGKCMeqE7IQTSEav8T\nQf8PjulvePEblLONdAK2Mji7KhLwfl+ox2U81dMW1mg9z5X0Rt3+icOxuKDN\nHdSqso/ZsrE2JGyNwpppQ0QT+Ec6JvbzqhLJawciRHL32cooZ/gnQyC2a5Pg\ntXkC\r\n=/6/s\r\n-----END PGP SIGNATURE-----\r\n","size":11922,"noattachment":false,"key":"/@opentelemetry/exporter-prometheus/-/@opentelemetry/exporter-prometheus-0.10.3-alpha.35.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=8.0.0"},"gitHead":"2ee9f1aaf7b61c4b4ae6b748f0a07f8fc708f07e","scripts":{"tdd":"npm run test -- --watch-extensions ts --watch","lint":"eslint . --ext .ts","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":"eslint . --ext .ts --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":"lerna/3.22.1/node@v14.8.0+x64 (linux)","description":"OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus","directories":{},"_nodeVersion":"14.8.0","dependencies":{"prom-client":"^11.5.3","@opentelemetry/api":"^0.10.3-alpha.35+2ee9f1a","@opentelemetry/core":"^0.10.3-alpha.35+2ee9f1a","@opentelemetry/metrics":"^0.10.3-alpha.35+2ee9f1a"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"gts":"2.0.2","nyc":"15.1.0","mocha":"7.2.0","rimraf":"3.0.2","codecov":"3.7.2","ts-node":"8.10.2","ts-mocha":"7.0.0","typescript":"3.9.7","@types/node":"14.0.27","@types/mocha":"8.0.2"},"_npmOperationalInternal":{"tmp":"tmp/exporter-prometheus_0.10.3-alpha.35_1598309136255_0.20594886787570044","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":1598309136369,"_cnpm_publish_time":1598309136369,"dist-tags":{"canary":"0.300.0-rc.0","latest":"0.301.0","next":"0.34.0"}}