{"_id":"@dmamontov/graphql-mesh-prometheus-plugin","_rev":"2-303d458d8cfac1a356d12f2c7d81b3cd","name":"@dmamontov/graphql-mesh-prometheus-plugin","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@dmamontov/graphql-mesh-prometheus-plugin","version":"1.0.0","author":{"name":"Dmitry Mamontov"},"license":"MIT","_id":"@dmamontov/graphql-mesh-prometheus-plugin@1.0.0","maintainers":[{"name":"dmamontov","email":"d.slonyara@gmail.com"}],"homepage":"https://github.com/dmamontov/graphql-mesh-prometheus-plugin#readme","bugs":{"url":"https://github.com/dmamontov/graphql-mesh-prometheus-plugin/issues"},"dist":{"shasum":"4ad6003652e8c277b33b3958eb0b58734eb2f794","tarball":"https://registry.npmjs.org/@dmamontov/graphql-mesh-prometheus-plugin/-/graphql-mesh-prometheus-plugin-1.0.0.tgz","fileCount":20,"integrity":"sha512-LUdRn1fxSGjGY/ytMQO3rmcqIsNRMQBeFF1A+G7Md/et/npNmn5ycg7QtesF/fHCBSd06xip+SkskLLE3K0etw==","signatures":[{"sig":"MEUCIH1IYL+Qdi38Jq97j8lQBQVfsKPwlVrYgDX9qBN9JERoAiEA1dFyPYO5CIpUL4xl7PvPTIOM+M4EAfjTiVVpGWEzH9U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43535},"main":"dist/cjs/index.js","type":"module","module":"dist/esm/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"default":{"types":"./dist/typings/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/typings/index.d.cts","default":"./dist/cjs/index.js"}},"./package.json":"./package.json"},"gitHead":"83bf9d1c195ebff514427e0b57584c9bf496f12a","scripts":{"lint":"eslint .","build":"bob build"},"typings":"dist/typings/index.d.ts","_npmUser":{"name":"dmamontov","email":"d.slonyara@gmail.com"},"repository":{"url":"git+https://github.com/dmamontov/graphql-mesh-prometheus-plugin.git","type":"git"},"typescript":{"definition":"dist/typings/index.d.ts"},"_npmVersion":"9.8.0","description":"Prometheus Plugin is a plugin integrates Prometheus metrics collection into your GraphQL Mesh setup. It exposes a new route that Prometheus can scrape to gather metrics about the GraphQL operations.","directories":{},"sideEffects":false,"_nodeVersion":"20.5.1","dependencies":{"graphql":"*","prom-client":"15.1.1","graphql-yoga":"^5.1.1","@envelop/core":"^5.0.0","@graphql-mesh/types":"^0.97.5","@graphql-tools/delegate":"^10.0.4","@graphql-mesh/plugin-prometheus":"^0.98.9","@graphql-mesh/string-interpolation":"^0.5.3"},"publishConfig":{"access":"public","directory":"dist"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","ts-node":"10.9.2","prettier":"3.2.5","@eslint/js":"8.57.0","typescript":"5.4.3","@babel/core":"7.24.5","@types/node":"20.12.2","bob-the-bundler":"7.0.1","eslint-plugin-n":"16.6.2","eslint-config-love":"43.1.0","eslint-plugin-jsonc":"2.14.1","eslint-plugin-sonar":"0.13.2","eslint-plugin-import":"2.29.1","eslint-plugin-promise":"6.1.1","eslint-plugin-unicorn":"51.0.1","eslint-config-prettier":"9.1.0","eslint-config-standard":"17.1.0","eslint-plugin-prettier":"5.1.3","eslint-plugin-standard":"5.0.0","eslint-formatter-stylish":"8.40.0","@theguild/prettier-config":"2.0.6","@typescript-eslint/parser":"7.4.0","eslint-import-resolver-alias":"1.1.2","@typescript-eslint/eslint-plugin":"7.4.0","eslint-import-resolver-typescript":"3.6.1"},"peerDependencies":{"graphql":"*"},"_npmOperationalInternal":{"tmp":"tmp/graphql-mesh-prometheus-plugin_1.0.0_1715177456731_0.5550266519602083","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@dmamontov/graphql-mesh-prometheus-plugin","version":"1.0.1","author":{"name":"Dmitry Mamontov"},"license":"MIT","_id":"@dmamontov/graphql-mesh-prometheus-plugin@1.0.1","maintainers":[{"name":"dmamontov","email":"d.slonyara@gmail.com"}],"homepage":"https://github.com/dmamontov/graphql-mesh-prometheus-plugin#readme","bugs":{"url":"https://github.com/dmamontov/graphql-mesh-prometheus-plugin/issues"},"dist":{"shasum":"300da5fe98e8203c2bceebf28590b98556116f76","tarball":"https://registry.npmjs.org/@dmamontov/graphql-mesh-prometheus-plugin/-/graphql-mesh-prometheus-plugin-1.0.1.tgz","fileCount":11,"integrity":"sha512-/V8Koorobd6rMWeamVjsSUyS6ZKs1QNlblazR9lYgTKlwe+9bluaDUKmx3+n2V9Q4TohG37OSQT3Jzy/LwpMhQ==","signatures":[{"sig":"MEUCIQCOSIJ6GhRmCK2k+4SxSI1wRhUs9x4V1y3KPTwX2N9OzQIgeMSZnMssIT2ReZC1YSze/3+fHQWzILPhSTuaSWpe5N0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22563},"main":"cjs/index.js","type":"module","module":"esm/index.js","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"require":{"types":"./typings/index.d.cts","default":"./cjs/index.js"}},"./package.json":"./package.json"},"gitHead":"f00a894f2854c18352f4e8c328d86ff038a20d8e","typings":"typings/index.d.ts","_npmUser":{"name":"dmamontov","email":"d.slonyara@gmail.com"},"repository":{"url":"git+https://github.com/dmamontov/graphql-mesh-prometheus-plugin.git","type":"git"},"typescript":{"definition":"typings/index.d.ts"},"_npmVersion":"9.8.0","description":"Prometheus Plugin is a plugin integrates Prometheus metrics collection into your GraphQL Mesh setup. It exposes a new route that Prometheus can scrape to gather metrics about the GraphQL operations.","directories":{},"sideEffects":false,"_nodeVersion":"20.5.1","dependencies":{"graphql":"*","prom-client":"15.1.1","graphql-yoga":"^5.1.1","@envelop/core":"^5.0.0","@graphql-mesh/types":"^0.97.5","@graphql-tools/delegate":"^10.0.4","@graphql-mesh/plugin-prometheus":"^0.98.9","@graphql-mesh/string-interpolation":"^0.5.3"},"_hasShrinkwrap":false,"peerDependencies":{"graphql":"*"},"_npmOperationalInternal":{"tmp":"tmp/graphql-mesh-prometheus-plugin_1.0.1_1715177555195_0.8500870611489864","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@dmamontov/graphql-mesh-prometheus-plugin","version":"1.1.0","sideEffects":false,"peerDependencies":{"graphql":"*"},"dependencies":{"@envelop/core":"^5.0.0","@graphql-mesh/plugin-prometheus":"^0.98.9","@graphql-mesh/string-interpolation":"^0.5.3","@graphql-mesh/types":"^0.97.5","@graphql-tools/delegate":"^10.0.4","graphql":"*","graphql-yoga":"^5.1.1","prom-client":"15.1.1"},"repository":{"type":"git","url":"git+https://github.com/dmamontov/graphql-mesh-prometheus-plugin.git"},"author":{"name":"Dmitry Mamontov"},"license":"MIT","engines":{"node":">=20.0.0"},"main":"cjs/index.js","module":"esm/index.js","typings":"typings/index.d.ts","typescript":{"definition":"typings/index.d.ts"},"type":"module","exports":{".":{"require":{"types":"./typings/index.d.cts","default":"./cjs/index.js"},"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"}},"./package.json":"./package.json"},"_id":"@dmamontov/graphql-mesh-prometheus-plugin@1.1.0","gitHead":"951a25e623fe74bcd681da9492aedf9081ad876e","description":"Prometheus Plugin is a plugin integrates Prometheus metrics collection into your GraphQL Mesh setup. It exposes a new route that Prometheus can scrape to gather metrics about the GraphQL operations.","bugs":{"url":"https://github.com/dmamontov/graphql-mesh-prometheus-plugin/issues"},"homepage":"https://github.com/dmamontov/graphql-mesh-prometheus-plugin#readme","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"integrity":"sha512-cLr7fA84gK//Di2Bqm9j41a6hgEANogmu0jMxgYa835iTnGak10eqopqeI/W/OPoTYiAr/OvfuW1MhkFwylhEg==","shasum":"4c6db047f2372a7653917c9e7a51f44ac0dcdc67","tarball":"https://registry.npmjs.org/@dmamontov/graphql-mesh-prometheus-plugin/-/graphql-mesh-prometheus-plugin-1.1.0.tgz","fileCount":15,"unpackedSize":25971,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3b/h2FS+XO9a8QaKbHlEzcgRIe8C3EDE2xHtzmMdCogIhAMq/NX23A1N2nOxQat3HuDzy60pgaqCB4e2OIbAj+Uul"}]},"_npmUser":{"name":"dmamontov","email":"d.slonyara@gmail.com"},"directories":{},"maintainers":[{"name":"dmamontov","email":"d.slonyara@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-mesh-prometheus-plugin_1.1.0_1726229118324_0.36419225915772"},"_hasShrinkwrap":false}},"time":{"created":"2024-05-08T14:10:56.604Z","modified":"2024-09-13T12:05:18.649Z","1.0.0":"2024-05-08T14:10:56.888Z","1.0.1":"2024-05-08T14:12:35.334Z","1.1.0":"2024-09-13T12:05:18.474Z"},"bugs":{"url":"https://github.com/dmamontov/graphql-mesh-prometheus-plugin/issues"},"author":{"name":"Dmitry Mamontov"},"license":"MIT","homepage":"https://github.com/dmamontov/graphql-mesh-prometheus-plugin#readme","repository":{"type":"git","url":"git+https://github.com/dmamontov/graphql-mesh-prometheus-plugin.git"},"description":"Prometheus Plugin is a plugin integrates Prometheus metrics collection into your GraphQL Mesh setup. It exposes a new route that Prometheus can scrape to gather metrics about the GraphQL operations.","maintainers":[{"name":"dmamontov","email":"d.slonyara@gmail.com"}],"readme":"# Prometheus Plugin for GraphQL Mesh\n\nPrometheus Plugin is a plugin integrates Prometheus metrics collection into your GraphQL Mesh setup. It exposes a new route that Prometheus can scrape to gather metrics about the GraphQL operations.\n\n## Installation\n\nBefore you can use the Prometheus Plugin, you need to install it along with GraphQL Mesh if you haven't already done so. You can install these using npm or yarn.\n\n```bash\nnpm install @dmamontov/graphql-mesh-prometheus-plugin\n```\n\nor\n\n```bash\nyarn add @dmamontov/graphql-mesh-prometheus-plugin\n```\n\n## Configuration\n\n### Modifying tsconfig.json\n\nTo make TypeScript recognize the Prometheus Plugin, you need to add an alias in your tsconfig.json.\n\nAdd the following paths configuration under the compilerOptions in your tsconfig.json file:\n\n```json\n{\n  \"compilerOptions\": {\n    \"paths\": {\n       \"prometheus\": [\"node_modules/@dmamontov/graphql-mesh-prometheus-plugin\"]\n    }\n  }\n}\n```\n\n### Adding the Plugin to GraphQL Mesh\n\nYou need to include the Prometheus Plugin in your GraphQL Mesh configuration file (usually .meshrc.yaml). Below is an example configuration that demonstrates how to use this plugin:\n\n```yaml\nplugins:\n  - prometheus:\n      skipIntrospection: true\n      execute: true\n      requestCount: true\n      requestTotalDuration: true\n      requestSummary: true\n      errors: true\n      delegation: true\n      delegationCount: true\n      delegationSummary: true\n      delegationErrors: true\n      delegationTotalDuration: true\n      delegationExecute: true\n      delegationExecuteCount: true\n      delegationExecuteSummary: true\n      delegationExecuteErrors: true\n      delegationExecuteTotalDuration: true\n      endpoint: /metrics\n```\n\n## Conclusion\n\nRemember, always test your configurations in a development environment before applying them in production to ensure that everything works as expected.","readmeFilename":"README.md"}