{"_id":"@danielkoehler/exporter-prometheus","_rev":"1-6ab369c3f736376a82adf24ce61d345a","name":"@danielkoehler/exporter-prometheus","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.9":{"name":"@danielkoehler/exporter-prometheus","version":"0.0.9","description":"OpenCensus Exporter Prometheus allows user to send collected stats to Prometheus","main":"build/src/index.js","types":"build/src/index.d.ts","repository":{"type":"git","url":"git+https://github.com/census-instrumentation/opencensus-node.git"},"scripts":{"test":"nyc mocha build/test/**/*.js","codecov":"nyc report --reporter=json && codecov -f coverage/*.json","clean":"rimraf build/*","check":"gts check","compile":"tsc -p .","fix":"gts fix","prepare":"npm run compile","pretest":"npm run compile","posttest":"npm run check"},"keywords":["opencensus","nodejs","metrics","stats","profiling"],"author":{"name":"Google Inc."},"license":"Apache-2.0","engines":{"node":">=6.0"},"publishConfig":{"access":"public"},"devDependencies":{"@types/express":"^4.11.1","@types/mocha":"^5.2.5","@types/nock":"^9.1.3","@types/node":"^10.12.12","axios":"^0.18.0","codecov":"^3.1.0","gts":"^0.9.0","mocha":"^6.0.0","ncp":"^2.0.0","nock":"^10.0.0","nyc":"^13.0.0","ts-node":"^8.0.0","typescript":"~3.2.0"},"dependencies":{"@danielkoehler/core":"^0.0.9","express":"^4.16.3","prom-client":"^11.1.1"},"contributors":[{"name":"Google LLC"},{"name":"CESAR Team","url":"www.cesar.org.br"}],"bugs":{"url":"https://github.com/census-instrumentation/opencensus-node/issues"},"homepage":"https://github.com/census-instrumentation/opencensus-node#readme","_id":"@danielkoehler/exporter-prometheus@0.0.9","_shasum":"404c7828702825f4d0d9bfac2048c31a7f175b3c","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.16.0","_npmUser":{"name":"danielkoehler","email":"koehlerda@icloud.com"},"dist":{"shasum":"404c7828702825f4d0d9bfac2048c31a7f175b3c","tarball":"https://registry.npmjs.org/@danielkoehler/exporter-prometheus/-/exporter-prometheus-0.0.9.tgz","integrity":"sha512-ZhVFZJj2c09a3zJDl7JjgClJKZzW2VgYw4RtGUGuNvUmlT9mo+hQdMfy90JH7IFRNlmgYKOevgVQxIpi2Ji0KQ==","fileCount":3,"unpackedSize":15838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchmdOCRA9TVsSAnZWagAA4awQAKTiW6XWH+h+gDL/7JUK\n64WtfnlSvbd9xRQpQEWBW+Og8EQwYXWPV7btKrR0X78/FHVAIsLorqzAYAC0\nmAIj6f+WbsHmwAZIWqzBYgtkZJ8LGxGaKrYAozxJ5IHai17bj6W5KfAS1HF0\nng3EPyiCdfPCde0mfkM7ruteMn8sesAqrljsMnVBzHdW0cY2CWuyQtCQFcNA\n6PIeQ1tM7tSiFFZ0kbKjD1s1DZ6mHVIFohxtFloSe4IJajz8kitsOIgWA8g6\nV62f8KOgAfJraLC8KLEntOVPNlpvlNESE4l5fjXEQn4XW7rNL01aeZPHpaDQ\nZYm/RGM6nq6Eky3JANgG++RNHBDuUbuqMbfo7vz7oazUz3UB9+URP5B55xI7\nCE9qiTxA5zZ/mlvzd7VrtIcAx5j+dYmif6PFzsGBu/umTU9Z767+4SfYikpj\n2X+US6mvyAyZ1Q3y/yv46Lt6mpJDW8qMwF0YGR9Axq5T9zdMVOVXkVSBdis2\nHAmKKsE4bwowCD+nvzznjkGn6imQYk+PWSeb6izNeSHuzIfLgwNDmYAFhgxY\nLg7TrxB2EDeeChP7LwHKXB37xRt06cGWXLIBmpokVQd+i13XAhVM75+YCILx\niNJQKqElyz98Ozm7zRB69QK4AMfmvWZlh10/4UO69WZfNGXdncKbxmd8N0B9\nUeZJ\r\n=VYbj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDXlni7kRu0048G/xioUCFCPg2txGK2iYmrlHbl9ge9YAiAoAO0JZGcbzspbVUwXUdqIyUlfXe3P2kz/G210ODMJpw=="}]},"maintainers":[{"name":"danielkoehler","email":"koehlerda@icloud.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/exporter-prometheus_0.0.9_1552312142154_0.28045372261144697"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-11T13:49:01.949Z","0.0.9":"2019-03-11T13:49:02.282Z","modified":"2022-04-05T02:41:07.806Z"},"maintainers":[{"name":"danielkoehler","email":"koehlerda@icloud.com"}],"description":"OpenCensus Exporter Prometheus allows user to send collected stats to Prometheus","homepage":"https://github.com/census-instrumentation/opencensus-node#readme","keywords":["opencensus","nodejs","metrics","stats","profiling"],"repository":{"type":"git","url":"git+https://github.com/census-instrumentation/opencensus-node.git"},"contributors":[{"name":"Google LLC"},{"name":"CESAR Team","url":"www.cesar.org.br"}],"author":{"name":"Google Inc."},"bugs":{"url":"https://github.com/census-instrumentation/opencensus-node/issues"},"license":"Apache-2.0","readme":"# OpenCensus Prometheus Exporter for Node.js\n[![Gitter chat][gitter-image]][gitter-url] ![Node Version][node-img] [![NPM Published Version][npm-img]][npm-url] ![dependencies Status][dependencies-status] ![devDependencies Status][devdependencies-status] ![Apache License][license-image]\n\nThe OpenCensus Prometheus Exporter allows the user to send collected stats with [OpenCensus Core](https://github.com/census-instrumentation/opencensus-core) to Prometheus.\n\nThis package is still at an early stage of development, and is subject to change.\n\n## Installation\n\nInstall OpenCensus Prometheus Exporter with:\n```bash\nnpm install @opencensus/core\nnpm install @opencensus/exporter-prometheus\n```\n\n## Usage\n\nCreate & register the exporter on your application.\n\nFor Javascript:\n```javascript\nconst { globalStats } = require('@opencensus/core');\nconst { PrometheusStatsExporter } = require('@opencensus/exporter-prometheus');\n\n// Add your port and startServer to the Prometheus options\nconst exporter = new PrometheusStatsExporter({\n  port: 9464,\n  startServer: true\n});\n```\n\nNow, register the exporter.\n\n```javascript\n// Pass the created exporter to Stats\nglobalStats.registerExporter(exporter);\n```\n\nSimilarly for TypeScript (Since the source is written in TypeScript):\n```typescript\nimport { PrometheusStatsExporter } from '@opencensus/exporter-prometheus';\nimport { globalStats } from '@opencensus/core';\n\n// Add your port and startServer to the Prometheus options\nconst options = {port: 9464, startServer: true};\nconst exporter = new PrometheusStatsExporter(options);\n\n// Pass the created exporter to Stats\nglobalStats.registerExporter(exporter);\n```\n\nViewing 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- To learn more about Prometheus, visit: <https://prometheus.io/>\n- For more information on OpenCensus, visit: <https://opencensus.io/>\n- To checkout OpenCensus for Node.js, visit: <https://github.com/census-instrumentation/opencensus-node>\n- For help or feedback on this project, join us on [gitter](https://gitter.im/census-instrumentation/Lobby)\n\n[gitter-image]: https://badges.gitter.im/census-instrumentation/lobby.svg\n[gitter-url]: https://gitter.im/census-instrumentation/lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge\n[npm-url]: https://www.npmjs.com/package/@opencensus/exporter-prometheus\n[npm-img]: https://badge.fury.io/js/%40opencensus%2Fexporter-prometheus.svg\n[node-img]: https://img.shields.io/node/v/@opencensus/exporter-prometheus.svg\n[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat\n[dependencies-status]: https://david-dm.org/census-instrumentation/opencensus-node/status.svg?path=packages/opencensus-exporter-prometheus\n[devdependencies-status]:\nhttps://david-dm.org/census-instrumentation/opencensus-node/dev-status.svg?path=packages/opencensus-exporter-prometheus\n\n## LICENSE\n\nApache License 2.0\n","readmeFilename":"README.md"}