{"name":"@opentelemetry/exporter-prometheus","version":"0.23.1-alpha.28","keywords":["opentelemetry","nodejs","tracing","profiling"],"author":{"name":"OpenTelemetry Authors"},"license":"Apache-2.0","_id":"@opentelemetry/exporter-prometheus@0.23.1-alpha.28","maintainers":[{"name":"mayurkale22","email":"mayurkale22@gmail.com"},{"name":"bogdandrutu","email":"bogdandrutu@gmail.com"},{"name":"dyladan","email":"dyladan@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":"dd17a5f1f420479d85dd7db1023ecfd1351c9011","tarball":"http://registry-npm.ywwl.com/@opentelemetry/exporter-prometheus/download/@opentelemetry/exporter-prometheus-0.23.1-alpha.28.tgz","fileCount":24,"integrity":"sha512-daWYdT8xdtGUgV1PkVFEh4XuKD2QX2NvUHxvpPnpcqA2XxTLAKSsKyP92AZT7+OeksEKmJf3sDAPObadbBz2KA==","signatures":[{"sig":"MEUCIQCP3ctoDRKc/S6kllPlA+OfqH6G8z4brXmzYoq469ngGgIgbe+UXnbYJSzz7a1X2F7KuzOryHTKMJ3ypR7eNPvERJM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":52543,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhAGIbCRA9TVsSAnZWagAA9yAP/3SzJsakafaRfmWgf0Hq\nto9WaEdvgpHXhCrbVnkj6dcCL8i6r/u3tofc21BTsX5JD3rCf/sYq2WnDjJC\n1U9HvBLn23sLgFcriI3kJDGJhZXv4djcTOSASMj9xT8L8y5NkT/QgIHRIqQF\nbNsnGgKcZmGyqL9N0Nie6tBDFECrdEHxt6j/PFSnCETb0DA2OwMSsRq+gg4+\nmfoM62h/WiZFmSh6WyWqxANx/5wqRE+wBaI3M7LHi9alONemlf0B6qKe/vd1\nuy8EJQN7ODcq+toDPVPluK/zeitQRcOaUdLKtKQWh42GsA6QXTHd6vJ/qpla\nVLPXwlDYHTTMhj2+35rWDWjB1Hcb84yYA2Ijh1mbur7Gta36R0wkJY7J4rE5\nZOBSAHEzi++Yv5vM4kz93pjKZ0tlAXY++vxTc3j8yVjK8CmO87nZtoYvdxV6\nadlFnowxWsovQV3gSbDoAaBOXG4BKz0+lam0RZbEDZBHJrpxNWHO+xka3ffJ\nOVD4/TiqMYqg2H39L7DskoC0RHz0FroXgFLvPyHrV7KklNyVk0xDqIMjuxwa\nmQIDq5SXAw8dioFUzoKlv0EW0Iqkd4zBcpjNsWeyqpbf8ahDZuv29VI0iQVS\nK3TOziWBp39ZoNsTriIBWmXlRSBhr0UY6UJwDte0hNfT341JnLt29MpH39RC\nBaPe\r\n=0hiE\r\n-----END PGP SIGNATURE-----\r\n","size":15227,"noattachment":false,"key":"/@opentelemetry/exporter-prometheus/-/@opentelemetry/exporter-prometheus-0.23.1-alpha.28.tgz"},"main":"build/src/index.js","types":"build/src/index.d.ts","engines":{"node":">=8.0.0"},"gitHead":"d8fbeddacce3e27aab40b24c2ca3c271155e74ea","scripts":{"tdd":"npm run test -- --watch-extensions ts --watch","lint":"eslint . --ext .ts","test":"nyc ts-mocha -p tsconfig.json 'test/**/*.test.ts'","clean":"tsc --build --clean","watch":"tsc --build --watch","codecov":"nyc report --reporter=json && codecov -f coverage/*.json -p ../../","compile":"tsc --build","version":"node ../../scripts/version-update.js","lint:fix":"eslint . --ext .ts --fix"},"_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.17.3+x64 (linux)","description":"OpenTelemetry Exporter Prometheus provides a metrics endpoint for Prometheus","directories":{},"_nodeVersion":"14.17.3","dependencies":{"@opentelemetry/core":"^0.23.1-alpha.28+d8fbedda","@opentelemetry/metrics":"^0.23.1-alpha.28+d8fbedda","@opentelemetry/api-metrics":"^0.23.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"nyc":"15.1.0","mocha":"7.2.0","sinon":"11.1.2","rimraf":"3.0.2","codecov":"3.8.3","ts-mocha":"8.0.0","typescript":"4.3.5","@types/node":"14.17.5","@types/mocha":"8.2.3","@types/sinon":"10.0.2","@opentelemetry/api":"^1.0.1"},"peerDependencies":{"@opentelemetry/api":"^1.0.1"},"_npmOperationalInternal":{"tmp":"tmp/exporter-prometheus_0.23.1-alpha.28_1627415067173_0.218714147606754","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":1627415067348,"_cnpm_publish_time":1627415067348,"dist-tags":{"canary":"0.300.0-rc.0","latest":"0.301.0","next":"0.34.0"}}